Commit 142b0f72 by jason

仿钉钉流程设计器- 审批节点超时处理

parent 03433278
...@@ -68,6 +68,10 @@ const addNode = (type: number) => { ...@@ -68,6 +68,10 @@ const addNode = (type: number) => {
candidateStrategy: CandidateStrategy.USER, candidateStrategy: CandidateStrategy.USER,
candidateParam: undefined, candidateParam: undefined,
fieldsPermission: undefined, fieldsPermission: undefined,
// 超时处理
timeoutHandler: {
enable: false
}
}, },
childNode: props.childNode childNode: props.childNode
} }
......
...@@ -46,6 +46,21 @@ export enum NodeType { ...@@ -46,6 +46,21 @@ export enum NodeType {
*/ */
INCLUSIVE_NODE_JOIN = 8 INCLUSIVE_NODE_JOIN = 8
} }
// 时间单位枚举
export enum TimeUnitType {
/**
* 分钟
*/
MINUTE = 1,
/**
* 小时
*/
HOUR = 2,
/**
* 天
*/
DAY = 3
}
// 条件配置类型 ( 用于条件节点配置 ) // 条件配置类型 ( 用于条件节点配置 )
export enum ConditionConfigType { export enum ConditionConfigType {
...@@ -171,6 +186,11 @@ NODE_DEFAULT_NAME.set(NodeType.USER_TASK_NODE, '审批人') ...@@ -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.COPY_TASK_NODE, '抄送人')
NODE_DEFAULT_NAME.set(NodeType.CONDITION_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 [] = [ export const APPROVE_METHODS: DictDataVO [] = [
{ label: '单人审批', value: 1 }, { label: '单人审批', value: 1 },
...@@ -184,6 +204,19 @@ export const CONDITION_CONFIG_TYPES: DictDataVO [] = [ ...@@ -184,6 +204,19 @@ export const CONDITION_CONFIG_TYPES: DictDataVO [] = [
{ label: '条件规则', value: 2 } { 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 = [ export const COMPARISON_OPERATORS : DictDataVO = [
{ {
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
<!-- 传递子节点给添加节点组件。会在子节点前面添加节点 --> <!-- 传递子节点给添加节点组件。会在子节点前面添加节点 -->
<NodeHandler v-if="currentNode" v-model:child-node="currentNode.childNode" /> <NodeHandler v-if="currentNode" v-model:child-node="currentNode.childNode" />
</div> </div>
<!-- 其实只需要一个全局抄送节点配置就行, 不需要多个。点击配置的时候传值. TODO 后面优化 -->
<CopyTaskNodeConfig <CopyTaskNodeConfig
v-if="currentNode" v-if="currentNode"
ref="nodeSetting" ref="nodeSetting"
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
<NodeHandler v-if="currentNode" v-model:child-node="currentNode.childNode" /> <NodeHandler v-if="currentNode" v-model:child-node="currentNode.childNode" />
</div> </div>
</div> </div>
<!-- 其实只需要一个全局审批节点配置就行, 不需要多个。点击配置的时候传值. TODO 后面优化 -->
<UserTaskNodeConfig <UserTaskNodeConfig
v-if="currentNode" v-if="currentNode"
ref="nodeSetting" ref="nodeSetting"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment