Browse Source

Merge branch 'dev-220411' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-220411

shibei_master
dai 3 years ago
parent
commit
5d2a991632
  1. 6
      src/views/modules/base/epidemic/travel.vue
  2. 15
      src/views/modules/base/epidemic/travelForm.vue

6
src/views/modules/base/epidemic/travel.vue

@ -163,13 +163,16 @@
label="现居地" label="现居地"
show-overflow-tooltip show-overflow-tooltip
min-width="160"> min-width="160">
<template slot-scope="scope">
{{scope.row.presentAddress + scope.row.detailAddress}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="sourceAddress" <el-table-column prop="sourceAddress"
header-align="center" header-align="center"
align="center" align="center"
label="来自地区" label="来自地区"
show-overflow-tooltip show-overflow-tooltip
min-width="160"> min-width="180">
</el-table-column> </el-table-column>
<el-table-column prop="arriveDate" <el-table-column prop="arriveDate"
header-align="center" header-align="center"
@ -415,6 +418,7 @@ export default {
const { user } = this.$store.state const { user } = this.$store.state
console.log('user-----', user)
this.agencyId = user.agencyId this.agencyId = user.agencyId

15
src/views/modules/base/epidemic/travelForm.vue

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

Loading…
Cancel
Save