面授签到

This commit is contained in:
yuping
2022-12-18 00:09:28 +08:00
parent 25fe482c05
commit 1410952d59
2 changed files with 9 additions and 3 deletions

View File

@@ -229,7 +229,7 @@
import { computed, reactive, toRefs, watch } from "vue";
import FileTypeImg from "@/components/FileTypeImg.vue";
import { request, useRequest } from "@/api/request";
import { STU_OFFCOURSE_DETAIL } from "@/api/api";
import {STU_OFFCOURSE_DETAIL, TASK_OFFCOURSE_NOTASK_SIGN, TASK_OFFCOURSE_SIGN} from "@/api/api";
import { useRoute, useRouter } from "vue-router";
import { useUserInfo } from "@/api/utils";
@@ -326,10 +326,14 @@ const signClick = () => {
if (!isAllowSign) {
ElMessage.info("未在签到范围内");
return;
}
}2
data.value.signFlag = 1;
ElMessage.info("签到成功");
request(TASK_BROADCAST_SIGN, { courseId: courseId, taskId, type });
if(taskId){
request(TASK_OFFCOURSE_SIGN, { courseId: courseId, taskId, type });
}else{
request(TASK_OFFCOURSE_NOTASK_SIGN, { courseId: courseId });
}
};
function toSurvery() {