From 141e304a60c73dc9d6b367fff140ffba5949bb8d Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 03 二月 2026 13:52:04 +0800
Subject: [PATCH] 隐患排查上报模块开发

---
 src/pages/index.vue |   61 +++++++++++++++++++-----------
 1 files changed, 38 insertions(+), 23 deletions(-)

diff --git a/src/pages/index.vue b/src/pages/index.vue
index 6be8435..10d6a58 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -1,24 +1,24 @@
 <template>
   <view class="content">
-    <view class="header-section">
-      <view class="currentFactory">
-        <up-text type="primary"
-                 :text="userStore.currentFactoryName"
-                 @click="show = true"
-                 size="18"
-                 class="factoryName"
-                 suffixIcon="arrow-right"
-                 :iconStyle="iconStyle"></up-text>
-      </view>
-      <up-picker :show="show"
-                 :columns="factoryList"
-                 @confirm="changeFactory"
-                 @cancel="show = false"></up-picker>
-    </view>
+    <!--    <view class="header-section">-->
+    <!--      <view class="currentFactory">-->
+    <!--        <up-text type="primary"-->
+    <!--                 :text="userStore.currentFactoryName"-->
+    <!--                 @click="show = true"-->
+    <!--                 size="18"-->
+    <!--                 class="factoryName"-->
+    <!--                 suffixIcon="arrow-right"-->
+    <!--                 :iconStyle="iconStyle"></up-text>-->
+    <!--      </view>-->
+    <!--      <up-picker :show="show"-->
+    <!--                 :columns="factoryList"-->
+    <!--                 @confirm="changeFactory"-->
+    <!--                 @cancel="show = false"></up-picker>-->
+    <!--    </view>-->
     <view class="hero-section">
       <view class="bg-img">
         <view class="hero-content">
-          <text class="hero-title">鍐涙嘲浼熶笟</text>
+          <!--          <text class="hero-title">鍐涙嘲浼熶笟</text>-->
         </view>
         <view class="hero-wave"></view>
       </view>
@@ -221,7 +221,6 @@
   import useUserStore from "@/store/modules/user";
 
   const userStore = useUserStore();
-  const factoryId = ref("");
   const show = ref(false);
   const factoryList = ref([]);
   const factoryListTem = ref([]);
@@ -307,6 +306,18 @@
     {
       icon: "/static/images/icon/caigoutaizhang@2x.png",
       label: "鍗遍櫓婧愮鐞�",
+    },
+    {
+      icon: "/static/images/icon/caigoutaizhang@2x.png",
+      label: "鍗遍櫓浣滀笟",
+    },
+    {
+      icon: "/static/images/icon/xunjianshangchuan@2x.png",
+      label: "宸℃涓婁紶",
+    },
+    {
+      icon: "/static/images/icon/guzhangfenxi@2x.png",
+      label: "闅愭偅鎺掓煡",
     },
   ]);
   // 鍗忓悓鍔炲叕鍔熻兘鏁版嵁
@@ -395,10 +406,6 @@
     {
       icon: "/static/images/icon/shbeibaoyang@2x.png",
       label: "璁惧淇濆吇",
-    },
-    {
-      icon: "/static/images/icon/xunjianshangchuan@2x.png",
-      label: "宸℃涓婁紶",
     },
     {
       icon: "/static/images/icon/guzhangfenxi@2x.png",
@@ -680,6 +687,16 @@
           url: "/pages/safeProduction/hazardSourceLedger/index",
         });
         break;
+      case "鍗遍櫓浣滀笟":
+        uni.navigateTo({
+          url: "/pages/cooperativeOffice/collaborativeApproval/index8",
+        });
+        break;
+      case "闅愭偅鎺掓煡":
+        uni.navigateTo({
+          url: "/pages/safeProduction/dangerInvestigation/index",
+        });
+        break;
       default:
         uni.showToast({
           title: `鐐瑰嚮浜�${item.label}`,
@@ -701,7 +718,6 @@
           res.data.forEach(item => {
             factoryList.value[0].push(item.deptName);
           });
-          factoryId.value = userStore.currentDeptId;
         } else {
           // 濡傛灉res.data涓嶆槸鏁扮粍锛岃缃负绌烘暟缁�
           factoryList.value = [];
@@ -804,7 +820,6 @@
     const loginForm = {
       username: userStore.name,
       password: uni.getStorageSync("remembered_password"),
-      factoryId: factoryId,
     };
     modal.loading("鍒锋柊涓紝璇疯�愬績绛夊緟...");
     userStore

--
Gitblit v1.9.3