From d77d9ff80f5fd8cd70c775fbfc30dc27061bfad2 Mon Sep 17 00:00:00 2001 From: IPC-610 <IPC-610@DESKTOP-6LEOOS3> Date: 星期四, 02 一月 2025 09:13:06 +0800 Subject: [PATCH] 增加缠膜机交互和修改满放和空取程序 --- Web/src/views/device/alarmManage/index.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Web/src/views/device/alarmManage/index.vue b/Web/src/views/device/alarmManage/index.vue index 13e490c..492665b 100644 --- a/Web/src/views/device/alarmManage/index.vue +++ b/Web/src/views/device/alarmManage/index.vue @@ -66,15 +66,18 @@ import { ElMessageBox, ElMessage } from "element-plus"; import { cellsDataLine, cellsDataOne, cellsDataTwo, cellsDataThree } from './data'; import { auth } from '/@/utils/authFunction'; +import Index from '../deviceInfo/index.vue'; //杩炴帴signalR 鐩戝惉鍙樻洿 onMounted(async () => { signalR.off('PublicAlarm'); signalR.on('PublicAlarm', (dataArray: any) => { dataArray.forEach(data => { - console.log(data); + console.log("1111111:"+data); // 鏇存柊 tableData const index = tableData.value.findIndex(t => t.id == data.id); + console.log("2222222:"+index.value); + if (index === -1 && data.status == 1) { // 濡傛灉涓嶅瓨鍦紝娣诲姞鏂版暟鎹� tableData.value.unshift(data); @@ -211,15 +214,15 @@ }) .then(async () => { var param = Object.assign(row); - console.log(row.stationNum); - console.log(layer.value); + console.log("row.stationNum:"+row.stationNum); + console.log("layer.value:"+layer.value); var data = { LocatNo: row.stationNum,//宸ヤ綅 Layer: layer.value,//妤煎眰 } var res = await WriteInfo(data); - console.log(res.data.result); + console.log("res.data.result:"+res.data.result); // await topUpWcsTask(param); // handleQuery(); // handleQuery2(); -- Gitblit v1.8.0