|
|
|
|
@ -479,6 +479,9 @@ export default { |
|
|
|
|
type: "tree", |
|
|
|
|
multiple: true, |
|
|
|
|
dicData: [], |
|
|
|
|
labelTip:'只能关联一个部门信息!', |
|
|
|
|
labelWidth:100, |
|
|
|
|
labelTipPlacement:'left', |
|
|
|
|
props: { |
|
|
|
|
label: "title" |
|
|
|
|
}, |
|
|
|
|
@ -729,14 +732,14 @@ export default { |
|
|
|
|
row.deptId = func.join(row.deptId); |
|
|
|
|
row.roleId = func.join(row.roleId); |
|
|
|
|
row.postId = func.join(row.postId); |
|
|
|
|
// if (row.deptId.split(',').length > 1) { |
|
|
|
|
// this.$message({ |
|
|
|
|
// type: "error", |
|
|
|
|
// message: "所属部门只能选择一个!" |
|
|
|
|
// }); |
|
|
|
|
// loading(); |
|
|
|
|
// return false |
|
|
|
|
// } |
|
|
|
|
if (row.deptId.split(',').length > 1) { |
|
|
|
|
this.$message({ |
|
|
|
|
type: "error", |
|
|
|
|
message: "所属部门只能选择一个!" |
|
|
|
|
}); |
|
|
|
|
loading(); |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if(row.roleId == "1846419477876510721"){ |
|
|
|
|
const column = this.findObject(this.option.group, "deptId"); |
|
|
|
|
column.dicData.map(item =>{ |
|
|
|
|
@ -999,9 +1002,9 @@ export default { |
|
|
|
|
if (["edit", "view"].includes(type)) { |
|
|
|
|
getUser(this.form.id).then(res => { |
|
|
|
|
this.form = res.data.data; |
|
|
|
|
if (this.form.hasOwnProperty('deptId')) { |
|
|
|
|
this.form.deptId = func.split(this.form.deptId); |
|
|
|
|
} |
|
|
|
|
// if (this.form.hasOwnProperty('deptId')) { |
|
|
|
|
// this.form.deptId = func.split(this.form.deptId); |
|
|
|
|
// } |
|
|
|
|
if (this.form.hasOwnProperty('roleId')) { |
|
|
|
|
this.form.roleId = func.split(this.form.roleId); |
|
|
|
|
} |
|
|
|
|
|