查看bug修复

main
liujun 2023-12-22 15:49:12 +08:00
parent 41fa0b4d39
commit f361d4558e
1 changed files with 6 additions and 6 deletions

View File

@ -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()
})