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
91e2e32a
authored
Feb 18, 2025
by
Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加绘制流程图 审批人, 办理人,抄送 的表单字段权限的一键设置的功能
parent
6be64a21
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
8 deletions
+89
-8
src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue
+22
-2
src/components/SimpleProcessDesignerV2/src/nodes-config/StartUserNodeConfig.vue
+33
-3
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+34
-3
No files found.
src/components/SimpleProcessDesignerV2/src/nodes-config/CopyTaskNodeConfig.vue
View file @
91e2e32a
...
@@ -195,9 +195,13 @@
...
@@ -195,9 +195,13 @@
<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"
>
只读
<el-switch
v-model=
"readSwitch"
@
change=
"updatePermission('READ')"
/>
</span>
<span
class=
"setting-title-label"
>
可编辑
</span>
<span
class=
"setting-title-label"
>
可编辑
</span>
<span
class=
"setting-title-label"
>
隐藏
</span>
<span
class=
"setting-title-label"
>
隐藏
<el-switch
v-model=
"noneSwitch"
@
change=
"updatePermission('NONE')"
/>
</span>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -367,7 +371,23 @@ const showCopyTaskNodeConfig = (node: SimpleFlowNode) => {
...
@@ -367,7 +371,23 @@ const showCopyTaskNodeConfig = (node: SimpleFlowNode) => {
// 表单字段权限
// 表单字段权限
getNodeConfigFormFields
(
node
.
fieldsPermission
)
getNodeConfigFormFields
(
node
.
fieldsPermission
)
}
}
const
readSwitch
=
ref
(
false
);
const
noneSwitch
=
ref
(
false
);
const
updatePermission
=
(
type
:
string
)
=>
{
if
(
type
===
'READ'
)
{
readSwitch
.
value
=
true
;
noneSwitch
.
value
=
false
;
}
else
if
(
type
===
'NONE'
)
{
readSwitch
.
value
=
false
;
noneSwitch
.
value
=
true
;
}
fieldsPermissionConfig
.
value
.
forEach
(
field
=>
{
field
.
permission
=
type
===
'READ'
?
FieldPermissionType
.
READ
:
FieldPermissionType
.
NONE
;
});
};
defineExpose
({
openDrawer
,
showCopyTaskNodeConfig
})
// 暴露方法给父组件
defineExpose
({
openDrawer
,
showCopyTaskNodeConfig
})
// 暴露方法给父组件
</
script
>
</
script
>
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/StartUserNodeConfig.vue
View file @
91e2e32a
...
@@ -46,9 +46,15 @@
...
@@ -46,9 +46,15 @@
<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"
>
只读
<span
class=
"setting-title-label"
>
可编辑
</span>
<el-switch
v-model=
"readSwitch"
@
change=
"updatePermission('READ')"
/>
<span
class=
"setting-title-label"
>
隐藏
</span>
</span>
<span
class=
"setting-title-label"
>
可编辑
<el-switch
v-model=
"writeSwitch"
@
change=
"updatePermission('WRITE')"
/>
</span>
<span
class=
"setting-title-label"
>
隐藏
<el-switch
v-model=
"noneSwitch"
@
change=
"updatePermission('NONE')"
/>
</span>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -156,8 +162,32 @@ const showStartUserNodeConfig = (node: SimpleFlowNode) => {
...
@@ -156,8 +162,32 @@ const showStartUserNodeConfig = (node: SimpleFlowNode) => {
// 表单字段权限
// 表单字段权限
getNodeConfigFormFields
(
node
.
fieldsPermission
)
getNodeConfigFormFields
(
node
.
fieldsPermission
)
}
}
const
readSwitch
=
ref
(
false
)
const
writeSwitch
=
ref
(
false
)
const
noneSwitch
=
ref
(
false
)
const
updatePermission
=
(
type
)
=>
{
if
(
type
===
'READ'
)
{
readSwitch
.
value
=
true
;
writeSwitch
.
value
=
false
;
noneSwitch
.
value
=
false
;
}
else
if
(
type
===
'WRITE'
)
{
readSwitch
.
value
=
false
;
writeSwitch
.
value
=
true
;
noneSwitch
.
value
=
false
;
}
else
if
(
type
===
'NONE'
)
{
readSwitch
.
value
=
false
;
writeSwitch
.
value
=
false
;
noneSwitch
.
value
=
true
;
}
fieldsPermissionConfig
.
value
.
forEach
(
item
=>
{
item
.
permission
=
type
===
'READ'
?
FieldPermissionType
.
READ
:
type
===
'WRITE'
?
FieldPermissionType
.
WRITE
:
FieldPermissionType
.
NONE
;
});
}
defineExpose
({
openDrawer
,
showStartUserNodeConfig
})
// 暴露方法给父组件
defineExpose
({
openDrawer
,
showStartUserNodeConfig
})
// 暴露方法给父组件
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
<
style
lang=
"scss"
scoped
></
style
>
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
91e2e32a
...
@@ -454,9 +454,15 @@
...
@@ -454,9 +454,15 @@
<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"
>
只读
<span
class=
"setting-title-label"
>
可编辑
</span>
<el-switch
v-model=
"readSwitch"
@
change=
"updatePermission('READ')"
/>
<span
class=
"setting-title-label"
>
隐藏
</span>
</span>
<span
class=
"setting-title-label"
>
可编辑
<el-switch
v-model=
"writeSwitch"
@
change=
"updatePermission('WRITE')"
/>
</span>
<span
class=
"setting-title-label"
>
隐藏
<el-switch
v-model=
"noneSwitch"
@
change=
"updatePermission('NONE')"
/>
</span>
</div>
</div>
</div>
</div>
<div
<div
...
@@ -953,6 +959,31 @@ function useTimeoutHandler() {
...
@@ -953,6 +959,31 @@ function useTimeoutHandler() {
cTimeoutMaxRemindCount
cTimeoutMaxRemindCount
}
}
}
}
const
readSwitch
=
ref
(
false
);
const
writeSwitch
=
ref
(
false
);
const
noneSwitch
=
ref
(
false
);
const
updatePermission
=
(
type
:
string
)
=>
{
if
(
type
===
'READ'
)
{
readSwitch
.
value
=
true
;
writeSwitch
.
value
=
false
;
noneSwitch
.
value
=
false
;
}
else
if
(
type
===
'WRITE'
)
{
readSwitch
.
value
=
false
;
writeSwitch
.
value
=
true
;
noneSwitch
.
value
=
false
;
}
else
if
(
type
===
'NONE'
)
{
readSwitch
.
value
=
false
;
writeSwitch
.
value
=
false
;
noneSwitch
.
value
=
true
;
}
fieldsPermissionConfig
.
value
.
forEach
(
field
=>
{
field
.
permission
=
type
===
'READ'
?
FieldPermissionType
.
READ
:
type
===
'WRITE'
?
FieldPermissionType
.
WRITE
:
FieldPermissionType
.
NONE
;
});
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
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