|
@ -1010,10 +1010,8 @@ export default { |
|
|
if (res.code !== 0) { |
|
|
if (res.code !== 0) { |
|
|
return this.$message.error(res.msg) |
|
|
return this.$message.error(res.msg) |
|
|
} else { |
|
|
} else { |
|
|
console.log('获取组织树成功', res.data) |
|
|
|
|
|
this.orgOptions = [] |
|
|
this.orgOptions = [] |
|
|
this.orgOptions.push(res.data) |
|
|
this.orgOptions.push(res.data) |
|
|
console.log(this.orgOptions, "sdkfhkjdfs"); |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
@ -1022,7 +1020,11 @@ export default { |
|
|
}, |
|
|
}, |
|
|
searchStaff() { |
|
|
searchStaff() { |
|
|
if(null != this.searchValue && this.searchValue != ''){ |
|
|
if(null != this.searchValue && this.searchValue != ''){ |
|
|
this.getGridStaffListData(); |
|
|
if (this.breadcrumbArr.length != 4){ |
|
|
|
|
|
this.getAgencyStaffListData(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.getGridStaffListData(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// async loadOptions(node, resolve) { |
|
|
// async loadOptions(node, resolve) { |
|
@ -1146,7 +1148,7 @@ export default { |
|
|
let params = { |
|
|
let params = { |
|
|
orgId: this.currentGridOrgId, |
|
|
orgId: this.currentGridOrgId, |
|
|
orgType: "grid", |
|
|
orgType: "grid", |
|
|
searchName:this.searchValue, |
|
|
searchName: this.searchValue, |
|
|
pageNo: 1, |
|
|
pageNo: 1, |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
}; |
|
|
}; |
|
@ -1720,7 +1722,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 修改人员 |
|
|
// 修改人员 |
|
|
async xiuPeo(row) { |
|
|
async xiuPeo(row) { |
|
|
console.log(row); |
|
|
|
|
|
this.modifyPeo = true; |
|
|
this.modifyPeo = true; |
|
|
this.peoForm.orgType = "agency"; |
|
|
this.peoForm.orgType = "agency"; |
|
|
this.userStaffId = row.staffId; |
|
|
this.userStaffId = row.staffId; |
|
@ -1731,8 +1732,6 @@ export default { |
|
|
}; |
|
|
}; |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
console.log("修改人员", data); |
|
|
|
|
|
|
|
|
|
|
|
this.peoForm.name = data.name; |
|
|
this.peoForm.name = data.name; |
|
|
this.peoForm.mobile = data.mobile; |
|
|
this.peoForm.mobile = data.mobile; |
|
|
this.peoForm.post = data.workType; |
|
|
this.peoForm.post = data.workType; |
|
@ -1754,7 +1753,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
findParentPath(data, agencyIds) { |
|
|
findParentPath(data, agencyIds) { |
|
|
console.log(data, agencyIds, "dskck"); |
|
|
|
|
|
let paths = []; |
|
|
let paths = []; |
|
|
function findPathRecursive(agencyId, node, path) { |
|
|
function findPathRecursive(agencyId, node, path) { |
|
|
; |
|
|
; |
|
@ -1776,7 +1774,6 @@ export default { |
|
|
agencyIds.forEach(agencyId => { |
|
|
agencyIds.forEach(agencyId => { |
|
|
findPathRecursive(agencyId, data, []); |
|
|
findPathRecursive(agencyId, data, []); |
|
|
}); |
|
|
}); |
|
|
console.log(paths, "paths"); |
|
|
|
|
|
return paths; |
|
|
return paths; |
|
|
}, |
|
|
}, |
|
|
// 修改社区人员 |
|
|
// 修改社区人员 |
|
|