Commit 51c585b1 authored by 和慭琛's avatar 和慭琛

Merge branch 'dev-photo-tools'

# Conflicts:
#	take-order/pages.json
parents 839ce0cd 6c372418
...@@ -337,8 +337,9 @@ ...@@ -337,8 +337,9 @@
handleData: function() { handleData: function() {
this.currentItem.answerList.forEach(item => { this.currentItem.answerList.forEach((item,index) => {
item.isSelect = false item.isSelect = false
this.$set(this.currentItem.answerList,index,item)
}) })
}, },
...@@ -364,6 +365,11 @@ ...@@ -364,6 +365,11 @@
itemClick: function(currentItem, ikey) { itemClick: function(currentItem, ikey) {
this.isSelect = true this.isSelect = true
console.log('选点点击--处理前--this.currentItem.answerList:')
console.log(this.currentItem.answerList)
console.log('选点点击--处理前--ikey:')
console.log(ikey)
//answerType 题目类型,1单选,2多选,3简答, //answerType 题目类型,1单选,2多选,3简答,
...@@ -373,14 +379,19 @@ ...@@ -373,14 +379,19 @@
if (this.currentItem.answerType == 2) { //多选 if (this.currentItem.answerType == 2) { //多选
if (ikey == i) { if (ikey == i) {
item.isSelect = !item.isSelect item.isSelect = !item.isSelect
} }
} else { //单选/简答 } else { //单选/简答
if (ikey == i) { if (ikey == i) {
item.isSelect = !item.isSelect item.isSelect = !item.isSelect
} else { } else {
item.isSelect = false item.isSelect = false
} }
} }
this.$set(this.currentItem.answerList[i],isSelect,item.isSelect)
} }
...@@ -393,6 +404,10 @@ ...@@ -393,6 +404,10 @@
//有选答案 //有选答案
this.isSelect = isSelect this.isSelect = isSelect
console.log('选点点击--处理后--this.currentItem.answerList:')
console.log(this.currentItem.answerList)
}, },
......
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