From 1b118e5148c0568d7bb64bf59b9a06712c9a6842 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期六, 28 九月 2024 08:12:11 +0800 Subject: [PATCH] 问题修改 --- Web/src/views/device/deviceInfo/index.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/Web/src/views/device/deviceInfo/index.vue b/Web/src/views/device/deviceInfo/index.vue index cac9429..c43003f 100644 --- a/Web/src/views/device/deviceInfo/index.vue +++ b/Web/src/views/device/deviceInfo/index.vue @@ -1,5 +1,5 @@ <template> - <div class="sys-user-container"> + <div class="sys-user-container" style="overflow: hidden;"> <el-row> <el-col :span="3"> <el-collapse v-model="activeName"> @@ -19,6 +19,10 @@ <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> <el-switch v-model="state.boDemo" active-text="" inactive-text="婕旂ず妯″紡" @change="handleSwitchChange('boDemo', $event)"></el-switch> + </el-card> + <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> + <el-switch v-model="state.boDrumReversal" active-text="" inactive-text="婊氬姩鍙嶈浆" + @change="handleSwitchChange('boDrumReversal', $event)"></el-switch> </el-card> </el-collapse-item> @@ -81,6 +85,7 @@ import { listStatus, listPosition } from '/@/api/wcs/wcsPlc'; import { signalR } from './signalR'; import { cellsDataLine, cellsDataOne, cellsDataTwo, cellsDataThree } from './data'; +import { ElMessage } from "element-plus"; const state = ref<any>({}); const stackers = ref<any>({}); @@ -100,6 +105,7 @@ if (foundCell) { //淇敼楂樺害 foundCell.BoxHeight = s.boxHeight; + foundCell.EndLocat = s.endLocat; } } else if (s.type == 1) { @@ -135,6 +141,12 @@ signalR.off('UpdateService'); signalR.on('UpdateService', (data: any) => { state.value = data; + if (data.error) { + ElMessage({ + message: data.error, + type: "error", + }); + } }); signalR.off('PublicPosition'); signalR.on('PublicPosition', (data: any) => { @@ -166,6 +178,7 @@ debugger; const foundCell = cellsDataLine.value.find(cell => cell.Code === data.stationNum); if (foundCell) { + foundCell.EndLocat = data.endLocat; const startHeight = foundCell.BoxHeight; const targetHeight = data.boxHeight; const duration = 1000; // 鍔ㄧ敾鎸佺画鏃堕棿锛堟绉掞級 -- Gitblit v1.8.0