From a647de5665411f706beddc5e0ff7b3a3daaca4fc Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期六, 24 一月 2026 11:11:57 +0800
Subject: [PATCH] 前端页面优化和大屏

---
 项目代码/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js"
index d805115..79d6b35 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js"
@@ -47,7 +47,66 @@
             });
         }
       }
+      let EnableRoadwayBtn = this.buttons.find(
+        (x) => x.value == "EnableRoadway",
+      );
+      if (EnableRoadwayBtn) {
+        EnableRoadwayBtn.onClick = function () {
+          this.$prompt("璇烽�夋嫨宸烽亾 (1-5)", "鎻愮ず", {
+            confirmButtonText: "纭畾",
+            cancelButtonText: "鍙栨秷",
+            inputPattern: /^[1-5]$/,
+            inputErrorMessage: "璇疯緭鍏�1-5涔嬮棿鐨勬暟瀛�",
+          })
+            .then(({ value }) => {
+              this.http
+                .post(
+                  `api/LocationInfo/EnableAllLocationsInRoadway?roadwayNo=${value}`,
+                  null,
+                  "鏁版嵁澶勭悊涓�",
+                )
+                .then((x) => {
+                  console.log(x);
+                  if (!x.status) return this.$message.error(x.message);
+                  this.$message.success(x.message || "鎿嶄綔鎴愬姛");
+                  this.refresh();
+                });
+            })
+            .catch(() => {
+              this.$message.info("宸插彇娑堟搷浣�");
+            });
+        };
+      }
 
+      let DisableRoadwayBtn = this.buttons.find(
+        (x) => x.value == "DisableRoadway",
+      );
+      if (DisableRoadwayBtn) {
+        DisableRoadwayBtn.onClick = function () {
+          this.$prompt("璇烽�夋嫨宸烽亾 (1-5)", "鎻愮ず", {
+            confirmButtonText: "纭畾",
+            cancelButtonText: "鍙栨秷",
+            inputPattern: /^[1-5]$/,
+            inputErrorMessage: "璇疯緭鍏�1-5涔嬮棿鐨勬暟瀛�",
+          })
+            .then(({ value }) => {
+              this.http
+                .post(
+                  `api/LocationInfo/DisableAllLocationsInRoadway?roadwayNo=${value}`,
+                  null, 
+                  "鏁版嵁澶勭悊涓�",
+                )
+                .then((x) => {
+                  if (!x.status) return this.$message.error(x.message);
+                  this.$message.success(x.message || "鎿嶄綔鎴愬姛");
+                  this.refresh();
+                });
+            })
+            .catch(() => {
+              this.$message.info("宸插彇娑堟搷浣�");
+            });
+        };
+      }
       this.columns.push({
         field: '鎿嶄綔',
         title: '鎿嶄綔',

--
Gitblit v1.9.3