diff --git a/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue b/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue index f1617604..682c8433 100644 --- a/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue +++ b/src/views/workCenter/projectComplianceEvaluationProcess/ProjectComplianceEvaluationProcess.vue @@ -1153,11 +1153,16 @@ export default { this.$message.warning(this.$t('selectAtLeastOne')) return } + if (this.selectedRowKeys.length === this.dataSource.length) { + this.$message.warning(this.$t('workCenter.standardCompliance.atLeastOneData')) + return + } this.$confirm({ title: this.$t('confirmBatchDeletion'), content: this.$t('deleteAData'), onOk: () => { this.dataSource = this.dataSource.filter(tt => !this.selectedRowKeys.includes(tt.tableRowKey)) + this.selectedRowKeys = [] this.$message.success(this.$t('deleteSucceeded')) } }) @@ -1188,6 +1193,10 @@ export default { * @param rowKey */ handleDelete (rowKey) { + if (this.dataSource.length === 1) { + this.$message.warning(this.$t('workCenter.standardCompliance.atLeastOneData')) + return + } const index = this.dataSource.findIndex(tt => tt.tableRowKey === rowKey) if (index !== -1) { this.$confirm({ diff --git a/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue b/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue index 65bb4c5b..5dad3c16 100644 --- a/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue +++ b/src/views/workCenter/projectComplianceEvaluationProcess/modules/SelectStandardListDrawer.vue @@ -139,7 +139,7 @@ export default { this.initDict() this.$nextTick(() => { this.source ? this.queryParam.source = this.source : this.queryParam = {} - this.replacePage() + this.replacePage(1) }) }, initDict () {