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

Loading…
Cancel
Save