1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| import { globalSysField } from '#/utils/constants/organize';
|
| const sourceTypeOptions = [
| { id: 1, fullName: '字段' },
| { id: 2, fullName: '自定义' },
| { id: 3, fullName: '为空' },
| { id: 4, fullName: '系统变量' },
| ];
| const sourceTypeFlowOptions = [
| { id: 1, fullName: '字段' },
| { id: 2, fullName: '自定义' },
| { id: 3, fullName: '为空' },
| { id: 4, fullName: '系统变量' },
| { id: 5, fullName: '全局变量' },
| ];
| const simpleSourceTypeOptions = [
| { id: 1, fullName: '字段' },
| { id: 2, fullName: '自定义' },
| ];
| const interfaceSystemOptions = [{ id: '@formId', fullName: '@表单ID' }, ...globalSysField];
| const templateJsonColumns = [
| { width: 50, title: '序号', align: 'center', customRender: ({ index }) => index + 1 },
| { title: '参数名称', dataIndex: 'field', key: 'field' },
| { title: '参数来源', dataIndex: 'sourceType', key: 'sourceType', width: 110 },
| { title: '参数值', dataIndex: 'relationField', key: 'relationField', width: 220 },
| ];
| const systemFieldOptions = [
| { id: '@flowId', fullName: '流程ID', label: '@flowId(流程ID)' },
| { id: '@taskId', fullName: '任务ID', label: '@taskId(任务ID)' },
| { id: '@taskNodeId', fullName: '节点ID', label: '@taskNodeId(节点ID)' },
| { id: '@flowFullName', fullName: '流程名称', label: '@flowFullName(流程名称)' },
| { id: '@taskFullName', fullName: '任务标题', label: '@taskFullName(任务标题)' },
| { id: '@launchUserId', fullName: '发起用户ID', label: '@launchUserId(发起用户ID)' },
| { id: '@launchUserName', fullName: '发起用户名', label: '@launchUserName(发起用户名)' },
| { id: '@flowOperatorUserId', fullName: '当前操作用户ID', label: '@flowOperatorUserId(当前操作用户ID)' },
| { id: '@flowOperatorUserName', fullName: '当前操作用户名', label: '@flowOperatorUserName(当前操作用户名)' },
| ];
|
| export { interfaceSystemOptions, simpleSourceTypeOptions, sourceTypeFlowOptions, sourceTypeOptions, systemFieldOptions, templateJsonColumns };
|
|