查看bug修复
parent
41fa0b4d39
commit
f361d4558e
|
@ -179,8 +179,8 @@ export default {
|
||||||
this.users = e
|
this.users = e
|
||||||
}
|
}
|
||||||
// 判断是否有主管部门
|
// 判断是否有主管部门
|
||||||
for (let i; this.users.length > 0; i++) {
|
for (let i; this.users.length > i; i++) {
|
||||||
if (!this.users[0].MANAGER_DEPARTMENT_ID || this.users[0].MANAGER_DEPARTMENT_ID === '') {
|
if (!this.users[0].MAIN_DEPARTMENT_ID || this.users[0].MAIN_DEPARTMENT_ID === '') {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '系统未指定主管部门,请将完善相关方信息',
|
message: '系统未指定主管部门,请将完善相关方信息',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
@ -189,9 +189,9 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 判断主管部门是否一致
|
// 判断主管部门是否一致
|
||||||
const warden = this.users[0].MANAGER_DEPARTMENT_ID
|
const warden = this.users[0].MAIN_DEPARTMENT_ID
|
||||||
for (let i; this.users.length > 0; i++) {
|
for (let i; this.users.length > i; i++) {
|
||||||
if (warden !== this.users[i].MANAGER_DEPARTMENT_ID) {
|
if (warden !== this.users[i].MAIN_DEPARTMENT_ID) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
|
message: '选择的人员(' + this.users[i].NAME + ')主管部门不一致,请重新选择',
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
@ -205,7 +205,7 @@ export default {
|
||||||
'/openApi/department/listTree',
|
'/openApi/department/listTree',
|
||||||
{ CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID, tm: new Date().getTime() }
|
{ CORPINFO_ID: JSON.parse(sessionStorage.getItem('user')).CORPINFO_ID, tm: new Date().getTime() }
|
||||||
).then((data) => {
|
).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.jituanDanweiTreeData = JSON.parse(data.zTreeNodes)
|
||||||
this.getTreeData()
|
this.getTreeData()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue