You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
826 B
JavaScript
39 lines
826 B
JavaScript
|
2 months ago
|
import request from "@/utils/request";
|
||
|
|
|
||
|
|
export function getStudentTrainingAnswer(taskKey, params) {
|
||
|
|
return request({
|
||
|
|
url: `/api/student-training-answers/${taskKey}`,
|
||
|
|
method: "get",
|
||
|
|
params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export function saveStudentTrainingAnswer(taskKey, data) {
|
||
|
|
return request({
|
||
|
|
url: `/api/student-training-answers/${taskKey}`,
|
||
|
|
method: "post",
|
||
|
|
data,
|
||
|
|
headers: { repeatSubmit: false },
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export function deleteStudentTrainingAnswer(taskKey, params) {
|
||
|
|
return request({
|
||
|
|
url: `/api/student-training-answers/${taskKey}`,
|
||
|
|
method: "delete",
|
||
|
|
params,
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
export function uploadStudentTrainingFile(data) {
|
||
|
|
return request({
|
||
|
|
url: "/common/upload",
|
||
|
|
method: "post",
|
||
|
|
data,
|
||
|
|
headers: {
|
||
|
|
"Content-Type": "multipart/form-data",
|
||
|
|
repeatSubmit: false,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
}
|