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-04 16:22:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
207bde21c3095eeb7a0562e9a6e433bb4c701513
207bde21
1 parent
d38419f1
字段权限选中逻辑优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
doc/App.vue
doc/App.vue
View file @
207bde2
...
...
@@ -968,7 +968,12 @@ export default {
* @param index
*/
const onAuthVisibleChange = (val: any, index: number) => {
checkAuthAll('visible')
// 可见不选中时,可编辑也取消选中
if (!val.visible.checked) {
val.editable.checked = false
}
checkAuthAll('visible');
checkAuthAll('editable');
}
/**
...
...
@@ -977,7 +982,12 @@ export default {
* @param index
*/
const onAuthEditableChange = (val: any, index: number) => {
checkAuthAll('editable')
// 可编辑选中时,勾选可见
if (val.editable.checked) {
val.visible.checked = true
}
checkAuthAll('editable');
checkAuthAll('visible')
}
/**
...
...
Please
register
or
login
to post a comment