Browse Source

, 改:

shibei_master
zhaoyongnian 3 years ago
parent
commit
6e45284fa6
  1. 20
      src/views/modules/partymember/icpartyorg-add-or-update.vue
  2. 4
      src/views/modules/partymember/lookMember.vue

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

@ -163,7 +163,7 @@
this.getInfo() this.getInfo()
} else { } else {
if(this.dataForm.orgPids) { if(this.dataForm.orgPids) {
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(',') this.dataForm.mySelectOrg = this.dataForm.orgPids.split(':')
} else { } else {
this.dataForm.mySelectOrg = '' this.dataForm.mySelectOrg = ''
} }
@ -234,9 +234,7 @@
return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId}}).then(({data: res}) => { return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId}}).then(({data: res}) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)
} }
console.log(':::::::::', JSON.stringify(res.data))
this.orgList = res.data this.orgList = res.data
this.orgList.unshift({ this.orgList.unshift({
partyOrgName: '一级组织', partyOrgName: '一级组织',
@ -251,7 +249,7 @@
this.dataForm.orgPid = this.dataForm.mySelectOrg[this.dataForm.mySelectOrg.length - 1] this.dataForm.orgPid = this.dataForm.mySelectOrg[this.dataForm.mySelectOrg.length - 1]
this.dataForm.orgPids = '' this.dataForm.orgPids = ''
this.dataForm.mySelectOrg.forEach(element => { 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 { } else {
this.dataForm.orgPid = '' this.dataForm.orgPid = ''
@ -265,7 +263,7 @@
this.dataForm.agencyId = this.dataForm.maSelectAgency[this.dataForm.maSelectAgency.length - 1] this.dataForm.agencyId = this.dataForm.maSelectAgency[this.dataForm.maSelectAgency.length - 1]
this.dataForm.agencyPids = '' this.dataForm.agencyPids = ''
this.dataForm.maSelectAgency.forEach(element => { 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 { } else {
this.dataForm.agencyId = '' this.dataForm.agencyId = ''
@ -283,11 +281,11 @@
...res.data ...res.data
} }
// //
this.dataForm.mySelectOrg = this.dataForm.orgPids.split(',') this.dataForm.mySelectOrg = this.dataForm.orgPids.split(':')
console.log(this.dataForm.orgPids.split(',')) console.log(this.dataForm.orgPids.split(':'))
// //
this.dataForm.maSelectAgency = this.dataForm.agencyPids.split(',') this.dataForm.maSelectAgency = this.dataForm.agencyPids.split(':')
console.log(this.dataForm.agencyPids.split(',')) console.log(this.dataForm.agencyPids.split(':'))
}).catch(() => { }).catch(() => {
}) })
@ -398,7 +396,7 @@
convert (lat, lng) { convert (lat, lng) {
markers.setGeometries([]); markers.setGeometries([]);
// var input = document.getElementById('location').value.split(','); // var input = document.getElementById('location').value.split(':');
let location let location
if (lat && lng) { if (lat && lng) {
location = new TMap.LatLng(lat, lng); location = new TMap.LatLng(lat, lng);

4
src/views/modules/partymember/lookMember.vue

@ -55,8 +55,8 @@ export default {
components: {}, components: {},
methods: { methods: {
initForm (orgPids) { initForm (orgPids) {
if (orgPids.split(',').length > 0) { if (orgPids.split(':').length > 0) {
this.orgPids = orgPids.split(',')[orgPids.split(',').length - 1] this.orgPids = orgPids.split(':')[orgPids.split(':').length - 1]
} }
this.tableLoading = true this.tableLoading = true
this.loadTable() this.loadTable()

Loading…
Cancel
Save