From b34c02590a3253955c3f44a1cbbbf8ba2a786893 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期五, 06 三月 2026 18:01:22 +0800
Subject: [PATCH] 回显问题

---
 src/pages/indexItem.vue |   59 +++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 26 deletions(-)

diff --git a/src/pages/indexItem.vue b/src/pages/indexItem.vue
index 8a3a731..7e78b6b 100644
--- a/src/pages/indexItem.vue
+++ b/src/pages/indexItem.vue
@@ -54,18 +54,18 @@
       icon: "/static/images/icon/baoxiaoguanli.png",
       label: "鎶ラ攢绠$悊",
     },
-    {
-      icon: "/static/images/icon/caigouguanli.png",
-      label: "閲囪喘瀹℃壒",
-    },
-    {
-      icon: "/static/images/icon/baojiaguanli.png",
-      label: "鎶ヤ环瀹℃壒",
-    },
-    {
-      icon: "/static/images/icon/chukuguanli@2x.png",
-      label: "鍙戣揣瀹℃壒",
-    },
+    // {
+    //   icon: "/static/images/icon/caigouguanli.png",
+    //   label: "閲囪喘瀹℃壒",
+    // },
+    // {
+    //   icon: "/static/images/icon/baojiaguanli.png",
+    //   label: "鎶ヤ环瀹℃壒",
+    // },
+    // {
+    //   icon: "/static/images/icon/chukuguanli@2x.png",
+    //   label: "鍙戣揣瀹℃壒",
+    // },
   ]);
   // 鑰冨嫟璐㈠姟鍚堝苟鑿滃崟锛堣�冨嫟3涓� + 璐㈠姟4涓� = 7涓級
   const kaoqinCaiwu = reactive([
@@ -85,18 +85,18 @@
       icon: "/static/images/icon/baoxiaoguanli.png",
       label: "鎶ラ攢绠$悊",
     },
-    {
-      icon: "/static/images/icon/caigouguanli.png",
-      label: "閲囪喘瀹℃壒",
-    },
-    {
-      icon: "/static/images/icon/baojiaguanli.png",
-      label: "鎶ヤ环瀹℃壒",
-    },
-    {
-      icon: "/static/images/icon/chukuguanli@2x.png",
-      label: "鍙戣揣瀹℃壒",
-    },
+    // {
+    //   icon: "/static/images/icon/caigouguanli.png",
+    //   label: "閲囪喘瀹℃壒",
+    // },
+    // {
+    //   icon: "/static/images/icon/baojiaguanli.png",
+    //   label: "鎶ヤ环瀹℃壒",
+    // },
+    // {
+    //   icon: "/static/images/icon/chukuguanli@2x.png",
+    //   label: "鍙戣揣瀹℃壒",
+    // },
   ]);
 
   const huiyi = reactive([
@@ -330,7 +330,7 @@
           url: "/pages/equipmentManagement/upkeep/index",
         });
         break;
-      case "宸℃涓婁紶":
+      case "宸℃绠$悊":
         uni.navigateTo({
           url: "/pages/inspectionUpload/index",
         });
@@ -374,7 +374,14 @@
   const operationType = ref("");
   onLoad(options => {
     if (options.label) {
-      operationType.value = options.label;
+      // 澶勭悊 URL 鍙傛暟鍙兘鍖呭惈鍏朵粬鏌ヨ鍙傛暟鐨勬儏鍐碉紙濡傦細鍗忓悓瀹℃壒?approveType=6锛�
+      // 鍙彁鍙� label 鍙傛暟鐨勫�硷紝鍘婚櫎鍙兘闄勫姞鐨勬煡璇㈠弬鏁�
+      let labelValue = options.label;
+      // 濡傛灉 label 鍖呭惈 ? 绗﹀彿锛屽彧鍙� ? 涔嬪墠鐨勯儴鍒�
+      if (labelValue.includes("?")) {
+        labelValue = labelValue.split("?")[0];
+      }
+      operationType.value = labelValue;
       if (operationType.value === "鑰冨嫟绠$悊") {
         commonItems.value = kaoqin;
       } else if (operationType.value === "浼氳绠$悊") {

--
Gitblit v1.9.3