From 8f643b3c501a2f3e89f012aa3426896a54271016 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 11 七月 2025 10:04:49 +0800
Subject: [PATCH] refactor(web-antd):调整代码结构并优化组件导入

---
 eims-ui/apps/web-antd/src/views/eims/predictive-maintenance/index.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/predictive-maintenance/index.vue b/eims-ui/apps/web-antd/src/views/eims/predictive-maintenance/index.vue
index fc523d1..b5687ae 100644
--- a/eims-ui/apps/web-antd/src/views/eims/predictive-maintenance/index.vue
+++ b/eims-ui/apps/web-antd/src/views/eims/predictive-maintenance/index.vue
@@ -43,7 +43,7 @@
         <div class="grid grid-cols-1 gap-4">
 
             <!-- 杩欓噷灏嗘斁缃璀﹁〃鏍� -->
-            <a-table :columns="warningColumns" :data-source="warningData" :pagination="false" class="w-full">
+            <Table :columns="warningColumns" :data-source="warningData" :pagination="false" class="w-full">
               <template #bodyCell="{ column, record }">
                 <template v-if="column.key === 'status'">
                   <a-tag :color="getStatusColor(record.status)">
@@ -55,7 +55,7 @@
                   <a-button type="link" @click="generateWorkOrder(record)" :disabled="record.maintenanceSuggestion === '鏆傛棤寤鸿'">鐢熸垚宸ュ崟</a-button>
                 </template>
               </template>
-            </a-table>
+            </Table>
           </div>
 
       </Card>
@@ -64,7 +64,7 @@
       <div class="grid grid-cols-2 gap-4 mb-6">
         <!-- 璁惧閮ㄤ欢瀵垮懡棰勬祴 -->
         <Card title="璁惧閮ㄤ欢瀵垮懡棰勬祴">
-          <a-table :columns="lifePredictionColumns" :data-source="lifePredictionData" :pagination="false" class="w-full">
+          <Table :columns="lifePredictionColumns" :data-source="lifePredictionData" :pagination="false" class="w-full">
             <template #bodyCell="{ column, record }">
               <template v-if="column.key === 'lifeStatus'">
                 <a-tag :color="getLifeStatusColor(record.remainingDays)">
@@ -75,12 +75,12 @@
                 <a-button type="link" @click="showLifePredictionDetail(record)">璇︽儏</a-button>
               </template>
             </template>
-          </a-table>
+          </Table>
         </Card>
 
         <!-- 澶囦欢搴撳瓨涓庨璀� -->
         <Card title="澶囦欢搴撳瓨涓庨璀�">
-          <a-table :columns="sparePartColumns" :data-source="sparePartData" :pagination="false" class="w-full">
+          <Table :columns="sparePartColumns" :data-source="sparePartData" :pagination="false" class="w-full">
             <template #bodyCell="{ column, record }">
               <template v-if="column.key === 'stockStatus'">
                 <a-tag :color="getStockStatusColor(record.currentStock, record.safetyStock)">
@@ -91,7 +91,7 @@
                 <a-button type="link" @click="showSparePartDetail(record)">璇︽儏</a-button>
               </template>
             </template>
-          </a-table>
+          </Table>
         </Card>
       </div>
 
@@ -103,7 +103,7 @@
 <script setup lang="ts">
 import { onMounted, ref } from 'vue';
 import { Page } from '@vben/common-ui';
-import { Card, Table, Tag, Button, Form, Input, Textarea, Select, message } from 'ant-design-vue';
+import { Button, Card, Form, Input, message, Select, Table, Tag } from 'ant-design-vue';
 import * as echarts from 'echarts';
 
 const chartRef = ref<HTMLElement | null>(null);

--
Gitblit v1.9.3