mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
移动端考试未随机
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user