From 956c222f0d47288d35e7bd331e43b593913d5e4d Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Fri, 24 Apr 2026 16:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E7=AE=A1=E7=90=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flowManagement/addDialog.vue | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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() {