--fix bug

This commit is contained in:
yuping
2023-02-02 10:38:02 +08:00
parent e15cabe750
commit efd6f9412d
3 changed files with 12 additions and 9 deletions

View File

@@ -186,7 +186,10 @@ function del(id) {
okType: 'danger',
cancelText: () => '取消',
onOk() {
id && delStudentList({ids: [id]}).then(() => searchStu())
if(id){
loading.value = true
delStudentList({ids: [id]}).then(() => searchStu())
}
},
});
}

View File

@@ -582,13 +582,8 @@ function bathDel() {
message.destroy();
return message.warning("请先选中学员");
}
stuSelectKeys.value &&
stuSelectKeys.value.length &&
delStudentList({
ids: stuSelectKeys.value,
}).then(() => {
getStuList();
});
tableData.value.loading = true;
delStudentList({ids: stuSelectKeys.value,}).then(() => getStuList());
}
function del(id) {
@@ -600,7 +595,10 @@ function del(id) {
okType: "danger",
cancelText: () => "取消",
onOk() {
id && delStudentList({ ids: [id] }).then(() => getStuList());
if(id){
tableData.value.loading = true;
delStudentList({ ids: [id] }).then(() => getStuList());
}
},
});
}

View File

@@ -1358,6 +1358,7 @@ import RouterHomeworkManage from "../../components/drawers/router/RouterHomework
import RouterCommonManage from "../../components/drawers/router/RouterCommonManage";
import RouterVoteManage from "../../components/drawers/router/RouterVoteManage";
import RouterProjectManage from "../../components/drawers/router/RouterProjectManage";
import {checkPer} from "@/utils/utils";
export default {
name: "LevelAdd",
@@ -2714,6 +2715,7 @@ export default {
setLevels,
selectProjectName4,
changeLevel,
checkPer
};
},
};