jiangyy 3 years ago
parent
commit
9d38173655
  1. 4
      epmet-oper-web/src/views/modules/yantai/certify.vue
  2. 7
      epmet-oper-web/src/views/modules/yantai/editForm.vue

4
epmet-oper-web/src/views/modules/yantai/certify.vue

@ -272,9 +272,13 @@ export default {
handleChange (value) { handleChange (value) {
if (value && value.length > 0) {
let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data
console.log(selAgency) console.log(selAgency)
this.formData.orgId = selAgency.value this.formData.orgId = selAgency.value
} else {
this.formData.orgId = ''
}
}, },
async loadTable () { async loadTable () {

7
epmet-oper-web/src/views/modules/yantai/editForm.vue

@ -177,10 +177,17 @@ export default {
}, },
handleChangeAgency (value) { handleChangeAgency (value) {
if (value && value.length > 0) {
let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data
this.peoForm.orgName = selAgency.agencyName this.peoForm.orgName = selAgency.agencyName
this.peoForm.orgType = selAgency.level this.peoForm.orgType = selAgency.level
this.peoForm.orgId = selAgency.agencyId this.peoForm.orgId = selAgency.agencyId
} else {
this.peoForm.orgName = ''
this.peoForm.orgType = ''
this.peoForm.orgId = ''
}
}, },

Loading…
Cancel
Save