From d4e3468dab0080be2d0b12f4a37389b8498b0749 Mon Sep 17 00:00:00 2001 From: guoapeng Date: Thu, 29 May 2025 23:01:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=92=8C?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=9B=9E=E5=8E=9F=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 4 +- src/apis/system.ts | 3 +- src/components/SavePosition/index.vue | 12 +- src/components/check/index.vue | 45 ++++-- src/components/home/ExtractLiquid/index.vue | 178 +++++++++++++++++++++++ src/components/home/FillSolution/index.vue | 4 +- src/components/home/Tube/index.vue | 2 +- src/layouts/default.vue | 50 ++++--- src/libs/utils.ts | 14 ++ src/router/index.ts | 2 +- src/stores/systemStore.ts | 1 + src/types/home.d.ts | 2 +- src/types/system.d.ts | 1 - src/views/home/index.vue | 209 ++++++++++++++++------------ 14 files changed, 397 insertions(+), 130 deletions(-) create mode 100644 src/components/home/ExtractLiquid/index.vue diff --git a/.env.test b/.env.test index 2822908..7a0fe46 100644 --- a/.env.test +++ b/.env.test @@ -2,6 +2,6 @@ FT_NODE_ENV=test -FT_WS_URL=ws://192.168.1.199:8080/ws -FT_PROXY=http://192.168.1.199:8080 +FT_WS_URL=ws://192.168.10.200:8080/ws +FT_PROXY=http://192.168.10.200:8080 FT_API_BASE=/api \ No newline at end of file diff --git a/src/apis/system.ts b/src/apis/system.ts index 44ef96f..7f4e8b6 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -3,5 +3,6 @@ import http from 'libs/http' export const debugControl = (params: System.CmdControlParams): Promise => http.post('/debug/cmd', params) export const control = (params: System.CmdControlParams): Promise => http.post('/cmd', params) export const getStatus = (): Promise => http.get('/sys/device-status') -export const getPoint = (motor: string): Promise<{ position: string }> => http.get(`/motor/position/${motor}`) +export const getPoint = (motor: string): Promise => http.get(`/motor/position/${motor}`) export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get('/self-test/require-out-tray') +export const setIgnoreItem = (params: { ignoreSelfTestType: string, ignore: boolean }): Promise => http.post('/self-test/set-ignore-item', params) diff --git a/src/components/SavePosition/index.vue b/src/components/SavePosition/index.vue index f960e50..54210c3 100644 --- a/src/components/SavePosition/index.vue +++ b/src/components/SavePosition/index.vue @@ -1,5 +1,5 @@ @@ -87,7 +91,7 @@ const selectChange = async (val: string) => { v-for="item in pointList" :key="item.id" :label="item.name" - :value="item.code" + :value="item.id" /> diff --git a/src/components/check/index.vue b/src/components/check/index.vue index 5919975..a5c75c5 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -1,6 +1,6 @@