From 73dbf3aabed9a07df0d27fb0c6bafa94a3d9805a Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期一, 07 七月 2025 21:16:57 +0800
Subject: [PATCH] 修改导入

---
 src/views/eam/base/EamMaintenanceStandardList.vue |   44 +++++++++++++++++++++++++++++++++++++-------
 1 files changed, 37 insertions(+), 7 deletions(-)

diff --git a/src/views/eam/base/EamMaintenanceStandardList.vue b/src/views/eam/base/EamMaintenanceStandardList.vue
index cdb138f..72d1d7e 100644
--- a/src/views/eam/base/EamMaintenanceStandardList.vue
+++ b/src/views/eam/base/EamMaintenanceStandardList.vue
@@ -239,10 +239,9 @@
           deleteBatch: '/eam/maintenanceStandard/deleteBatch',
           startProcess: '/eam/maintenanceStandard/saveEamMaintenanceStandardProcess',
           exportXlsUrl: 'eam/maintenanceStandard/exportXls',
-          inspectionImportExcel: 'eam/maintenanceStandard/inspectionImportExcel',
-          weekMaintenanceImportExcel: 'eam/maintenanceStandard/weekMaintenanceImportExcel',
-          secondMaintenanceImportExcel: 'eam/maintenanceStandard/secondMaintenanceImportExcel',
-          thirdMaintenanceImportExcel: 'eam/maintenanceStandard/thirdMaintenanceImportExcel',
+          inspectionImportExcel: '/eam/maintenanceStandard/importPointInspection',
+          secondMaintenanceImportExcel: '/eam/maintenanceStandard/importSecondMaintenanceStandard',
+          thirdMaintenanceImportExcel: '/eam/maintenanceStandard/importThirdMaintenanceStandard',
           inspectionXlsDownloadUrl: '瀵煎叆妯℃澘/鐐规鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx',
           weekMaintenanceXlsDownloadUrl: '瀵煎叆妯℃澘/鍛ㄤ繚鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx',
           secondMaintenanceXlsDownloadUrl: '瀵煎叆妯℃澘/浜屼繚鏍囧噯瀵煎叆妯℃澘_v1.0.xlsx',
@@ -254,9 +253,6 @@
     computed: {
       inspectionImportExcel: function() {
         return `${window._CONFIG['domianURL']}/${this.url.inspectionImportExcel}`
-      },
-      weekMaintenanceImportExcel: function() {
-        return `${window._CONFIG['domianURL']}/${this.url.weekMaintenanceImportExcel}`
       },
       secondMaintenanceImportExcel: function() {
         return `${window._CONFIG['domianURL']}/${this.url.secondMaintenanceImportExcel}`
@@ -346,6 +342,40 @@
         this.$refs.modalForm.disableSubmit = false
       },
 
+      batchDel() {
+        var ids = ''
+        for (var a = 0; a < this.selectedRowKeys.length; a++) {
+          ids += this.selectedRowKeys[a] + ','
+        }
+        var that = this
+        this.$confirm({
+          title: '纭鍒犻櫎',
+          content: '鏄惁鍒犻櫎閫変腑鏁版嵁锛屽彧鏈夊緟鎻愪氦鐘舵�佺殑鏁版嵁鎵嶅彲鍒犻櫎鎴愬姛?',
+          onOk: function() {
+            that.loading = true
+            getAction(that.url.deleteBatch, { ids })
+              .then((res) => {
+                if (res.success) {
+                  that.$notification.success({
+                    message: '娑堟伅',
+                    description: res.message
+                  })
+                  that.loadData()
+                  that.onClearSelected()
+                } else {
+                  that.$notification.warning({
+                    message: '娑堟伅',
+                    description: res.message
+                  })
+                }
+              })
+              .finally(() => {
+                that.loading = false
+              })
+          }
+        })
+      },
+
       searchReset() {
         this.standardId = '-1'
         this.queryParam = {}

--
Gitblit v1.9.3