|
|
|
|
@ -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", |
|
|
|
|
|