From e9ce32556abebe96a6ac1033a08f4d6fb7d25b10 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Sat, 31 May 2025 16:14:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/crafts.ts | 2 +- src/apis/system.ts | 1 + src/components/check/index.vue | 290 +++++++++++++++++++++++------- src/components/home/SelectCraft/index.vue | 20 +-- src/components/home/Tube/index.vue | 25 ++- src/layouts/default.vue | 21 +-- src/stores/homeStore.ts | 10 +- src/types/point.d.ts | 4 +- src/views/home/index.vue | 244 +++---------------------- src/views/login/index.vue | 3 +- 10 files changed, 288 insertions(+), 332 deletions(-) diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index 64af207..2e0da24 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -16,7 +16,7 @@ export const updateCraft = (params: Craft): Promise => http.put(`/crafts`, export const delCraft = (ids: string): Promise => http.delete(`/crafts/${ids}`) // 开始执行工艺 -export const startCraft = (params: { heatId: string }): Promise => http.post(`/crafts/start`, params) +export const startCraft = (params: { heatId?: string, craftId?: number }): 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) diff --git a/src/apis/system.ts b/src/apis/system.ts index 07115a4..ab33991 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -4,3 +4,4 @@ export const debugControl = (params: System.CmdControlParams): Promise(params: System.CmdControlParams): Promise => http.post('/cmd', params) export const getStatus = (): Promise => http.get('/sys/device-status') export const getPoint = (): Promise => http.get('/cmd/step/gantry-point') +export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get('/self-test/require-out-tray') diff --git a/src/components/check/index.vue b/src/components/check/index.vue index b58941f..c6b574b 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -1,9 +1,11 @@