Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-12-12 15:36:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a46777504dc1e8ff8d01ef8fd5557c01e4b231d
0a467775
1 parent
85c26fc9
fix 全选字段权限时,需要同步本地缓存
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
doc/App.vue
doc/App.vue
View file @
0a46777
...
...
@@ -1199,6 +1199,10 @@ export default {
ele.visible.checked = false
})
}
// 修改缓存树的字段权限
if (state.node_tree[state.detailModel?.id]) {
state.node_tree[state.detailModel.id].field_auths = _.cloneDeep(state.field_auths);
}
}
/**
...
...
@@ -1223,6 +1227,10 @@ export default {
ele.editable.checked = false
})
}
// 修改缓存树的字段权限
if (state.node_tree[state.detailModel?.id]) {
state.node_tree[state.detailModel.id].field_auths = _.cloneDeep(state.field_auths);
}
}
/**
...
...
@@ -1372,7 +1380,7 @@ export default {
state.attr_radio = '基础属性'; // 还原tab默认值
// 如果是缓存过的节点,则直接显示
if (
state.node_tree[state.detailModel.id]
) {
if (
!_.isEmpty(state.node_tree[state.detailModel.id])
) {
state.statusLoading = false;
state.node_name = state.node_tree[state.detailModel.id].name;
state.userTags = state.node_tree[state.detailModel.id].user;
...
...
Please
register
or
login
to post a comment