From f361d4558eb23118e49e57e1482d0e1c15c9a73a Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 22 Dec 2023 15:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flowApply/components/apply.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/xgf/flowApply/components/apply.vue b/src/views/xgf/flowApply/components/apply.vue index f748966..3c96882 100644 --- a/src/views/xgf/flowApply/components/apply.vue +++ b/src/views/xgf/flowApply/components/apply.vue @@ -179,8 +179,8 @@ export default { this.users = e } // 判断是否有主管部门 - for (let i; this.users.length > 0; i++) { - if (!this.users[0].MANAGER_DEPARTMENT_ID || this.users[0].MANAGER_DEPARTMENT_ID === '') { + for (let i; this.users.length > i; i++) { + if (!this.users[0].MAIN_DEPARTMENT_ID || this.users[0].MAIN_DEPARTMENT_ID === '') { this.$message({ message: '系统未指定主管部门,请将完善相关方信息', type: 'error' @@ -189,9 +189,9 @@ export default { } } // 判断主管部门是否一致 - const warden = this.users[0].MANAGER_DEPARTMENT_ID - for (let i; this.users.length > 0; i++) { - if (warden !== this.users[i].MANAGER_DEPARTMENT_ID) { + const warden = this.users[0].MAIN_DEPARTMENT_ID + for (let i; this.users.length > i; i++) { + if (warden !== this.users[i].MAIN_DEPARTMENT_ID) { this.$message({ message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择', type: 'error' @@ -205,7 +205,7 @@ export default { '/openApi/department/listTree', { CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID, tm: new Date().getTime() } ).then((data) => { - this.form.MANAGER = this.users[0].MANAGER_DEPARTMENT_ID + this.form.MANAGER = this.users[0].MAIN_DEPARTMENT_ID this.jituanDanweiTreeData = JSON.parse(data.zTreeNodes) this.getTreeData() })