diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 0d1ed3b6b..85314ac64 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/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; }, // 修改社区人员