流程管理问题修改

dev-scheduling
zhangdi 1 month ago
parent 8c94c27ab0
commit 956c222f0d
  1. 24
      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() {

Loading…
Cancel
Save