From d4d1e262fc94985d1aa4cc79b0fda68b0e0944b8 Mon Sep 17 00:00:00 2001 From: taqi be Date: Tue, 21 Jan 2025 12:37:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 +-- src/api/module/eam/device/index.ts | 7 ++++ src/pages/deviceInfo/index.vue | 36 +++++++++++++++---- src/router/index.ts | 58 +++++++++++++++++------------- vite.config.ts | 2 +- 5 files changed, 74 insertions(+), 33 deletions(-) diff --git a/.env.production b/.env.production index c4c416d..ce4413b 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,2 @@ -VITE_BASE_URL = 'http://192.168.1.3:48081' -VITE_SOCKET_SERVER = 'http://192.168.1.3:48081' \ No newline at end of file +VITE_BASE_URL = 'http://62.234.18.176:48081' +VITE_SOCKET_SERVER = 'http://62.234.18.176:48081' diff --git a/src/api/module/eam/device/index.ts b/src/api/module/eam/device/index.ts index a1729d0..d450d87 100644 --- a/src/api/module/eam/device/index.ts +++ b/src/api/module/eam/device/index.ts @@ -93,6 +93,13 @@ export const getSimpleDeviceList = (params: { categoryId: string }) => params, }) +export const getDeviceLabelBase64 = (id: number) => + eamServer({ + url: `/device/generate-label`, + method: 'get', + params: { id }, + }) + // ============== 测试工单相关 ============== export const operantDeviceTestSheet = (type: OperantAction, params: any) => { diff --git a/src/pages/deviceInfo/index.vue b/src/pages/deviceInfo/index.vue index e36a788..e6e4e19 100644 --- a/src/pages/deviceInfo/index.vue +++ b/src/pages/deviceInfo/index.vue @@ -10,11 +10,7 @@ - +