From 9ea5ff67655241271bdf04bb50ca3a8d60c4e22a Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期二, 11 八月 2026 15:07:02 +0800
Subject: [PATCH] fix: 用河南鹤壁代码覆盖山西长治

---
 src/views/equipmentManagement/spareParts/index.vue |   27 +++++++++++++++++++++++----
 1 files changed, 23 insertions(+), 4 deletions(-)

diff --git a/src/views/equipmentManagement/spareParts/index.vue b/src/views/equipmentManagement/spareParts/index.vue
index 8abe35d..a1a4026 100644
--- a/src/views/equipmentManagement/spareParts/index.vue
+++ b/src/views/equipmentManagement/spareParts/index.vue
@@ -29,6 +29,7 @@
 						:tableLoading="loading"
 						:page="pagination"
 						:isShowPagination="true"
+						:row-class-name="rowClassName"
 						@pagination="handleSizeChange"
 					>
 						<template #status="{ row }">
@@ -95,7 +96,7 @@
         </el-dialog>
       </el-tab-pane>
 
-      <el-tab-pane label="澶囦欢棰嗙敤璁板綍" name="usage">
+      <el-tab-pane label="澶囦欢浣跨敤璁板綍" name="usage">
         <div class="search_form">
           <el-form :inline="true" :model="usageQuery" class="search-form">
             <el-form-item label="澶囦欢鍚嶇О">
@@ -521,9 +522,17 @@
 onMounted(() => {
   fetchListData();
 });
+
+// 鏍规嵁鏁伴噺杩涜鍒ゆ柇鑳屾櫙棰滆壊
+const rowClassName = ({ row }) => {
+  const num = Number(row.quantity);
+  if (num <= 1) return 'row-qty-low';
+  if (num >= 8) return 'row-qty-high';
+  return 'row-qty-mid';
+};
 </script>
 
-<style scoped>
+<style>
 .spare-part-category {
   padding: 20px;
 }
@@ -547,8 +556,17 @@
   font-weight: 600;
 }
 
-.el-table__row:hover > td {
-  background-color: #fafafa;
+.el-table .row-qty-low td.el-table__cell,
+.el-table .row-qty-low:hover > td.el-table__cell {
+  background-color: #fde8e8 !important;
+}
+.el-table .row-qty-mid td.el-table__cell,
+.el-table .row-qty-mid:hover > td.el-table__cell {
+  background-color: #f0f4f8 !important;
+}
+.el-table .row-qty-high td.el-table__cell,
+.el-table .row-qty-high:hover > td.el-table__cell {
+  background-color: #e8f5e9 !important;
 }
 
 /* 鎸夐挳缁勬牱寮� */
@@ -567,4 +585,5 @@
   font-size: 12px;
   margin-right: 4px;
 }
+
 </style>
\ No newline at end of file

--
Gitblit v1.9.3