查看bug修复

main
liujun 2023-12-22 13:53:24 +08:00
parent 7d18e1bb2a
commit 41fa0b4d39
1 changed files with 21 additions and 0 deletions

View File

@ -178,6 +178,27 @@ export default {
if (e) {
this.users = e
}
//
for (let i; this.users.length > 0; i++) {
if (!this.users[0].MANAGER_DEPARTMENT_ID || this.users[0].MANAGER_DEPARTMENT_ID === '') {
this.$message({
message: '系统未指定主管部门,请将完善相关方信息',
type: 'error'
})
return false
}
}
//
const warden = this.users[0].MANAGER_DEPARTMENT_ID
for (let i; this.users.length > 0; i++) {
if (warden !== this.users[i].MANAGER_DEPARTMENT_ID) {
this.$message({
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
type: 'error'
})
return false
}
}
this.visible = true
this.loading = false
requestFN(