diff --git a/src/views/xgf/flow/components/sendUtil.vue b/src/views/xgf/flow/components/sendUtil.vue index 5cf5078..bc75230 100644 --- a/src/views/xgf/flow/components/sendUtil.vue +++ b/src/views/xgf/flow/components/sendUtil.vue @@ -107,7 +107,8 @@ export default { }, departmentTree: [], - peopleList: [] + peopleList: [], + corpFlag: false } }, methods: { @@ -122,12 +123,19 @@ export default { if (this.info.FLOWS_STEP === 0) { this.isShow = true await this.getDepartmentTree() + this.corpFlag = false } else { this.isShow = false } } else { this.isShow = true - await this.getCorpDepartmentTree() + if (this.info.FLOWS_STEP === 0) { + await this.getDepartmentTree() + this.corpFlag = false + } else { + await this.getCorpDepartmentTree() + this.corpFlag = true + } } this.loading = false }, @@ -174,7 +182,7 @@ export default { }, getPeopleList(e) { this.form.APPOINT_DEPARTMENT_NAME = e.name - if (this.info.FLOWS_TYPE === '0') { + if (!this.corpFlag) { requestFN( '/user/listAll', {