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 |   48 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/src/views/eam/base/EamMaintenanceStandardList.vue b/src/views/eam/base/EamMaintenanceStandardList.vue
index 440ec2e..e04390f 100644
--- a/src/views/eam/base/EamMaintenanceStandardList.vue
+++ b/src/views/eam/base/EamMaintenanceStandardList.vue
@@ -129,7 +129,7 @@
         <a-tab-pane tab='淇濆吇鏍囧噯鏄庣粏椤�' key="1">
           <div class="table-operator" style="margin:-16px">
             <eam-maintenance-standard-detail-list ref="standardDetailRef" :standardId="standardId"
-                                                  :selectionRows="selectionRows"/>
+                                                  :pageSelectionRow="selectionRows[0]"/>
           </div>
         </a-tab-pane>
 
@@ -138,7 +138,7 @@
     <!-- table鍖哄煙-end -->
 
     <!-- 琛ㄥ崟鍖哄煙 -->
-    <eamMaintenanceStandard-modal ref="modalForm" @ok="modalFormOk"></eamMaintenanceStandard-modal>
+    <eamMaintenanceStandard-modal ref="modalForm" @ok="modalFormOk"/>
   </a-card>
 </template>
 
@@ -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