diff --git a/src/api/system/taskinfo/index.ts b/src/api/system/taskinfo/index.ts
index 0189937..b71e6c3 100644
--- a/src/api/system/taskinfo/index.ts
+++ b/src/api/system/taskinfo/index.ts
@@ -48,4 +48,9 @@ export const TaskInfoApi = {
exportTaskInfo: async (params) => {
return await request.download({ url: `/system/task-info/export-excel`, params })
},
+
+ // 导出任务表,用于存储所有的任务信息,任务可由不同用户创建并管理。 Excel
+ taskExec: async (data) => {
+ return await request.put({ url: `/system/task-info/taskExec`, data })
+ },
}
diff --git a/src/views/task/index.vue b/src/views/task/index.vue
index 09b109a..ee2161d 100644
--- a/src/views/task/index.vue
+++ b/src/views/task/index.vue
@@ -178,6 +178,16 @@
>
详情
+
+ 立即执行
+
{
}
}
+// 立即执行
+const taskExec = async (data) => {
+
+ loading.value = true
+
+ try {
+ await TaskInfoApi.taskExec(data)
+ message.success(t('common.createSuccess'))
+ getList()
+ } finally {
+ loading.value = false
+
+ }
+
+
+}
//选择任务中企业范围
const selectEnterprise = async (id: number) => {}