|
|
|
@ -459,7 +459,7 @@ |
|
|
|
:visible.sync="transferPeo" |
|
|
|
width="30%" |
|
|
|
:before-close="handleClose"> |
|
|
|
<el-form> |
|
|
|
<el-form :model="agencyForm"> |
|
|
|
<el-form-item label="姓名"> |
|
|
|
<el-input v-model="transferForm.name" placeholder="姓名"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -507,7 +507,7 @@ |
|
|
|
v-for="item in zonings" |
|
|
|
:key="item.areaCode" |
|
|
|
:label="item.areaName" |
|
|
|
:value="item.areaCode"> |
|
|
|
:value="item"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
@ -1600,7 +1600,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
handelZoing(val){ |
|
|
|
console.log(val) |
|
|
|
this.agencyForm.level = val.level |
|
|
|
this.agencyForm.areaName = val.areaName |
|
|
|
this.agencyForm.areaCode = val.areaCode |
|
|
|
}, |
|
|
|
|
|
|
|
addAgency(row){ |
|
|
|
@ -1608,8 +1610,35 @@ export default { |
|
|
|
this.getUser() |
|
|
|
}, |
|
|
|
// 新增组织确定按钮 |
|
|
|
submitaddNewAgency(){ |
|
|
|
async submitaddNewAgency(){ |
|
|
|
const url = '/gov/org/agency/addagency-v2' |
|
|
|
|
|
|
|
let params = { |
|
|
|
parentAgencyId:this.userForm.parentAgencyId, |
|
|
|
agencyName:this.agencyForm.agencyName, |
|
|
|
level:this.agencyForm.level, |
|
|
|
areaCodeSwitch:'closed', |
|
|
|
areaCode:this.agencyForm.areaCode, |
|
|
|
areaName:this.agencyForm.areaName, |
|
|
|
contacts:this.agencyForm.contacts, |
|
|
|
mobile:this.agencyForm.mobile, |
|
|
|
code:this.agencyForm.code, |
|
|
|
latitude:this.latitude, |
|
|
|
longitude:this.longitude |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url,params) |
|
|
|
|
|
|
|
if(code === 0){ |
|
|
|
this.$message.success("添加成功") |
|
|
|
this.createAgencyDialogFlag = false |
|
|
|
this.getAgencyList() |
|
|
|
this.getDepartmentList() |
|
|
|
this.getGridList() |
|
|
|
this.agencyPeo() |
|
|
|
}else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** 地图初始化 */ |
|
|
|
|