From 7ccfe003f3f1b06e406bb60b481db54effc6c467 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Sun, 8 Mar 2026 21:45:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?= =?UTF-8?q?ate]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/CustomTable.vue | 6 ++++++ src/views/business/comps/template/comps/pcr/PCR008.vue | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 312cb37..e9013dd 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -927,6 +927,12 @@ export default { }); }, + deleteSelectedRows(rowsIndex){ + this.deleteRows(rowsIndex); + this.selectedRows = []; + this.isIndeterminate = false; + this.$emit('selectionChange', this.selectedRows); + }, // 更新数据方法,可在formData变更时调用,也可由父组件调用 updateDataSource(dataSource = []) { this.oldLocalDataSource = JSON.parse(JSON.stringify(this.localDataSource)); diff --git a/src/views/business/comps/template/comps/pcr/PCR008.vue b/src/views/business/comps/template/comps/pcr/PCR008.vue index e017cc0..df299c2 100644 --- a/src/views/business/comps/template/comps/pcr/PCR008.vue +++ b/src/views/business/comps/template/comps/pcr/PCR008.vue @@ -17,7 +17,7 @@
- {{ + {{ $t('form.delete') }}
@@ -236,7 +236,7 @@ export default { onClickDelete() { this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { - this.$refs.stepTableRef.deleteRows(this.deleteRows) + this.$refs.stepTableRef.deleteSelectedRows(this.deleteRows) this.$refs.stepTableRef.justUpdateFilledFormData(); }).catch(() => { });