Commit 497fedf7 authored by huangjie's avatar huangjie

*

parent d8f782c6
...@@ -326,10 +326,8 @@ ...@@ -326,10 +326,8 @@
// menuOptions // menuOptions
checkedKeys.forEach((v) => { checkedKeys.forEach((v) => {
console.log(v)
v = v.trim() v = v.trim()
let nodes = this.$refs.menu.getNode(v) let nodes = this.$refs.menu.getNode(v)
// console.log(nodes)
if(nodes.isLeaf == true){ if(nodes.isLeaf == true){
this.$refs.menu.setChecked(v,true,true); this.$refs.menu.setChecked(v,true,true);
}else{ }else{
......
...@@ -358,7 +358,7 @@ export default { ...@@ -358,7 +358,7 @@ export default {
this.deptId = row.deptId this.deptId = row.deptId
let islast = true let islast = true
let txt = '是否确认删除名称为"' + row.deptName + '"的数据项?' let txt = '是否确认删除名称为"' + row.deptName + '"的数据项?'
if(row.children && row.children.length>0){//该组织下还有数据 if((row.children && row.children.length>0) || row.existUsers == true){//该组织下还有数据
islast = false islast = false
txt='是否删除该组织及该组织包含的所有人员?' txt='是否删除该组织及该组织包含的所有人员?'
} }
...@@ -368,7 +368,6 @@ export default { ...@@ -368,7 +368,6 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(islast)
if(islast){ if(islast){
delDept(row.deptId).then(res=>{ delDept(row.deptId).then(res=>{
if(res.code == 200){ if(res.code == 200){
...@@ -417,6 +416,7 @@ export default { ...@@ -417,6 +416,7 @@ export default {
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}); });
this.getList()
}else{ }else{
this.$message.warning('删除失败!') this.$message.warning('删除失败!')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment