mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
移动端考试未随机
This commit is contained in:
@@ -72,6 +72,9 @@ const querypaper = function(data) {
|
||||
const getPaperContent = function(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 {
|
||||
detail,
|
||||
update,
|
||||
@@ -80,6 +83,7 @@ export default {
|
||||
querylist,
|
||||
querypaper,
|
||||
getPaperContent,
|
||||
getPcPaperContent,
|
||||
batchImportCount,
|
||||
batchImportData
|
||||
}
|
||||
|
||||
@@ -114,7 +114,8 @@
|
||||
this.info=res.result;
|
||||
this.loadStudyItemId();
|
||||
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){
|
||||
//console.log(rs.result)
|
||||
let paperItems=JSON.parse(rs.result);
|
||||
|
||||
Reference in New Issue
Block a user