Browse Source

no message

linwenxin 5 days ago
parent
commit
bf433180be
1 changed files with 16 additions and 14 deletions
  1. 16 14
      src/views/mallManagement/activityOrder/detail.vue

+ 16 - 14
src/views/mallManagement/activityOrder/detail.vue

@@ -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 => {