Commit 7348a0e3 authored by 黄奎's avatar 黄奎

页面修改

parent ce2da712
......@@ -32,7 +32,8 @@
<template v-if="questionObj.Key=='cloze'">
选项处用##题号##替换,如##1##
</template>
<UeEditor v-if="questionObj.Key!='sharing-choose'" v-model="objOption.Title" :config="config" ref="UE_Title"></UeEditor>
<UeEditor v-if="questionObj.Key!='sharing-choose'" v-model="objOption.Title" :config="config"
ref="UE_Title"></UeEditor>
</div>
<br />
<!--单选题-->
......@@ -63,7 +64,8 @@
<reading-comprehensio v-if="questionObj.Key=='reading-comprehensio'||questionObj.Key=='listening'"
:questionData="AnswerList" @getChild="getChildData"></reading-comprehensio>
<!--共用选择题-->
<sharing-choose v-if="questionObj.Key=='sharing-choose'" :questionData="AnswerList" @getChild="getChildData" :setOption="objOption">
<sharing-choose v-if="questionObj.Key=='sharing-choose'" :questionData="AnswerList" @getChild="getChildData"
:setOption="objOption">
</sharing-choose>
<br />
<div class="col-12">
......@@ -279,9 +281,13 @@
this.objOption.SortNum = res.Data.SortNum;
this.objOption.Answer = res.Data.Answer;
this.objOption.IsMutex = res.Data.IsMutex;
this.AnswerList = res.Data.AnswerObj;
this.questionObj.Key = res.Data.QuestionTypeKey;
this.questionObj.QId = res.Data.QuestionTypeId;
if (res.Data.AnswerObj) {
this.AnswerList = res.Data.AnswerObj;
} else {
this.onItemClick(this.questionObj);
}
if (res.Data.QuestionPointList && res.Data.QuestionPointList.length > 0) {
this.choosePointArray = res.Data.QuestionPointList;
}
......@@ -319,7 +325,6 @@
pointIds = pointIds.substring(1);
}
this.objOption.Knowledge = pointIds;
console.log("setQuestion", this.objOption);
this.saveCourseLoading = true;
saveQuestion(this.objOption).then(res => {
this.saveCourseLoading = false
......
......@@ -378,7 +378,6 @@
})
},
clickClassItem(cItem) {
console.log(cItem,'cItem');
this.classItem = cItem;
this.isShowTuike=true;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment