From 443ee0038bfe9373aaef62b3de28e8f4de89d791 Mon Sep 17 00:00:00 2001 From: zc Date: Mon, 23 Mar 2026 18:02:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=87=E8=A7=86=E6=91=84?= =?UTF-8?q?=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/weightManage/ys.ts | 23 ++ src/views/weightManage/index.vue | 628 ++++++++----------------------- 2 files changed, 186 insertions(+), 465 deletions(-) create mode 100644 src/apis/weightManage/ys.ts diff --git a/src/apis/weightManage/ys.ts b/src/apis/weightManage/ys.ts new file mode 100644 index 0000000..1c678e0 --- /dev/null +++ b/src/apis/weightManage/ys.ts @@ -0,0 +1,23 @@ +import http from '@/utils/http' + +const BASE_URL = '/api/ys' + +/** @desc 进入称重页面 */ +export function getEnterWeighPage() { + return http.get(`${BASE_URL}/enter-weigh-page`) +} + +/** @desc 退出称重页面 */ +export function getLeaveWeighPage() { + return http.get(`${BASE_URL}/leave-weigh-page`) +} + +/** @desc 抓拍图片 */ +export function getCaptureImage(imgName: string) { + return http.get(`${BASE_URL}/capture-image?imgName=${imgName}`) +} + +/** @desc 检查称重状态 */ +export function getCheckStatus() { + return http.get(`${BASE_URL}/status`) +} diff --git a/src/views/weightManage/index.vue b/src/views/weightManage/index.vue index 611571f..c67bd04 100644 --- a/src/views/weightManage/index.vue +++ b/src/views/weightManage/index.vue @@ -136,11 +136,11 @@
- +
- +
@@ -151,40 +151,24 @@ - -
- - + +
+ 称重图片 + +
+ + 状态异常 + 重试 +
-
+
加载中...
- - -
- - 连接失败 - 重试 -
- - -
- - 未连接 - 连接 -
- - -
- LIVE -
@@ -200,6 +184,10 @@

称重列表

+ +