取消勾选

This commit is contained in:
zhangsir
2024-02-28 08:47:00 +08:00
parent 2b627809ea
commit 85dd4bb072

View File

@@ -347,6 +347,7 @@ const ChoiceCourse = (n) => {
coursePlanIndex.value = n; coursePlanIndex.value = n;
params.value.pid = data.value[n].id; params.value.pid = data.value[n].id;
tableRef.value.fetch(); tableRef.value.fetch();
tableRef.value.resetSelected();
}; };
watch(()=>params.value.finishStatus,()=>{ watch(()=>params.value.finishStatus,()=>{
if(params.value.finishStatus==undefined){ if(params.value.finishStatus==undefined){
@@ -358,7 +359,10 @@ const removeStu=(id)=> dialog({
ok: () => delStudentList({ ids: [id] }).then(() => fetchData()) ok: () => delStudentList({ ids: [id] }).then(() => fetchData())
}) })
const closeDrawer = () => emit("update:FSvisible", false); const closeDrawer = () => {
emit("update:FSvisible", false)
tableRef.value.resetSelected();
};
//批量签到 //批量签到
const batchSign = () => { const batchSign = () => {
if (!courseSelectRows.value.length) { if (!courseSelectRows.value.length) {
@@ -417,7 +421,10 @@ function stuSign(text) {
} }
//搜索学员 //搜索学员
const searchTaskList = () => tableRef.value.fetch(); const searchTaskList = () => {
tableRef.value.fetch()
tableRef.value.resetSelected();
};
//添加学员 //添加学员
function submitCall(flag) { function submitCall(flag) {