From 159aadec23d08b42673fc98e194745fb9a63566e Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 08 七月 2025 10:23:15 +0800
Subject: [PATCH] 保养规范页面批量删除请求方法由get改为delete

---
 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..e04390f 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
+            deleteAction(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