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

页面修改

parent 57015c75
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
</div> </div>
<div class="col-12"> <div class="col-12">
<span class="difficulty_Degree">知识点:</span> <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>选择知识点 <i class="iconfont icon-add" style="position:relative;top:1px;"></i>选择知识点
</a> </a>
<span class="knowledge_List" v-for="(x, i) in choosePointArray" :key="i"> <span class="knowledge_List" v-for="(x, i) in choosePointArray" :key="i">
...@@ -396,6 +396,10 @@ ...@@ -396,6 +396,10 @@
</div> </div>
</div> </div>
<questionForm v-if="isShowQuestion" @close="closeQuestForm" @success="getQuestionList"></questionForm> <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>
</div> </div>
</template> </template>
...@@ -515,6 +519,7 @@ ...@@ -515,6 +519,7 @@
ComOneIndex: -1, ComOneIndex: -1,
ComCheckIndex: -1, ComCheckIndex: -1,
savePaperLoading: false, savePaperLoading: false,
isShowPoint: false, //选择知识点
} }
}, },
created() { created() {
...@@ -532,6 +537,29 @@ ...@@ -532,6 +537,29 @@
} }
}, },
methods: { 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) { changeGroupScore(gItem) {
var subScore = 0; var subScore = 0;
...@@ -841,6 +869,11 @@ ...@@ -841,6 +869,11 @@
this.$refs.UE_AnswerParse.reloadNewValue(); this.$refs.UE_AnswerParse.reloadNewValue();
} }
this.ChooseItem.AnswerParse = questionItem.AnswerParse; this.ChooseItem.AnswerParse = questionItem.AnswerParse;
if (questionItem.QuestionPointList) {
this.choosePointArray = questionItem.QuestionPointList;
} else {
this.choosePointArray = []
}
this.$forceUpdate(); this.$forceUpdate();
}, },
//正则匹配替换 //正则匹配替换
...@@ -850,7 +883,6 @@ ...@@ -850,7 +883,6 @@
}, },
//保存题目 //保存题目
SavePaper() { SavePaper() {
if (this.validateType()) { if (this.validateType()) {
this.savePaperLoading = true; this.savePaperLoading = true;
savePaperInfo(this.DataObj).then(res => { 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