diff --git a/src/api/model/pm.js b/src/api/model/pm.js index 26085002..22c058ff 100644 --- a/src/api/model/pm.js +++ b/src/api/model/pm.js @@ -164,5 +164,13 @@ export default { ); } }, + stop:{ + name: "停止任务", + req: async function(id){ + return await http.post( + `${config.API_URL}/pm/utask/${id}/stop/` + ); + } + }, } } \ No newline at end of file diff --git a/src/components/scFormTable/index.vue b/src/components/scFormTable/index.vue index cb44888f..775f6e85 100644 --- a/src/components/scFormTable/index.vue +++ b/src/components/scFormTable/index.vue @@ -9,7 +9,7 @@