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(() => { });