1
0

feat: 完成简单的任务执行

This commit is contained in:
2025-09-05 20:29:32 +08:00
parent 028a578896
commit 550692e281
5 changed files with 61 additions and 6 deletions

View File

@@ -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: '删除',
},
],
},
],