diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index 89caeeb..64af207 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -17,6 +17,8 @@ export const delCraft = (ids: string): Promise => http.delete(`/crafts/${i // 开始执行工艺 export const startCraft = (params: { heatId: string }): Promise => http.post(`/crafts/start`, params) +export const pauseCraft = (params: { heatId: string }): Promise => http.post(`/crafts/pause`, params) +export const resumeCraft = (params: { heatId: string }): Promise => http.post(`/crafts/resume`, params) export const stopCraft = (params: { heatId: string }): Promise => http.post(`/crafts/stop`, params) diff --git a/src/components/home/Tube/index.vue b/src/components/home/Tube/index.vue index b245e03..e4716c7 100644 --- a/src/components/home/Tube/index.vue +++ b/src/components/home/Tube/index.vue @@ -1,4 +1,5 @@