From 8a4d90d80c6ae8472bf11a1c1f148ca49c90f0a7 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期四, 29 五月 2025 15:42:59 +0800 Subject: [PATCH] 1、设备TEEP、设备开动率以及班次利用率页面时间选择器新增用户选择时对时间范围的限制功能并测试大数据导出功能 2、生产设备自主维护点检表设备编号的输入方式由手动输入调整为弹窗选择输入 3、生产设备自主维护点检表页面调整周保执行记录渲染逻辑(日期对应到周) --- src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue index 3aa9642..f20be29 100644 --- a/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue +++ b/src/views/eam/modules/dailyInspectionStandard/JSelectDailylnspectionStandardModal.vue @@ -129,6 +129,7 @@ ], selectedRowKeys: [], + selectedRows: [], selectionRowsNotClear: [], oldSelectRows: [], scrollTrigger: {}, @@ -163,8 +164,17 @@ type: 'checkbox', onChange: (selectedRowKeys, selectedRows) => { this.selectedRowKeys = selectedRowKeys - this.selectionRows = selectedRows - this.selectionRowsNotClear.push(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 +182,11 @@ } }), selectedRowKeys: this.selectedRowKeys, - selectedRows: this.selectionRows } } }, methods: { - async loadData(arg) { if (arg === 1) { this.ipagination.current = 1 @@ -234,7 +242,6 @@ if (num !== 0) { that.loadData(1) } - that.selectborrowIds = [] }, close() { this.searchReset(0) @@ -256,9 +263,11 @@ 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