|
|
@ -163,7 +163,7 @@ |
|
|
|
this.getInfo() |
|
|
|
} else { |
|
|
|
if(this.dataForm.orgPids) { |
|
|
|
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(',') |
|
|
|
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(':') |
|
|
|
} else { |
|
|
|
this.dataForm.mySelectOrg = '' |
|
|
|
} |
|
|
@ -235,8 +235,6 @@ |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
console.log(':::::::::', JSON.stringify(res.data)) |
|
|
|
|
|
|
|
this.orgList = res.data |
|
|
|
this.orgList.unshift({ |
|
|
|
partyOrgName: '一级组织', |
|
|
@ -251,7 +249,7 @@ |
|
|
|
this.dataForm.orgPid = this.dataForm.mySelectOrg[this.dataForm.mySelectOrg.length - 1] |
|
|
|
this.dataForm.orgPids = '' |
|
|
|
this.dataForm.mySelectOrg.forEach(element => { |
|
|
|
this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ',' + element : element |
|
|
|
this.dataForm.orgPids = this.dataForm.orgPids ? this.dataForm.orgPids + ':' + element : element |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.dataForm.orgPid = '' |
|
|
@ -265,7 +263,7 @@ |
|
|
|
this.dataForm.agencyId = this.dataForm.maSelectAgency[this.dataForm.maSelectAgency.length - 1] |
|
|
|
this.dataForm.agencyPids = '' |
|
|
|
this.dataForm.maSelectAgency.forEach(element => { |
|
|
|
this.dataForm.agencyPids = this.dataForm.agencyPids ? this.dataForm.agencyPids + ',' + element : element |
|
|
|
this.dataForm.agencyPids = this.dataForm.agencyPids ? this.dataForm.agencyPids + ':' + element : element |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.dataForm.agencyId = '' |
|
|
@ -283,11 +281,11 @@ |
|
|
|
...res.data |
|
|
|
} |
|
|
|
// 党组织组织 |
|
|
|
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(',') |
|
|
|
console.log(this.dataForm.orgPids.split(',')) |
|
|
|
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(':') |
|
|
|
console.log(this.dataForm.orgPids.split(':')) |
|
|
|
// 行政组织 |
|
|
|
this.dataForm.maSelectAgency = this.dataForm.agencyPids.split(',') |
|
|
|
console.log(this.dataForm.agencyPids.split(',')) |
|
|
|
this.dataForm.maSelectAgency = this.dataForm.agencyPids.split(':') |
|
|
|
console.log(this.dataForm.agencyPids.split(':')) |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
@ -398,7 +396,7 @@ |
|
|
|
|
|
|
|
convert (lat, lng) { |
|
|
|
markers.setGeometries([]); |
|
|
|
// var input = document.getElementById('location').value.split(','); |
|
|
|
// var input = document.getElementById('location').value.split(':'); |
|
|
|
let location |
|
|
|
if (lat && lng) { |
|
|
|
location = new TMap.LatLng(lat, lng); |
|
|
|