Browse Source

与户主关系

feature/dev_information_register
ZhaoTongYao 3 years ago
parent
commit
ceb7623503
  1. 13
      src/views/modules/base/collect.vue

13
src/views/modules/base/collect.vue

@ -423,7 +423,7 @@
</template>
<script>
import { requestPost, requestGet } from "@/js/dai/request";
import { requestPost } from "@/js/dai/request";
import nextTick from "dai-js/tools/nextTick";
import { mapGetters } from "vuex";
import axios from "axios";
@ -457,10 +457,7 @@ export default {
importLoading: false,
addHouseShow: false,
dialogType: 'look', // checklook
relationshipOptions: [
{ label: '本人', value: '0' },
{ label: '父母', value: '1' }
]
relationshipOptions: []
}
},
components: {
@ -492,16 +489,16 @@ export default {
},
mounted() {
// this.getcommunityList();
// this.getDictList()
this.getDictList()
this.getTableData()
},
methods: {
async getDictList() {
const url = "/sys/dict/data/relationship"
const { data, code, msg } = await requestGet(url)
const { data, code, msg } = await requestPost(url, { formCode: "resi_base_info" })
if (code === 0) {
this.relationshipOptions = { ...res.data }
this.relationshipOptions = [ ...data ]
} else {
this.$message.success("操作失败!")
}

Loading…
Cancel
Save