123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- export const tableOption = {
- border: true,
- card: true,
- index: true,
- indexLabel: '序号',
- stripe: true,
- menu: true,
- menuAlign: 'center',
- filterBtn: false,
- menuWidth: 300,
- align: 'center',
- viewBtn: false,
- editBtn: false,
- delBtn: false,
- addBtn: false,
- dialogWidth: '85%',
- labelWidth: 130,
- dialogHeight: '78%',
- column: [
- {
- label: 'jobId',
- prop: 'jobId',
- hide: true,
- addDisplay: false,
- editDisplay: false,
- rules:
- [{
- required: true,
- message: '请输入任务类型',
- trigger: 'blur'
- }]
- },
- {
- label: '任务名称',
- prop: 'jobName',
- search: true,
- placeholder: '任务名称',
- rules: [{
- required: true,
- message: '请输入任务名称',
- trigger: 'blur'
- }],
- editDisabled: true
- },
- {
- label: '任务组名',
- prop: 'jobGroup',
- search: true,
- rules:
- [{
- required: true,
- message: '请输入任务组名',
- trigger: 'blur'
- }],
- editDisabled: true
- },
- {
- label: '任务状态',
- prop: 'jobStatus',
- type: 'select',
- dicUrl: '/admin/dict/type/job_status',
- addDisplay: false,
- search: true,
- slot: true
- },
- {
- label: '执行状态',
- prop: 'jobExecuteStatus',
- type: 'select',
- dicUrl: '/admin/dict/type/job_execute_status',
- addDisplay: false,
- search: true,
- slot: true
- },
- {
- label: '创建者',
- prop: 'createBy',
- hide: true,
- addDisplay: false,
- editDisplay: false
- },
- {
- label: '创建时间',
- prop: 'createTime',
- type: 'datetime',
- hide: true,
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 120,
- addDisplay: false,
- editDisplay: false
- },
- {
- label: '更新者',
- prop: 'updateBy',
- hide: true,
- addDisplay: false,
- editDisplay: false
- },
- {
- label: '更新时间',
- prop: 'updateTime',
- type: 'datetime',
- hide: true,
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 160,
- addDisplay: false,
- editDisplay: false
- },
- {
- label: '首次执行时间',
- prop: 'startTime',
- type: 'datetime',
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 160,
- addDisplay: false,
- editDisabled: true
- }, {
- label: '上次执行时间',
- prop: 'previousTime',
- type: 'datetime',
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 160,
- addDisplay: false,
- editDisabled: true
- }, {
- label: '下次执行时间',
- prop: 'nextTime',
- type: 'datetime',
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 160,
- addDisplay: false,
- editDisabled: true
- },
- {
- label: '组内顺序',
- prop: 'jobOrder',
- hide: true,
- addDisplay: false,
- editDisplay: false,
- type: 'silder',
- step: 1,
- min: 1,
- max: 9,
- showStops: true
- },
- {
- label: '类型',
- prop: 'jobType',
- type: 'select',
- dicUrl: '/admin/dict/type/job_type',
- width: 100,
- rules:
- [{
- required: true,
- message: '请输入任务类型',
- trigger: 'blur'
- }]
- },
- {
- label: '执行路径',
- prop: 'executePath',
- overHidden: true
- },
- {
- label: '执行文件',
- prop: 'className',
- overHidden: true
- },
- {
- label: '执行方法',
- prop: 'methodName',
- overHidden: true,
- width: 120
- },
- {
- label: '执行参数值',
- prop: 'methodParamsValue',
- width: 100,
- overHidden: true
- },
- {
- label: 'cron表达式',
- prop: 'cronExpression',
- width: 100,
- formslot: true,
- rules:
- [{
- required: true,
- max: 200,
- message: '请输入2cron表达式',
- trigger: 'change'
- }]
- },
- {
- label: '错失执行策略',
- prop: 'misfirePolicy',
- type: 'select',
- dicUrl: '/admin/dict/type/misfire_policy',
- width: 120,
- rules:
- [{
- required: true,
- message: '请输入任务错失执行策略',
- trigger: 'blur'
- }]
- },
- {
- label: '租户',
- prop: 'tenantId',
- hide: true,
- addDisplay: false,
- editDisplay: false
- },
- {
- label: '备注信息',
- prop: 'remark',
- type: 'textarea',
- span: 20,
- overHidden: true,
- rules:
- [{
- max: 500,
- message: '备注信息不得超过500',
- trigger: 'blur'
- }]
- }
- ]
- }
- export const tableLogOption = {
- border: true,
- index: false,
- menu: false,
- page: true,
- indexLabel: '序号',
- stripe: true,
- filterBtn: false,
- editBtn: false,
- delBtn: false,
- addBtn: false,
- columnBtn: false,
- column: [
- {
- label: 'id',
- prop: 'jobLogId',
- hide: true
- },
- {
- label: '任务id',
- prop: 'jobId',
- hide: true
- },
- {
- label: '任务名称',
- prop: 'jobName'
- },
- {
- label: '任务组名',
- prop: 'jobGroup'
- },
- {
- label: '状态',
- prop: 'jobLogStatus',
- type: 'select',
- dicUrl: '/admin/dict/type/job_execute_status',
- slot: true
- },
- {
- label: '组内顺序',
- prop: 'jobOrder',
- hide: true
- },
- {
- label: '类型',
- prop: 'jobType',
- type: 'select',
- dicUrl: '/admin/dict/type/job_type',
- width: 100
- },
- {
- label: '执行路径',
- prop: 'executePath',
- overHidden: true
- },
- {
- label: '执行文件',
- prop: 'className',
- overHidden: true
- },
- {
- label: '执行方法',
- prop: 'methodName',
- overHidden: true,
- width: 120
- },
- {
- label: '执行参数值',
- prop: 'methodParamsValue',
- width: 100,
- overHidden: true
- },
- {
- label: 'cron表达式',
- prop: 'cronExpression',
- width: 100,
- overHidden: true
- },
- {
- label: '状态描述',
- prop: 'jobMessage'
- },
- {
- label: '执行时间(ms)',
- prop: 'executeTime',
- width: 120
- },
- {
- label: '异常信息',
- prop: 'exceptionInfo',
- overHidden: true
- },
- {
- label: '开始时间',
- prop: 'createTime',
- type: 'datetime',
- format: 'yyyy-MM-dd HH:mm:ss',
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 160
- }
- ]
- }
|