Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
afca393c
authored
Feb 28, 2025
by
Lesan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: bpmn设计器UserTask添加批量更新字段权限
parent
c304d456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
+15
-3
No files found.
src/components/bpmnProcessDesigner/package/penal/custom-config/components/UserTaskCustomConfig.vue
View file @
afca393c
...
@@ -127,9 +127,9 @@
...
@@ -127,9 +127,9 @@
<div
class=
"field-permit-title"
>
<div
class=
"field-permit-title"
>
<div
class=
"setting-title-label first-title"
>
字段名称
</div>
<div
class=
"setting-title-label first-title"
>
字段名称
</div>
<div
class=
"other-titles"
>
<div
class=
"other-titles"
>
<span
class=
"setting-title-label"
>
只读
</span>
<span
class=
"setting-title-label
cursor-pointer"
@
click=
"updatePermission('READ')
"
>
只读
</span>
<span
class=
"setting-title-label"
>
可编辑
</span>
<span
class=
"setting-title-label
cursor-pointer"
@
click=
"updatePermission('WRITE')
"
>
可编辑
</span>
<span
class=
"setting-title-label"
>
隐藏
</span>
<span
class=
"setting-title-label
cursor-pointer"
@
click=
"updatePermission('NONE')
"
>
隐藏
</span>
</div>
</div>
</div>
</div>
<div
class=
"field-setting-item"
v-for=
"(item, index) in fieldsPermissionEl"
:key=
"index"
>
<div
class=
"field-setting-item"
v-for=
"(item, index) in fieldsPermissionEl"
:key=
"index"
>
...
@@ -486,6 +486,18 @@ function useButtonsSetting() {
...
@@ -486,6 +486,18 @@ function useButtonsSetting() {
}
}
}
}
/** 批量更新权限 */
const
updatePermission
=
(
type
:
string
)
=>
{
fieldsPermissionEl
.
value
.
forEach
((
field
)
=>
{
field
.
permission
=
type
===
'READ'
?
FieldPermissionType
.
READ
:
type
===
'WRITE'
?
FieldPermissionType
.
WRITE
:
FieldPermissionType
.
NONE
})
}
const
userOptions
=
ref
<
UserApi
.
UserVO
[]
>
([])
// 用户列表
const
userOptions
=
ref
<
UserApi
.
UserVO
[]
>
([])
// 用户列表
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
// 获得用户列表
// 获得用户列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment