mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-06 17:36:45 +08:00
添加接口
This commit is contained in:
@@ -35,9 +35,11 @@ export const TASK_OFFCOURSE_SIGN = '/stu/task/offcourse/sign post'
|
|||||||
export const LINK_DETAILS = `/link/getOne`
|
export const LINK_DETAILS = `/link/getOne`
|
||||||
export const STUDY_RECORD = '/stu/task/thirdTask/submit post'
|
export const STUDY_RECORD = '/stu/task/thirdTask/submit post'
|
||||||
export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById'
|
export const TASK_WORK_SUBMIT_LIST = '/workSubmit/queryWorkSubmitDetailById'
|
||||||
|
export const SUB_STUDENT_DETAIL = `/workSubmit/submitStudentNoWorkDetail post`
|
||||||
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
export const WORK_HISTROY = '/workSubmit/queryWorkDetailListByStuId'
|
||||||
export const ASSESSMENT_QUERY = assessmentId => `/stu/task/queryAssessmentDetailById`
|
export const ASSESSMENT_QUERY = assessmentId => `/stu/task/queryAssessmentDetailById`
|
||||||
export const ASSESSMENT_SUBMIT = '/stu/task/evaluate/commit post'
|
export const ASSESSMENT_SUBMIT = '/stu/task/evaluate/commit post'
|
||||||
|
export const TASK_NO_COMMIT = `/stu/task/evaluate/nocommit post`
|
||||||
export const FILE_UPLOAD_ANNEX = import.meta.env.VITE_BASE_API + '/file/stuUploadAnnex'
|
export const FILE_UPLOAD_ANNEX = import.meta.env.VITE_BASE_API + '/file/stuUploadAnnex'
|
||||||
export const ROUTER_DETAILS = '/admin/router/detail'
|
export const ROUTER_DETAILS = '/admin/router/detail'
|
||||||
export const TASK_LIST = '/stu/tasks'
|
export const TASK_LIST = '/stu/tasks'
|
||||||
@@ -88,5 +90,6 @@ export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + '/file/img'
|
|||||||
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
|
export const QueryEvaluationTaskStatusOne = `/evaluation/queryEvaluationTaskStatusOne`
|
||||||
// 投票浏览和参与数目
|
// 投票浏览和参与数目
|
||||||
export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post`
|
export const EditVoteInvolvedAndBrowse = `/vote/editVoteInvolvedAndBrowse post`
|
||||||
|
export const NO_COMMIT = `/voteSubmit/vote/nocommit post`
|
||||||
//任务是否删除
|
//任务是否删除
|
||||||
export const checkStudentExist = `/admin/taskmanage/checkStudentExist post`
|
export const checkStudentExist = `/admin/taskmanage/checkStudentExist post`
|
||||||
@@ -181,6 +181,7 @@ import {
|
|||||||
VOTE_DETAIL3,
|
VOTE_DETAIL3,
|
||||||
VOTE_DETAIL_SUBMIT,
|
VOTE_DETAIL_SUBMIT,
|
||||||
EditVoteInvolvedAndBrowse,
|
EditVoteInvolvedAndBrowse,
|
||||||
|
NO_COMMIT,
|
||||||
checkStudentExist,
|
checkStudentExist,
|
||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
@@ -230,6 +231,18 @@ watch(data, () => {
|
|||||||
useRequest(EditVoteInvolvedAndBrowse, {
|
useRequest(EditVoteInvolvedAndBrowse, {
|
||||||
operationType: "2",
|
operationType: "2",
|
||||||
voteId: data.value.id,
|
voteId: data.value.id,
|
||||||
|
},(res)=>{
|
||||||
|
let noCommitParams = {
|
||||||
|
beginTime: answerTime,
|
||||||
|
chapterOrStageId: chapterOrStageId ? chapterOrStageId : 0,
|
||||||
|
result: JSON.stringify(data.value),
|
||||||
|
targetId: infoId, // 项目 路径图 id
|
||||||
|
taskId: id,
|
||||||
|
type: btype, // 1 项目 2 路径图
|
||||||
|
voteId: data.value.id,
|
||||||
|
voteName: data.value.voteName,
|
||||||
|
}
|
||||||
|
useRequest(NO_COMMIT, noCommitParams);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log("投票基本信息", data);
|
console.log("投票基本信息", data);
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ import {
|
|||||||
TASK_WORK_COMMIT,
|
TASK_WORK_COMMIT,
|
||||||
TASK_WORK_DETAIL,
|
TASK_WORK_DETAIL,
|
||||||
TASK_WORK_SUBMIT_LIST,
|
TASK_WORK_SUBMIT_LIST,
|
||||||
|
SUB_STUDENT_DETAIL,
|
||||||
WORK_HISTROY,
|
WORK_HISTROY,
|
||||||
checkStudentExist,
|
checkStudentExist,
|
||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
@@ -272,6 +273,17 @@ const dohomework = () => {
|
|||||||
// function reUpload(i) {
|
// function reUpload(i) {
|
||||||
// uploadRef.value.reUpload(i);
|
// uploadRef.value.reUpload(i);
|
||||||
// }
|
// }
|
||||||
|
const handleSub = () => {
|
||||||
|
request(SUB_STUDENT_DETAIL,{
|
||||||
|
projectOrRouterLogo: type,
|
||||||
|
workUploadContent: sbValue.value.content,
|
||||||
|
workUploadAddress: fileList.value.map((e) => e.url).join(",") || "",
|
||||||
|
workId,
|
||||||
|
type,
|
||||||
|
taskId: taskId || infoId,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
handleSub()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ import { request, usePage, useRequest } from "@/api/request";
|
|||||||
import {
|
import {
|
||||||
ASSESSMENT_QUERY,
|
ASSESSMENT_QUERY,
|
||||||
ASSESSMENT_SUBMIT,
|
ASSESSMENT_SUBMIT,
|
||||||
|
TASK_NO_COMMIT,
|
||||||
checkStudentExist,
|
checkStudentExist,
|
||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
@@ -416,6 +417,15 @@ onMounted(() => {
|
|||||||
chapterOrStageId,
|
chapterOrStageId,
|
||||||
targetId: infoId ? infoId : 0,
|
targetId: infoId ? infoId : 0,
|
||||||
},(res)=>{
|
},(res)=>{
|
||||||
|
useRequest(TASK_NO_COMMIT, {
|
||||||
|
targetId: infoId ? infoId : 0, // 项目、路径图或开课的Id
|
||||||
|
chapterOrStageId: chapterOrStageId ? chapterOrStageId : 0, // 关卡或者阶段Id 关卡Id不允许为空
|
||||||
|
assessmentId: courseId,
|
||||||
|
taskId: taskId ? taskId : 0,
|
||||||
|
type,
|
||||||
|
result: JSON.stringify(data.value),
|
||||||
|
beginTime: answerTime,
|
||||||
|
})
|
||||||
if (res.data.isSubmit) {
|
if (res.data.isSubmit) {
|
||||||
open();
|
open();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user