From 15a40c01ab09810f0f79351f06d6951e305d8ec9 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期二, 10 六月 2025 16:21:43 +0800
Subject: [PATCH] 保养修改
---
src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue | 34 ++++++++++++++++++++++++----------
1 files changed, 24 insertions(+), 10 deletions(-)
diff --git a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
index 3aa9642..17597c8 100644
--- a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
+++ b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue
@@ -21,10 +21,10 @@
:md='8'
:sm='6'
>
- <a-form-item label='鐐规椤圭洰鍚嶇О'>
- <a-input
- placeholder='璇疯緭鍏ョ偣妫�椤圭洰鍚嶇О'
- v-model='queryParam.num'
+ <a-form-item label='鐐规椤圭洰'>
+ <j-input
+ placeholder='璇疯緭鍏ョ偣妫�椤圭洰'
+ v-model='queryParam.name'
/>
</a-form-item>
</a-col>
@@ -129,6 +129,7 @@
],
selectedRowKeys: [],
+ selectedRows: [],
selectionRowsNotClear: [],
oldSelectRows: [],
scrollTrigger: {},
@@ -163,8 +164,18 @@
type: 'checkbox',
onChange: (selectedRowKeys, selectedRows) => {
this.selectedRowKeys = selectedRowKeys
- this.selectionRows = selectedRows
- this.selectionRowsNotClear.push(selectedRows)
+ this.onSelectChange(selectedRows)
+ },
+ onSelect: (record, selected, selectedRows) => {
+ if (selected) {
+ this.selectionRowsNotClear.push(record);
+ }
+ if (!selected) {
+ let delIndex = this.selectionRowsNotClear.findIndex(val => {
+ return val.id === record.id
+ })
+ this.selectionRowsNotClear.splice(delIndex, 1);
+ }
},
getCheckboxProps: record => ({
props: {
@@ -172,13 +183,11 @@
}
}),
selectedRowKeys: this.selectedRowKeys,
- selectedRows: this.selectionRows
}
}
},
methods: {
-
async loadData(arg) {
if (arg === 1) {
this.ipagination.current = 1
@@ -234,7 +243,6 @@
if (num !== 0) {
that.loadData(1)
}
- that.selectborrowIds = []
},
close() {
this.searchReset(0)
@@ -252,13 +260,19 @@
this.loadData()
},
handleSubmit() {
- this.$bus.$emit('selectionRows', this.selectionRowsNotClear)
+ // this.$bus.$emit('selectionRows', this.selectionRowsNotClear)
+ this.$bus.$emit('selectionRows', this.selectionRows)
this.searchReset(0)
this.close()
},
onSelectChange(selectionRows) {
this.selectionRows = selectionRows
},
+ // onSelectionChange(selectedRowKeys, selectedRows) {
+ // this.selectedRowKeys = selectedRowKeys;
+ // this.selectedRows = selectedRows;
+ // },
+
searchQuery() {
this.loadData(1)
}
--
Gitblit v1.9.3