From e2dde7449df00d3260b3fc721dd229ea47596f56 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 16 七月 2024 10:31:47 +0800
Subject: [PATCH] 小修改

---
 src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
index 85611d4..3aa9642 100644
--- a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
+++ b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
@@ -57,9 +57,9 @@
         :columns='columns'
         :dataSource='dataSource'
         :pagination='ipagination'
-        :rowSelection='rowSelection'
         :loading='loading'
         @change='handleTableChange'
+        :rowSelection='rowSelection'
       >
 
       </a-table>
@@ -101,21 +101,21 @@
           align: 'center',
           dataIndex: 'detectionStandard'
         },
-        {
-          title: '鍚堟牸鑼冨洿',
-          align: 'center',
-          dataIndex: 'acceptabilityLimit'
-        },
-        {
-          title: '鏂规硶',
-          align: 'center',
-          dataIndex: 'inspectionMethod_dictText'
-        },
-        {
-          title: '宸ュ叿',
-          align: 'center',
-          dataIndex: 'inspectionTool'
-        },
+        // {
+        //   title: '鍚堟牸鑼冨洿',
+        //   align: 'center',
+        //   dataIndex: 'acceptabilityLimit'
+        // },
+        // {
+        //   title: '鏂规硶',
+        //   align: 'center',
+        //   dataIndex: 'inspectionMethod_dictText'
+        // },
+        // {
+        //   title: '宸ュ叿',
+        //   align: 'center',
+        //   dataIndex: 'inspectionTool'
+        // },
         // {
         //   title: '鍛ㄦ湡',
         //   align: 'center',
@@ -129,6 +129,7 @@
 
       ],
       selectedRowKeys: [],
+      selectionRowsNotClear: [],
       oldSelectRows: [],
       scrollTrigger: {},
       dataSource: [],
@@ -162,14 +163,16 @@
         type: 'checkbox',
         onChange: (selectedRowKeys, selectedRows) => {
           this.selectedRowKeys = selectedRowKeys
-          this.onSelectChange(selectedRows)
+          this.selectionRows = selectedRows
+          this.selectionRowsNotClear.push(selectedRows)
         },
         getCheckboxProps: record => ({
           props: {
             disabled: record.distable
           }
         }),
-        selectedRowKeys: this.selectedRowKeys
+        selectedRowKeys: this.selectedRowKeys,
+        selectedRows: this.selectionRows
       }
     }
   },
@@ -204,6 +207,8 @@
 
     showModals(oldSelectRows) {
       this.selectionRows = []
+      this.selectedRowKeys = []
+      this.selectionRowsNotClear = []
       this.oldSelectRows = oldSelectRows
       this.visible = true
       this.loadData(1)
@@ -238,16 +243,16 @@
     },
     handleTableChange(pagination, filters, sorter) {
       //TODO 绛涢��
-
       if (Object.keys(sorter).length > 0) {
         this.isorter.column = sorter.field
         this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc'
       }
       this.ipagination = pagination
+
       this.loadData()
     },
     handleSubmit() {
-      this.$bus.$emit('selectionRows', this.selectionRows)
+      this.$bus.$emit('selectionRows', this.selectionRowsNotClear)
       this.searchReset(0)
       this.close()
     },

--
Gitblit v1.9.3