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

称重列表

+ +