优化定时任务模块
This commit is contained in:
parent
77abbe14dd
commit
91b3a09759
@ -7,7 +7,8 @@ export const columns = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id'
|
prop: 'id',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '任务名称',
|
label: '任务名称',
|
||||||
@ -22,14 +23,41 @@ export const columns = [
|
|||||||
prop: 'jobTrigger',
|
prop: 'jobTrigger',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'cron执行表达式',
|
label: '执行表达式',
|
||||||
prop: 'cronExpression',
|
prop: 'cronExpression',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '执行策略',
|
||||||
|
prop: 'executePolicyText',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '同步任务',
|
||||||
|
prop: 'isSync',
|
||||||
|
render(record) {
|
||||||
|
return h(
|
||||||
|
ElTag,
|
||||||
|
{
|
||||||
|
type: record.row.isSync == 1 ? 'primary' : 'warning',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
default: () => (record.row.isSync == 1 ? '同步' : '异步'),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'URL',
|
||||||
|
prop: 'url',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
isSlot:true,
|
isSlot:true,
|
||||||
value:'status'
|
value:'status'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '备注',
|
||||||
|
prop: 'note',
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// label: '状态',
|
// label: '状态',
|
||||||
// prop: 'status',
|
// prop: 'status',
|
||||||
|
@ -79,7 +79,7 @@ const selectionData = ref([])
|
|||||||
status:''
|
status:''
|
||||||
});
|
});
|
||||||
const actionColumn = reactive({
|
const actionColumn = reactive({
|
||||||
width: 300,
|
width: 350,
|
||||||
label: '操作',
|
label: '操作',
|
||||||
prop: 'action',
|
prop: 'action',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
|
Loading…
Reference in New Issue
Block a user