From cf2df31488ea5aff454a89e227704c7cd87e05a4 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期三, 02 四月 2025 11:29:48 +0800
Subject: [PATCH] art: 设备管理-保养标准-周保标准

---
 src/views/eam/base/EamMaintenanceStandardList.vue               |   19 +++++++++++++++----
 src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue |   11 ++++++++---
 2 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/src/views/eam/base/EamMaintenanceStandardList.vue b/src/views/eam/base/EamMaintenanceStandardList.vue
index 3f9cafb..baf336d 100644
--- a/src/views/eam/base/EamMaintenanceStandardList.vue
+++ b/src/views/eam/base/EamMaintenanceStandardList.vue
@@ -50,7 +50,12 @@
                   @change="inspectionImportExcel">
           <a-button type="primary" icon="import">鐐规瀵煎叆</a-button>
         </a-upload>
-        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload">鐐规妯℃澘涓嬭浇</a-button>
+        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.inspectionXlsDownloadUrl)">鐐规妯℃澘涓嬭浇</a-button>
+        <a-upload name="file" :showUploadList="false" :multiple="true" :headers="tokenHeader" :action="weekMaintenanceImportExcel"
+                  @change="weekMaintenanceImportExcel">
+          <a-button type="primary" icon="import">鍛ㄤ繚瀵煎叆</a-button>
+        </a-upload>
+        <a-button type="primary" icon="download" @click="handleTemplateXlsDownload(url.weekMaintenanceXlsDownloadUrl)">鍛ㄤ繚妯℃澘涓嬭浇</a-button>
         <a-dropdown v-if="selectedRowKeys.length > 0">
           <a-menu slot="overlay">
             <a-menu-item key="1" @click="batchDel">
@@ -210,7 +215,10 @@
         deleteBatch: '/eam/maintenanceStandard/deleteBatch',
         exportXlsUrl: 'eam/maintenanceStandard/exportXls',
         inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel',
-        inspectionXlsDownloadUrl: '瀵煎叆妯℃澘/鐐规鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx'
+        weekMaintenanceImportExcel: 'eam/maintenanceStandard/weekMaintenanceImportExcel',
+        inspectionXlsDownloadUrl: '瀵煎叆妯℃澘/鐐规鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx',
+        weekMaintenanceXlsDownloadUrl: '瀵煎叆妯℃澘/鍛ㄤ繚鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx',
+
       },
       fileUrl: '',
       standardId: '-1'
@@ -219,6 +227,9 @@
   computed: {
     inspectionImportExcel: function() {
       return `${window._CONFIG['domianURL']}/${this.url.inspectionImportExcel}`
+    },
+    weekMaintenanceImportExcel: function() {
+      return `${window._CONFIG['domianURL']}/${this.url.weekMaintenanceImportExcel}`
     }
   },
   created() {
@@ -279,8 +290,8 @@
       this.queryParam = {}
       this.loadData(1)
     },
-    handleTemplateXlsDownload() {
-      templateXlsDownload(this.url.inspectionXlsDownloadUrl)
+    handleTemplateXlsDownload(url) {
+      templateXlsDownload(url)
     },
   }
 }
diff --git a/src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue b/src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue
index 8cd23fe..542a1e3 100644
--- a/src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue
+++ b/src/views/eam/base/modules/EamMaintenanceStandardDetailList.vue
@@ -49,17 +49,22 @@
         {
           title: '淇濆吇椤�',
           align: 'center',
-          dataIndex: 'itemName'
+          dataIndex: 'itemName',
+          width: 200,
+          ellipsis: true,
         },
         {
           title: '瀛愰」鐩�',
           align: 'center',
-          dataIndex: 'subItemName'
+          dataIndex: 'subItemName',
+          width: 200,
+          ellipsis: true,
         },
         {
           title: '淇濆吇瑕佹眰',
           align: 'center',
-          dataIndex: 'itemDemand'
+          dataIndex: 'itemDemand',
+          ellipsis: true,
         }
       ],
       url: {

--
Gitblit v1.9.3