Commit 45462d72 authored by 黄奎's avatar 黄奎

页面修改

parent 57015c75
......@@ -385,7 +385,7 @@
</div>
<div class="col-12">
<span class="difficulty_Degree">知识点:</span>
<a class="addKnowledge" @click="isShowPoint=true">
<a class="addKnowledge" @click="isShowPoint=true" style="cursor:pointer;">
<i class="iconfont icon-add" style="position:relative;top:1px;"></i>选择知识点
</a>
<span class="knowledge_List" v-for="(x, i) in choosePointArray" :key="i">
......@@ -396,6 +396,10 @@
</div>
</div>
<questionForm v-if="isShowQuestion" @close="closeQuestForm" @success="getQuestionList"></questionForm>
<!--选择知识点-->
<questionpoint v-if="isShowPoint" CourseId="0" :openDialog="isShowPoint" @closed="closeQuestionPoint"
:multiple="true" @selected="getPointList">
</questionpoint>
</div>
</div>
</template>
......@@ -515,6 +519,7 @@
ComOneIndex: -1,
ComCheckIndex: -1,
savePaperLoading: false,
isShowPoint: false, //选择知识点
}
},
created() {
......@@ -532,6 +537,29 @@
}
},
methods: {
//关闭知识点弹窗
closeQuestionPoint() {
this.isShowPoint = false;
},
//获取知识点列表
getPointList(obj) {
if (obj && obj.length > 0) {
if (this.choosePointArray && this.choosePointArray.length > 0) {
this.choosePointArray = this.choosePointArray.concat(obj);
} else {
this.choosePointArray = obj;
}
}
var pointIds = "";
if (this.choosePointArray && this.choosePointArray.length > 0) {
this.choosePointArray.forEach(item => {
pointIds += ',' + item.PointId
});
}
if (pointIds != '') {
this.ChooseItem.Knowledge = pointIds.substring(1);
}
},
//大类改变分数
changeGroupScore(gItem) {
var subScore = 0;
......@@ -841,6 +869,11 @@
this.$refs.UE_AnswerParse.reloadNewValue();
}
this.ChooseItem.AnswerParse = questionItem.AnswerParse;
if (questionItem.QuestionPointList) {
this.choosePointArray = questionItem.QuestionPointList;
} else {
this.choosePointArray = []
}
this.$forceUpdate();
},
//正则匹配替换
......@@ -850,7 +883,6 @@
},
//保存题目
SavePaper() {
if (this.validateType()) {
this.savePaperLoading = true;
savePaperInfo(this.DataObj).then(res => {
......
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