feat: 完成简单的任务执行
This commit is contained in:
@@ -69,8 +69,23 @@ function TaskTemplateList() {
|
||||
{
|
||||
type: 'operation',
|
||||
label: '操作',
|
||||
width: 100,
|
||||
width: 150,
|
||||
buttons: [
|
||||
{
|
||||
type: 'action',
|
||||
label: '执行',
|
||||
level: 'link',
|
||||
actionType: 'ajax',
|
||||
api: {
|
||||
method: 'post',
|
||||
url: `${commonInfo.baseUrl}/task/execute`,
|
||||
data: {
|
||||
templateId: '${id}',
|
||||
},
|
||||
},
|
||||
confirmText: '确认执行模板<span class="text-lg font-bold mx-2">${name}</span>?',
|
||||
confirmTitle: '删除',
|
||||
},
|
||||
{
|
||||
type: 'action',
|
||||
label: '详情',
|
||||
@@ -96,9 +111,9 @@ function TaskTemplateList() {
|
||||
level: 'link',
|
||||
actionType: 'ajax',
|
||||
api: `get:${commonInfo.baseUrl}/task_template/remove/\${id}`,
|
||||
confirmText: '确认删除模板[${name}]?',
|
||||
confirmTitle: "删除",
|
||||
}
|
||||
confirmText: '确认删除模板<span class="text-lg font-bold mx-2">${name}</span>?',
|
||||
confirmTitle: '删除',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user