diff --git a/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue b/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue
index 958a541..bd41ad4 100644
--- a/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue
+++ b/com.actionsoft.apps.coe.pal.cooperation/src/views/role/RoleUpdate.vue
@@ -40,6 +40,7 @@
全部
{
+ let node = that.$refs.tree.root;
+ node.loaded = false;
+ node.expand();
+ })
} else {
that.$message.error(ro.msg);
}
@@ -277,6 +284,13 @@
appPerm: [],
actionPerm: [],
};
+ if (!that.isOlderVersion){
+ that.$refs.tree.setCheckedNodes([]);
+ that.$refs.tree.$children = [];
+ that.treeChecked = [];
+ that.dataActionPerm = [];
+ that.dataActionPermOpts = [];
+ }
},
handleClose(done) {
@@ -342,9 +356,6 @@
data: JSON.stringify(data)
}
};
-
- // console.log("submit:",data)
- // console.log("data:",that.roleForm.dataPerm)
awsuiAxios.post(params).then(function (ro) {
that.loading = false;
if (ro.result == 'ok') {
@@ -353,7 +364,6 @@
type: 'success'
});
that.$emit('getResult', 'ok');
- that.dialogVisible = false;
// 清空所有数据
that.clearAllData();
} else {
@@ -370,7 +380,6 @@
})
} else {
that.$emit('cancel');
- that.dialogVisible = false;
// 清空所有数据
that.clearAllData();
}
@@ -469,11 +478,7 @@
let data = ro.data;
for (let i = 0; i < data.length; i++) {
let item = data[i];
- // console.log("@@",that.dataActionPerm)
- // console.log("@@",item.versionId)
- // console.log("@@",that.dataActionPerm[item.versionId])
if (that.dataActionPerm[item.versionId] != undefined){
- // console.log("join")
Object.assign(item,{dataActionPerm:that.dataActionPerm[item.versionId]})
}else {
Object.assign(item,{dataActionPerm:[]})