diff --git a/src/views/flowManagement/addDialog.vue b/src/views/flowManagement/addDialog.vue index 75153066..abbdad84 100644 --- a/src/views/flowManagement/addDialog.vue +++ b/src/views/flowManagement/addDialog.vue @@ -644,7 +644,29 @@ export default { }, // 删除选中行 delTable() { - this.addForm.stoneList = this.addForm.stoneList.filter(row => !row._select); + const selectedRows = this.addForm.stoneList.filter(row => row._select); + if (selectedRows.length === 0) { + this.$message.warning('请至少选择一行数据进行删除'); + return; + } + const hasUnchecked = selectedRows.some(row => row.checkResult !== 0); + if (hasUnchecked) { + // 存在未核查数据,进行二次提醒 + this.$confirm('确认删除执行中的里程碑?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(() => { + this.addForm.stoneList = this.addForm.stoneList.filter(row => !row._select); + }) + .catch(() => { + // 用户取消,不做操作 + }); + }else{ + this.addForm.stoneList = this.addForm.stoneList.filter(row => !row._select); + } + }, // 插入里程碑行 handleOpenDialog() {