From 8f3a85044b6e4b56a8dd0b104ca023933f1f129c Mon Sep 17 00:00:00 2001
From: huang <1532065656@qq.com>
Date: 星期三, 03 十二月 2025 16:58:36 +0800
Subject: [PATCH] 统一卧转立扫码、卧转立、大车、大理片笼的定时器逻辑和步骤状态;添加设备拓扑图清除数据、联机状态切换按钮,

---
 mes-web/src/views/device/components/DeviceLogicConfig/LoadVehicleConfig.vue |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/mes-web/src/views/device/components/DeviceLogicConfig/LoadVehicleConfig.vue b/mes-web/src/views/device/components/DeviceLogicConfig/LoadVehicleConfig.vue
index 3bdf568..554bb78 100644
--- a/mes-web/src/views/device/components/DeviceLogicConfig/LoadVehicleConfig.vue
+++ b/mes-web/src/views/device/components/DeviceLogicConfig/LoadVehicleConfig.vue
@@ -32,16 +32,16 @@
 
     <el-row :gutter="20">
       <el-col :span="12">
-        <el-form-item label="鐜荤拑闂撮殧(绉�)">
+        <el-form-item label="鐜荤拑闂撮殭(mm)">
           <el-input-number
-            v-model="glassIntervalSeconds"
-            :min="0.1"
-            :max="10"
-            :step="0.1"
-            :precision="1"
+            v-model="config.glassGap"
+            :min="0"
+            :max="1000"
+            :step="10"
             style="width: 100%;"
+            @change="emitConfigUpdate"
           />
-          <span class="form-tip">鐜荤拑涓婃枡闂撮殧鏃堕棿锛堢锛�</span>
+          <span class="form-tip">澶氬潡鐜荤拑涔嬮棿鐨勭墿鐞嗛棿闅旂┖闅欙紝榛樿200mm</span>
         </el-form-item>
       </el-col>
       <el-col :span="12">
@@ -173,7 +173,7 @@
         >
           <el-input
             v-model="item.key"
-            placeholder="浣嶇疆浠g爜锛堝900/901锛�"
+            placeholder="浣嶇疆浠g爜锛堝1001/1002锛�"
             size="small"
             style="width: 150px; margin-right: 10px;"
             @change="handlePositionKeyChange(index)"
@@ -221,7 +221,7 @@
 const config = ref({
   vehicleCapacity: 6000,
   vehicleSpeed: 1.0,
-  glassIntervalMs: 1000,
+  glassGap: 200,
   defaultGlassLength: 2000,
   homePosition: 0,
   minRange: 1,
@@ -270,7 +270,6 @@
 syncPositionListFromConfig()
 
 // 鏃堕棿瀛楁锛堢锛�- 鐢ㄤ簬鍓嶇鏄剧ず鍜岃緭鍏�
-const glassIntervalSeconds = ref(1.0)
 const idleMonitorIntervalSeconds = ref(2.0)
 const taskMonitorIntervalSeconds = ref(1.0)
 const mesConfirmTimeoutSeconds = ref(30)
@@ -282,7 +281,7 @@
     config.value = {
       vehicleCapacity: newVal.vehicleCapacity ?? 6000,
       vehicleSpeed: newVal.vehicleSpeed ?? 1.0,
-      glassIntervalMs: newVal.glassIntervalMs ?? 1000,
+      glassGap: newVal.glassGap ?? 200,
       defaultGlassLength: newVal.defaultGlassLength ?? 2000,
       homePosition: newVal.homePosition ?? 0,
       minRange: newVal.minRange ?? 1,
@@ -295,7 +294,6 @@
       positionMapping: newVal.positionMapping || {}
     }
     // 灏嗘绉掕浆鎹负绉掔敤浜庢樉绀�
-    glassIntervalSeconds.value = (config.value.glassIntervalMs ?? 1000) / 1000
     idleMonitorIntervalSeconds.value = (config.value.idleMonitorIntervalMs ?? 2000) / 1000
     taskMonitorIntervalSeconds.value = (config.value.taskMonitorIntervalMs ?? 1000) / 1000
     mesConfirmTimeoutSeconds.value = (config.value.mesConfirmTimeoutMs ?? 30000) / 1000
@@ -305,11 +303,6 @@
 }, { immediate: true, deep: true })
 
 // 鐩戝惉绉掑瓧娈靛彉鍖栵紝杞崲涓烘绉掑苟鏇存柊config
-watch(glassIntervalSeconds, (val) => {
-  config.value.glassIntervalMs = Math.round(val * 1000)
-  emitConfigUpdate()
-})
-
 watch(idleMonitorIntervalSeconds, (val) => {
   config.value.idleMonitorIntervalMs = Math.round(val * 1000)
   emitConfigUpdate()

--
Gitblit v1.8.0