Commit c060e895 by 宋珺琪

修改回显bug

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