|
@ -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() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|