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 @@