修改用户管理新增修改上级部门数据传参

master
jinna 11 months ago
parent 83e820e4ae
commit 89b9ba781e
  1. 22
      src/views/system/user.vue

@ -737,6 +737,17 @@ export default {
// loading();
// return false
// }
if(row.roleId == "1846419477876510721"){
const column = this.findObject(this.option.group, "deptId");
column.dicData.map(item =>{
item.children && item.children.map(item1 =>{
if(item1.id == row.deptId){
row.parentDeptId = item.id
row.parentDeptName = item.title
}
})
})
}
add(row).then(() => {
this.initFlag = false;
this.onLoad(this.page);
@ -754,6 +765,17 @@ export default {
row.deptId = func.join(row.deptId);
row.roleId = func.join(row.roleId);
row.postId = func.join(row.postId);
if(row.roleId == "1846419477876510721"){
const column = this.findObject(this.option.group, "deptId");
column.dicData.map(item =>{
item.children && item.children.map(item1 =>{
if(item1.id == row.deptId){
row.parentDeptId = item.id
row.parentDeptName = item.title
}
})
})
}
if (row.deptId.split(',').length > 1) {
this.$message({
type: "error",

Loading…
Cancel
Save