Browse Source

bug

shibei_master
zhaoyongnian 3 years ago
parent
commit
0e267d8962
  1. 32
      src/views/modules/partymember/icpartyorg-add-or-update.vue

32
src/views/modules/partymember/icpartyorg-add-or-update.vue

@ -145,12 +145,6 @@
agencyOrgList:[] agencyOrgList:[]
} }
}, },
// mounted () {
// setTimeout(() => {
// console.log(':::::::::::::::::::::::')
// this.initMap()
// }, 800);
// },
methods: { methods: {
init() { init() {
this.visible = true this.visible = true
@ -159,10 +153,10 @@
this.dataForm.staffId = localStorage.getItem('staffId') this.dataForm.staffId = localStorage.getItem('staffId')
this.keyWords = '' this.keyWords = ''
// //
setTimeout(() => {
this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
this.dataForm.latitude = '' this.dataForm.latitude = ''
this.dataForm.agencyId = ''
if (this.dataForm.id) { if (this.dataForm.id) {
this.setPartyOrgType() this.setPartyOrgType()
this.getInfo() this.getInfo()
@ -174,14 +168,17 @@
this.dataForm.orgPid = this.dataForm.orgId this.dataForm.orgPid = this.dataForm.orgId
this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + this.dataForm.orgId : this.dataForm.orgId this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + this.dataForm.orgId : this.dataForm.orgId
this.dataForm.partyOrgType = this.dataForm._partyOrgType this.dataForm.partyOrgType = this.dataForm._partyOrgType
console.log(this.dataForm.partyOrgType, this.dataForm.orgPid, this.dataForm.orgPids)
this.setPartyOrgType_xzxj() this.setPartyOrgType_xzxj()
this.getInfoAgencyLisy() this.getInfoAgencyLisy()
} else { } else {
this.dataForm.mySelectOrg = '' this.dataForm.mySelectOrg = ''
} }
} }
}) }, 50);
// this.$nextTick(() => {
// })
}, },
// //
setPartyOrgType_xzxj() { setPartyOrgType_xzxj() {
@ -250,9 +247,22 @@
if(value == '5'){ // if(value == '5'){ //
this.dataForm.agencyId = localStorage.getItem('agencyId') this.dataForm.agencyId = localStorage.getItem('agencyId')
this.dataForm.agencyPids = '' this.dataForm.agencyPids = ''
//
this.orgList = []
this.dataForm.mySelectOrg = '', //
this.dataForm.orgPid = '', // ID,0
this.dataForm.orgPids = ''
this.getOrgList() this.getOrgList()
} else { } else {
// //
this.agencyOrgList = []
this.dataForm.agencyId = ''
//
this.orgList = []
this.dataForm.mySelectOrg = '', //
this.dataForm.orgPid = '', // ID,0
this.dataForm.orgPids = ''
this.getInfoAgencyLisy() this.getInfoAgencyLisy()
} }
}, },

Loading…
Cancel
Save