|
|
|
@ -644,7 +644,29 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 删除选中行 |
|
|
|
// 删除选中行 |
|
|
|
delTable() { |
|
|
|
delTable() { |
|
|
|
|
|
|
|
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); |
|
|
|
this.addForm.stoneList = this.addForm.stoneList.filter(row => !row._select); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 插入里程碑行 |
|
|
|
// 插入里程碑行 |
|
|
|
handleOpenDialog() { |
|
|
|
handleOpenDialog() { |
|
|
|
|