config.data.ts
2.63 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import { DescItem } from '/@/components/Description/index';
import { BasicColumn, FormSchema } from '/@/components/Table';
import moment from 'moment';
export const personSchema: DescItem[] = [
{
field: 'b1',
label: '任务编号:',
},
{
field: 'b2',
label: '任务分组:',
},
{
field: 'b3',
label: '任务名称:',
},
{
field: 'b4',
label: '创建时间:',
},
{
field: 'b5',
label: 'cron表达式:',
},
{
field: 'b6',
label: '下次执行时间:',
},
{
field: 'b7',
label: '调用目标方法:',
},
{
field: 'b8',
label: '任务状态:',
},
{
field: 'b9',
label: '是否并发:',
},
{
field: 'b10',
label: '执行策略:',
},
];
// 调度日志表格配置
export const columnSchedue: BasicColumn[] = [
{
title: '日志编号',
dataIndex: 'name',
width: 80,
},
{
title: '任务名称',
dataIndex: 'organizationId',
width: 120,
},
{
title: '任务组名',
dataIndex: 'dataCompare',
width: 120,
},
{
title: '调用目标字符串',
dataIndex: 'status',
width: 120,
},
{
title: '日志信息',
dataIndex: 'executeWay',
width: 160,
},
{
title: '执行状态',
dataIndex: 'devices',
width: 160,
slots: { customRender: 'doStatus' },
},
{
title: '执行时间',
dataIndex: 'creator',
width: 180,
},
];
// 调度日志表格查询配置
export const searchSchedueFormSchema: FormSchema[] = [
{
field: 'name',
label: '任务名称',
component: 'Input',
colProps: { span: 4 },
componentProps: {
maxLength: 36,
placeholder: '请输入任务名称',
},
},
{
field: 'status',
label: '任务组名',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{
label: '默认',
value: 1,
},
{
label: '系统',
value: 0,
},
],
placeholder: '请选择任务组名',
},
},
{
field: 'status1',
label: '执行状态',
component: 'Select',
colProps: { span: 4 },
componentProps: {
options: [
{
label: '成功',
value: 1,
},
{
label: '失败',
value: 0,
},
],
placeholder: '请选择执行状态',
},
},
{
field: 'sendTime',
label: '执行时间',
component: 'RangePicker',
componentProps: {
showTime: {
defaultValue: [moment('00:00:00', 'HH:mm:ss'), moment('23:59:59', 'HH:mm:ss')],
},
},
colProps: { span: 4 },
},
];