|
|
@ -319,6 +319,7 @@ export default { |
|
|
|
] |
|
|
|
}, |
|
|
|
areaProps: { |
|
|
|
// checkStrictly: true, |
|
|
|
lazy: true, |
|
|
|
lazyLoad: this.lzayLoadArea |
|
|
|
} |
|
|
@ -332,7 +333,9 @@ export default { |
|
|
|
//获取网格下拉框数据 |
|
|
|
await this.loadGrid() |
|
|
|
}, |
|
|
|
|
|
|
|
destroyed() { |
|
|
|
this.nowAllCode = [] |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
computedWd(val) { |
|
|
|
const len = val.length |
|
|
@ -358,7 +361,10 @@ export default { |
|
|
|
|
|
|
|
if (row.userType == 'icresi') this.isFromResi = true |
|
|
|
else this.nowAllCode = row.presentAddressPathCode && row.presentAddressPathCode.split(',') |
|
|
|
} |
|
|
|
} else { |
|
|
|
const { user } = this.$store.state |
|
|
|
this.nowAllCode = user.areaCodePath |
|
|
|
} |
|
|
|
// this.$refs['ref_form'].resetFields(); |
|
|
|
|
|
|
|
console.log('formtype', type) |
|
|
@ -371,14 +377,17 @@ export default { |
|
|
|
this.formData.idCard = '' |
|
|
|
this.formData.gridId = '' |
|
|
|
this.formData.userId = '' |
|
|
|
this.resetData() |
|
|
|
if (value === '2') { |
|
|
|
this.isFromResi = true |
|
|
|
this.formData.userType = 'icresi' |
|
|
|
} else { |
|
|
|
this.isFromResi = false |
|
|
|
this.formData.userType = 'input' |
|
|
|
const { user } = this.$store.state |
|
|
|
this.nowAllCode = user.areaCodePath |
|
|
|
} |
|
|
|
this.resetData() |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
handleSourceArea(val) { |
|
|
|