Commit c060e895 by 宋珺琪

修改回显bug

parent 1d21a7d0
......@@ -153,7 +153,7 @@
<ul>
<li class="first">
<el-tag type="success">正确答案:</el-tag>
<span class="right">{{reduceAnswer.answer}}</span></li>
<span class="right">{{pdtanswer}}</span></li>
<li class="second">
<el-tag>题目解析:</el-tag>
<div class="li2right">{{reduceAnswer.analysis == null ? '无': reduceAnswer.analysis}}</div>
......@@ -180,6 +180,7 @@ import {mapState} from 'vuex'
export default {
data() {
return {
pdtanswer:'',
dialogImageUrl:"",//放大的图片
isradio:false, //默认为false 。。点击后改为true
ischeckBox:false, //默认为false 。。点击后改为true
......@@ -295,6 +296,11 @@ export default {
}else if (!reduceAnswer.oneOrMore) {
reduceAnswer.oneOrMore = '3'
this.optionValue = '判断题'
if (reduceAnswer.answer =='T'){
this.pdtanswer = "正确"
}else {
this.pdtanswer = "错误"
}
}
this.showQuestion = reduceAnswer.question
})
......
......@@ -397,6 +397,9 @@
optionValue(newValue) {
this.postChange.rightAnswer=''
this.photoList=[]
// this.postChange = {}
// this.oneSelect= ''
// this.moreSelect = ""
}
},
created() {
......@@ -502,7 +505,8 @@
this.subject = subject
this.postPaper.paperId = paperId
},
changeSubmit() { //选择题题库提交
//选择题题库提交
changeSubmit() {
let self = this;
this.postChange.oneOrMore = '1'
this.postChange.rightAnswer = this.oneSelect
......@@ -524,9 +528,6 @@
message: '已添加到题库',
type: 'success'
})
this.postChange = {}
this.oneSelect= ''
this.moreSelect = ""
}
}).then(() => {
this.$axios(`/api/multiQuestionId`).then(res => { //获取当前题目的questionId
......@@ -546,7 +547,7 @@
method: 'Post',
data: params
})
this.photoList=[]
// this.photoList=[]
})
})
},
......@@ -643,38 +644,6 @@
}
})
},
/* fillSubmit() { //填空题提交
this.postFill.subject = this.subject
this.$axios({
url: '/api/fillQuestion',
method: 'post',
data: {
...this.postFill
}
}).then(res => {
let status = res.data.code
if(status == 200) {
this.$message({
message: '已添加到题库',
type: 'success'
})
this.postFill = {}
}
}).then(() => {
this.$axios(`/api/fillQuestionId`).then(res => { //获取当前题目的questionId
let questionId = res.data.data.questionId
this.postPaper.questionId = questionId
this.postPaper.questionType = 2
this.$axios({
url: '/api/paperManage',
method: 'Post',
data: {
...this.postPaper
}
})
})
})
},*/
//判断题提交
judgeSubmit() {
let self = this;
......@@ -693,7 +662,6 @@
message: '已添加到题库',
type: 'success'
})
this.postJudge = {}
}
}).then(() => {
this.$axios(`/api/judgeQuestionId`).then(res => { //获取当前题目的questionId
......@@ -710,7 +678,7 @@
method: 'Post',
data: params
})
this.photoList=[]
// this.photoList=[]
})
})
}
......@@ -719,6 +687,10 @@
</script>
<style lang="less" scoped>
//小对号
/deep/.el-upload-list__item-status-label{
display: block;
}
//点击上传
.upload-demo{
height: 100px;
......
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