|
|
@ -1376,7 +1376,7 @@ export default { |
|
|
|
// 添加人员 |
|
|
|
async submitPeo () { |
|
|
|
const url = "/gov/org/staff/addstaffv2" |
|
|
|
|
|
|
|
const {peoForm:{orgType}} = this; |
|
|
|
let params = { |
|
|
|
orgType: this.peoForm.orgType, |
|
|
|
name: this.peoForm.name, |
|
|
@ -1385,7 +1385,7 @@ export default { |
|
|
|
workType: this.peoForm.post, |
|
|
|
roles: this.peoForm.duty, |
|
|
|
newRoles: this.peoForm.newRoles, |
|
|
|
orgId: this.currentAgencyId, |
|
|
|
orgId: orgType=='agency' ? this.currentAgencyId : (orgType=='dept' ? this.currentDepartmentId : this.currentGridOrgId), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -1401,6 +1401,13 @@ export default { |
|
|
|
this.getGridList() |
|
|
|
this.getAgencyStaffListData() |
|
|
|
this.insertFormRest() |
|
|
|
if(orgType=='dept'){ |
|
|
|
this.getDepartmentStaffListData() |
|
|
|
} else if(orgType=='grid'){ |
|
|
|
this.getGridStaffListData() |
|
|
|
} else { |
|
|
|
this.getAgencyStaffListData() |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
@ -1648,6 +1655,7 @@ export default { |
|
|
|
}, |
|
|
|
// 进入网格,查询网格所属人员 |
|
|
|
entryGrid (gridId) { |
|
|
|
console.log(gridId) |
|
|
|
this.gridStaffTableListData = [] |
|
|
|
this.departmentStaffTableListData = [] |
|
|
|
this.agencyStaffTableListData = [] |
|
|
@ -1663,6 +1671,7 @@ export default { |
|
|
|
}, |
|
|
|
// 进入部门,查询部门所属人员 |
|
|
|
entryDepartment (row) { |
|
|
|
console.log(row) |
|
|
|
this.gridStaffTableListData = [] |
|
|
|
this.departmentStaffTableListData = [] |
|
|
|
this.agencyStaffTableListData = [] |
|
|
|