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
142b0f72
authored
May 23, 2024
by
jason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
仿钉钉流程设计器- 审批节点超时处理
parent
03433278
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
2 deletions
+37
-2
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
+4
-0
src/components/SimpleProcessDesignerV2/src/consts.ts
+33
-0
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
+0
-0
src/components/SimpleProcessDesignerV2/src/nodes/CopyTaskNode.vue
+0
-1
src/components/SimpleProcessDesignerV2/src/nodes/UserTaskNode.vue
+0
-1
No files found.
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue
View file @
142b0f72
...
...
@@ -68,6 +68,10 @@ const addNode = (type: number) => {
candidateStrategy
:
CandidateStrategy
.
USER
,
candidateParam
:
undefined
,
fieldsPermission
:
undefined
,
// 超时处理
timeoutHandler
:
{
enable
:
false
}
},
childNode
:
props
.
childNode
}
...
...
src/components/SimpleProcessDesignerV2/src/consts.ts
View file @
142b0f72
...
...
@@ -46,6 +46,21 @@ export enum NodeType {
*/
INCLUSIVE_NODE_JOIN
=
8
}
// 时间单位枚举
export
enum
TimeUnitType
{
/**
* 分钟
*/
MINUTE
=
1
,
/**
* 小时
*/
HOUR
=
2
,
/**
* 天
*/
DAY
=
3
}
// 条件配置类型 ( 用于条件节点配置 )
export
enum
ConditionConfigType
{
...
...
@@ -171,6 +186,11 @@ NODE_DEFAULT_NAME.set(NodeType.USER_TASK_NODE, '审批人')
NODE_DEFAULT_NAME
.
set
(
NodeType
.
COPY_TASK_NODE
,
'抄送人'
)
NODE_DEFAULT_NAME
.
set
(
NodeType
.
CONDITION_NODE
,
'条件'
)
export
const
TIME_UNIT_MAP
=
new
Map
<
number
,
string
>
()
NODE_DEFAULT_NAME
.
set
(
1
,
'M'
)
NODE_DEFAULT_NAME
.
set
(
NodeType
.
COPY_TASK_NODE
,
'抄送人'
)
NODE_DEFAULT_NAME
.
set
(
NodeType
.
CONDITION_NODE
,
'条件'
)
export
const
APPROVE_METHODS
:
DictDataVO
[]
=
[
{
label
:
'单人审批'
,
value
:
1
},
...
...
@@ -184,6 +204,19 @@ export const CONDITION_CONFIG_TYPES: DictDataVO [] = [
{
label
:
'条件规则'
,
value
:
2
}
]
// 时间单位类型
export
const
TIME_UNIT_TYPES
:
DictDataVO
[]
=
[
{
label
:
'分钟'
,
value
:
TimeUnitType
.
MINUTE
},
{
label
:
'小时'
,
value
:
TimeUnitType
.
HOUR
},
{
label
:
'天'
,
value
:
TimeUnitType
.
DAY
},
]
// 超时处理执行动作类型
export
const
TIMEOUT_HANDLER_ACTION_TYPES
:
DictDataVO
[]
=
[
{
label
:
'自动提醒'
,
value
:
1
},
{
label
:
'自动同意'
,
value
:
2
},
{
label
:
'自动拒绝'
,
value
:
3
},
]
// 比较运算符
export
const
COMPARISON_OPERATORS
:
DictDataVO
=
[
{
...
...
src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue
View file @
142b0f72
This diff is collapsed.
Click to expand it.
src/components/SimpleProcessDesignerV2/src/nodes/CopyTaskNode.vue
View file @
142b0f72
...
...
@@ -34,7 +34,6 @@
<!-- 传递子节点给添加节点组件。会在子节点前面添加节点 -->
<NodeHandler
v-if=
"currentNode"
v-model:child-node=
"currentNode.childNode"
/>
</div>
<!-- 其实只需要一个全局抄送节点配置就行, 不需要多个。点击配置的时候传值. TODO 后面优化 -->
<CopyTaskNodeConfig
v-if=
"currentNode"
ref=
"nodeSetting"
...
...
src/components/SimpleProcessDesignerV2/src/nodes/UserTaskNode.vue
View file @
142b0f72
...
...
@@ -34,7 +34,6 @@
<NodeHandler
v-if=
"currentNode"
v-model:child-node=
"currentNode.childNode"
/>
</div>
</div>
<!-- 其实只需要一个全局审批节点配置就行, 不需要多个。点击配置的时候传值. TODO 后面优化 -->
<UserTaskNodeConfig
v-if=
"currentNode"
ref=
"nodeSetting"
...
...
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