From 7a0ffb0048adeda9ebfbca1d0b525eb224c173e3 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 29 八月 2025 17:00:16 +0800
Subject: [PATCH] 修改组件

---
 src/pages/equipmentManagement/repair/index.vue |   53 ++++++++---------------------------------------------
 1 files changed, 8 insertions(+), 45 deletions(-)

diff --git a/src/pages/equipmentManagement/repair/index.vue b/src/pages/equipmentManagement/repair/index.vue
index d4ce7be..0662172 100644
--- a/src/pages/equipmentManagement/repair/index.vue
+++ b/src/pages/equipmentManagement/repair/index.vue
@@ -33,38 +33,8 @@
               <text class="item-id">璁惧鍚嶇О锛歿{ item.deviceName }}</text>
             </view>
             <view class="status-tag">
-              <!-- 鏇挎崲鏍囩鍜屾寜閽� -->
-              <!-- 鐘舵�佹爣绛� -->
-              <u-tag v-if="item.status === 1" type="success">瀹岀粨</u-tag>
-              <u-tag v-if="item.status === 0" type="error">寰呯淮淇�</u-tag>
-              
-              <!-- 鎿嶄綔鎸夐挳 -->
-              <view class="action-buttons">
-                <u-button
-                  type="primary"
-                  size="small"
-                  class="action-btn"
-                  @click="openForm('add')"
-                >
-                  鏂板鎶ヤ慨
-                </u-button>
-                <u-button
-                  type="warning"
-                  size="small"
-                  class="action-btn"
-                  @click="openForm('edit', item)"
-                >
-                  缂栬緫
-                </u-button>
-                <u-button
-                  type="success"
-                  size="small"
-                  class="action-btn"
-                  @click="maintain(item)"
-                >
-                  缁翠慨
-                </u-button>
-              </view>
+              <van-tag v-if="item.status === 1" type="success">瀹岀粨</van-tag>
+              <van-tag v-if="item.status === 0" type="danger">寰呯淮淇�</van-tag>
             </view>
           </view>
           <up-divider></up-divider>
@@ -138,9 +108,11 @@
     </view>
     
     <!-- 娴姩姘旀场鎸夐挳 -->
-    <view class="fab-button" @click="addRepair">
-			<up-icon name="plus" size="24" color="#ffffff"></up-icon>
-		</view>
+    <van-floating-bubble
+      axis="xy"
+      icon="plus"
+      @click="addRepair"
+    />
   </view>
 </template>
 
@@ -150,16 +122,7 @@
 import PageHeader from '@/components/PageHeader.vue'
 import { getRepairPage, delRepair } from '@/api/equipmentManagement/repair'
 import useUserStore from "@/store/modules/user"
-// 鏇挎崲 Vant 鐨� toast
-// import { showToast } from 'vant';
-
-// 鏇挎崲 toast 鏂规硶
-const showToast = (message) => {
-  uni.showToast({
-    title: message,
-    icon: 'none'
-  })
-}
+import { showToast } from 'vant';
 
 const userStore = useUserStore()
 

--
Gitblit v1.9.3