逻辑调整

master
zhangdi 11 months ago
parent 89b9ba781e
commit 74b6dfd57f
  1. 25
      src/views/system/user.vue

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

Loading…
Cancel
Save