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

页面修改

parent ce2da712
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
<template v-if="questionObj.Key=='cloze'"> <template v-if="questionObj.Key=='cloze'">
选项处用##题号##替换,如##1## 选项处用##题号##替换,如##1##
</template> </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> </div>
<br /> <br />
<!--单选题--> <!--单选题-->
...@@ -63,7 +64,8 @@ ...@@ -63,7 +64,8 @@
<reading-comprehensio v-if="questionObj.Key=='reading-comprehensio'||questionObj.Key=='listening'" <reading-comprehensio v-if="questionObj.Key=='reading-comprehensio'||questionObj.Key=='listening'"
:questionData="AnswerList" @getChild="getChildData"></reading-comprehensio> :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> </sharing-choose>
<br /> <br />
<div class="col-12"> <div class="col-12">
...@@ -279,9 +281,13 @@ ...@@ -279,9 +281,13 @@
this.objOption.SortNum = res.Data.SortNum; this.objOption.SortNum = res.Data.SortNum;
this.objOption.Answer = res.Data.Answer; this.objOption.Answer = res.Data.Answer;
this.objOption.IsMutex = res.Data.IsMutex; this.objOption.IsMutex = res.Data.IsMutex;
this.AnswerList = res.Data.AnswerObj;
this.questionObj.Key = res.Data.QuestionTypeKey; this.questionObj.Key = res.Data.QuestionTypeKey;
this.questionObj.QId = res.Data.QuestionTypeId; 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) { if (res.Data.QuestionPointList && res.Data.QuestionPointList.length > 0) {
this.choosePointArray = res.Data.QuestionPointList; this.choosePointArray = res.Data.QuestionPointList;
} }
...@@ -319,7 +325,6 @@ ...@@ -319,7 +325,6 @@
pointIds = pointIds.substring(1); pointIds = pointIds.substring(1);
} }
this.objOption.Knowledge = pointIds; this.objOption.Knowledge = pointIds;
console.log("setQuestion", this.objOption);
this.saveCourseLoading = true; this.saveCourseLoading = true;
saveQuestion(this.objOption).then(res => { saveQuestion(this.objOption).then(res => {
this.saveCourseLoading = false this.saveCourseLoading = false
......
...@@ -378,7 +378,6 @@ ...@@ -378,7 +378,6 @@
}) })
}, },
clickClassItem(cItem) { clickClassItem(cItem) {
console.log(cItem,'cItem');
this.classItem = cItem; this.classItem = cItem;
this.isShowTuike=true; 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