Browse Source

增加人员检索逻辑判断

dev
luyan 10 months ago
parent
commit
9c3e573241
  1. 15
      src/views/modules/base/organization/organization.vue

15
src/views/modules/base/organization/organization.vue

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

Loading…
Cancel
Save