移动端考试未随机

This commit is contained in:
670788339
2025-07-15 15:06:14 +08:00
parent 28e1894179
commit e2ea0ed1ae
2 changed files with 6 additions and 1 deletions

View File

@@ -72,6 +72,9 @@ const querypaper = function(data) {
const getPaperContent = function(id) { const getPaperContent = function(id) {
return ajax.get('/xboe/m/exam/paper/paper-content?id=' + id); return ajax.get('/xboe/m/exam/paper/paper-content?id=' + id);
} }
const getPcPaperContent = function(id) {
return ajax.get('/xboe/m/course/content/exam/paper-content?courseExamId=' + id);
}
export default { export default {
detail, detail,
update, update,
@@ -80,6 +83,7 @@ export default {
querylist, querylist,
querypaper, querypaper,
getPaperContent, getPaperContent,
getPcPaperContent,
batchImportCount, batchImportCount,
batchImportData batchImportData
} }

View File

@@ -114,7 +114,8 @@
this.info=res.result; this.info=res.result;
this.loadStudyItemId(); this.loadStudyItemId();
if(this.info.paperType==2){ if(this.info.paperType==2){
apiExamPaper.getPaperContent(this.info.paperId).then(rs=>{ // apiExamPaper.getPaperContent(this.info.paperId).then(rs=>{
apiExamPaper.getPcPaperContent(this.info.id).then(rs=>{
if(rs.status==200){ if(rs.status==200){
//console.log(rs.result) //console.log(rs.result)
let paperItems=JSON.parse(rs.result); let paperItems=JSON.parse(rs.result);