|
|
@@ -0,0 +1,59 @@
|
|
|
+/**
|
|
|
+ * 节点数据定义
|
|
|
+ */
|
|
|
+export const nodeDataCommon = [
|
|
|
+ { prop: '', label: '', labelWidth: '0px', component: 'Divider', colSpan: 24, componentProps: { title: '基础配置' } },
|
|
|
+ { prop: 'bindRole', label: '选择角色', component: 'ApiSelect', componentProps: { api: '/role/list', labelField: 'roleName', valueField: 'roleID' } },
|
|
|
+ { prop: 'nodeDetail', label: '节点详细信息', component: 'Input' },
|
|
|
+ { prop: 'delaySkip', label: '延时跳过,单位秒', component: 'InputNumber', componentProps: { min: 0, max: 120, step: 1, suffix: '秒' } },
|
|
|
+ {
|
|
|
+ prop: 'loseItem',
|
|
|
+ label: '失格项',
|
|
|
+ component: 'Select',
|
|
|
+ defaultValue: '1',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '是', value: '1' },
|
|
|
+ { label: '否', value: '0' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'virtualOperation',
|
|
|
+ label: '虚拟操作',
|
|
|
+ component: 'radiogroup',
|
|
|
+ defaultValue: '0',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '是', value: '1' },
|
|
|
+ { label: '否', value: '0' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ }
|
|
|
+]
|
|
|
+
|
|
|
+/**
|
|
|
+ * 节点数据:触发方式
|
|
|
+ */
|
|
|
+export const nodeDataTrigger = [
|
|
|
+ { prop: '', label: '', labelWidth: '0px', component: 'Divider', colSpan: 24, componentProps: { title: '触发方式' } },
|
|
|
+ {
|
|
|
+ prop: 'triggerMode',
|
|
|
+ label: '触发方式',
|
|
|
+ component: 'Select',
|
|
|
+ defaultValue: '0',
|
|
|
+ componentProps: {
|
|
|
+ options: [
|
|
|
+ { label: '教员手动触发', value: '0' },
|
|
|
+ { label: '课程起始时间触发', value: '1' },
|
|
|
+ { label: '流程延迟时间触发', value: '2' },
|
|
|
+ { label: '任意流程推进到立即出发', value: '3' },
|
|
|
+ { label: '条件流程触发', value: '4' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { prop: 'event', label: '触发事件', component: 'Input' },
|
|
|
+ { prop: 'triggerDelay', label: '触发延迟,单位秒', component: 'InputNumber', componentProps: { min: 0, max: 120, step: 1, suffix: '秒' } },
|
|
|
+ { prop: 'textParam1', label: '参数1', component: 'Input' },
|
|
|
+ { prop: 'textParam2', label: '参数2', component: 'Input' }
|
|
|
+]
|