From 6aaa4bd87948dc09acbde1b647e62f1cc67a4bcb Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 31 三月 2026 19:51:21 +0800
Subject: [PATCH] #

---
 src/main/webapp/components/DevpCard.js |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/components/DevpCard.js b/src/main/webapp/components/DevpCard.js
index 118fcdb..d9eb322 100644
--- a/src/main/webapp/components/DevpCard.js
+++ b/src/main/webapp/components/DevpCard.js
@@ -33,6 +33,7 @@
           </label>
           <div class="mc-action-row">
             <button type="button" class="mc-btn" @click="controlCommand">涓嬪彂</button>
+            <button type="button" class="mc-btn mc-btn-soft" @click="clearPathCommand">娓呰矾寰�</button>
             <button type="button" class="mc-btn mc-btn-soft" @click="resetCommand">澶嶄綅</button>
             <button type="button" class="mc-btn mc-btn-ghost" @click="openStationTracePage">杩愯杞ㄨ抗</button>
             <button v-if="showFakeTraceEntry" type="button" class="mc-btn mc-btn-ghost" @click="openFakeTracePage">浠跨湡杞ㄨ抗</button>
@@ -175,6 +176,15 @@
     orDash: function (value) {
       return MonitorCardKit.orDash(value);
     },
+    formatIoMode: function (value) {
+      if (value === 1 || value === "1") {
+        return "鍏ュ簱";
+      }
+      if (value === 2 || value === "2") {
+        return "鍑哄簱";
+      }
+      return "--";
+    },
     getStatusLabel: function (item) {
       return item && item.autoing ? "鑷姩" : "鎵嬪姩";
     },
@@ -264,6 +274,7 @@
         { label: "宸ヤ綔鍙�", value: this.orDash(item.taskNo) },
         { label: "鐩爣绔�", value: this.orDash(item.targetStaNo) },
         { label: "妯″紡", value: item.autoing ? "鑷姩" : "鎵嬪姩" },
+        { label: "鍑哄叆搴撴ā寮�", value: this.formatIoMode(item.ioMode) },
         { label: "鏈夌墿", value: MonitorCardKit.yesNo(item.loading) },
         { label: "鍙叆", value: MonitorCardKit.yesNo(item.inEnable) },
         { label: "鍙嚭", value: MonitorCardKit.yesNo(item.outEnable) },
@@ -484,6 +495,9 @@
     controlCommand: function () {
       this.postControl("/station/command/move", this.controlParam);
     },
+    clearPathCommand: function () {
+      this.postControl("/station/command/clearPath", this.controlParam);
+    },
     resetCommand: function () {
       this.postControl("/station/command/reset", this.controlParam);
     }

--
Gitblit v1.9.1