File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
src/components/bpmnProcessDesigner/package/penal/custom-config/components Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 127
127
<div class =" field-permit-title" >
128
128
<div class =" setting-title-label first-title" > 字段名称 </div >
129
129
<div class =" other-titles" >
130
- <span class =" setting-title-label" >只读</span >
131
- <span class =" setting-title-label" >可编辑</span >
132
- <span class =" setting-title-label" >隐藏</span >
130
+ <span class =" setting-title-label cursor-pointer " @click = " updatePermission('READ') " >只读</span >
131
+ <span class =" setting-title-label cursor-pointer " @click = " updatePermission('WRITE') " >可编辑</span >
132
+ <span class =" setting-title-label cursor-pointer " @click = " updatePermission('NONE') " >隐藏</span >
133
133
</div >
134
134
</div >
135
135
<div class =" field-setting-item" v-for =" (item, index) in fieldsPermissionEl" :key =" index" >
@@ -486,6 +486,18 @@ function useButtonsSetting() {
486
486
}
487
487
}
488
488
489
+ /** 批量更新权限 */
490
+ const updatePermission = (type : string ) => {
491
+ fieldsPermissionEl .value .forEach ((field ) => {
492
+ field .permission =
493
+ type === ' READ'
494
+ ? FieldPermissionType .READ
495
+ : type === ' WRITE'
496
+ ? FieldPermissionType .WRITE
497
+ : FieldPermissionType .NONE
498
+ })
499
+ }
500
+
489
501
const userOptions = ref <UserApi .UserVO []>([]) // 用户列表
490
502
onMounted (async () => {
491
503
// 获得用户列表
You can’t perform that action at this time.
0 commit comments