|
@@ -348,20 +348,22 @@ export default {
|
|
|
this.status = res.data.status
|
|
|
|
|
|
this.activeItems = res.data.items.map(item => {
|
|
|
- item.answer = item.answer.map(it => {
|
|
|
- if (item.type == 3) {
|
|
|
- item.inputValue = it.option_value
|
|
|
- } else if (item.type == 4 || item.type == 5) {
|
|
|
- let img = []
|
|
|
- it.option_value.forEach(t => {
|
|
|
- img.push({ url: t })
|
|
|
- })
|
|
|
- console.log(it.option_value, img)
|
|
|
- item.inputValue = img
|
|
|
- }
|
|
|
- return { ...it }
|
|
|
- })
|
|
|
- return { ...item }
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ answer: item.answer.map(it => {
|
|
|
+ if (item.type == 3) {
|
|
|
+ item.inputValue = it.option_value
|
|
|
+ } else if (item.type == 4 || item.type == 5) {
|
|
|
+ let img = []
|
|
|
+ it.option_value.forEach(t => {
|
|
|
+ img.push({ url: t })
|
|
|
+ })
|
|
|
+ console.log(it.option_value, img)
|
|
|
+ item.inputValue = img
|
|
|
+ }
|
|
|
+ return { ...it }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
console.log(this.activeItems)
|
|
|
getActiveDetail({ id: res.data.promotionQuestionnaireId }).then(res => {
|