批量删除未选择删除的项目更改提示

master
e 3 years ago
parent 7b8e481911
commit eb26e5293c
  1. 9
      src/views/Home.vue

@ -179,6 +179,7 @@ export default {
lcIdList.push(this.multipleSelection[i].lcId) lcIdList.push(this.multipleSelection[i].lcId)
nameList.push(this.multipleSelection[i].name) nameList.push(this.multipleSelection[i].name)
} }
if (nameList.length > 0){
this.$confirm(`此操作将永久删除【${nameList}】判分点, 是否继续?`, "提示", { this.$confirm(`此操作将永久删除【${nameList}】判分点, 是否继续?`, "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -213,6 +214,14 @@ export default {
}).catch(() => { }).catch(() => {
this.$message.info("已取消删除"); this.$message.info("已取消删除");
}); });
}else{
this.$alert('请选择需要删除的判分点', '提示', {
confirmButtonText: '好的',
callback: action => {
}
});
}
}, },
getProgrammingClassData(params) { // getProgrammingClassData(params) { //
this.$post(this.api.getBcJudgmentPoint, params).then(res => { this.$post(this.api.getBcJudgmentPoint, params).then(res => {

Loading…
Cancel
Save