|
|
@ -1,10 +1,10 @@ |
|
|
|
<template> |
|
|
|
<el-dialog :visible.sync="visible" :title="!dataForm.id ? '新增党组织' : '更新党组织'" :close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false"> |
|
|
|
<el-form class="form" |
|
|
|
:model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
|
ref="dataForm" |
|
|
|
<el-form class="form" |
|
|
|
:model="dataForm" |
|
|
|
:rules="dataRule" |
|
|
|
ref="dataForm" |
|
|
|
@keyup.enter.native="dataFormSubmitHandle()" |
|
|
|
:label-width="$i18n.locale === 'en-US' ? '120px' : '100px'"> |
|
|
|
<el-form-item prop="partyOrgType" label="组织类型"> |
|
|
@ -127,13 +127,7 @@ |
|
|
|
customerId: '', |
|
|
|
staffId:'', |
|
|
|
orgPidName: '', |
|
|
|
agencyName:'', |
|
|
|
delFlag: '', |
|
|
|
revision: '', |
|
|
|
createdBy: '', |
|
|
|
createdTime: '', |
|
|
|
updatedBy: '', |
|
|
|
updatedTime: '', |
|
|
|
agencyName:'' |
|
|
|
}, |
|
|
|
orgListVisible: false, |
|
|
|
agencyListVisible:false, |
|
|
@ -167,7 +161,7 @@ |
|
|
|
} else { |
|
|
|
this.dataForm.mySelectOrg = '' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.orgListTreeSetDefaultHandle() |
|
|
|
} |
|
|
|
}) |
|
|
@ -234,7 +228,7 @@ |
|
|
|
return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: this.agencyId}}).then(({data: res}) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} |
|
|
|
} |
|
|
|
this.orgList = res.data |
|
|
|
this.orgList.unshift({ |
|
|
|
partyOrgName: '一级组织', |
|
|
@ -286,7 +280,7 @@ |
|
|
|
// 行政组织 |
|
|
|
this.dataForm.maSelectAgency = this.dataForm.agencyPids.split(':') |
|
|
|
console.log(this.dataForm.agencyPids.split(':')) |
|
|
|
|
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
}) |
|
|
|
|
|
|
@ -317,7 +311,7 @@ |
|
|
|
document.getElementById('mapSeach_id').style.display = "block" |
|
|
|
document.getElementById('lon_lat_id').style.display = "block" |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 定义地图中心点坐标 |
|
|
|
var center = new window.TMap.LatLng(36.0722275, 120.38945519) |
|
|
|
// 定义map变量,调用 TMap.Map() 构造函数创建地图 |
|
|
|