linwenxin 5 روز پیش
والد
کامیت
24ccbb10ac
1فایلهای تغییر یافته به همراه31 افزوده شده و 0 حذف شده
  1. 31 0
      src/views/mallManagement/setActivity/index.vue

+ 31 - 0
src/views/mallManagement/setActivity/index.vue

@@ -711,6 +711,37 @@ export default {
     // 操作按钮
     operation() {
       return this.operationBtn({
+        kelong: {
+          click: ({ row, index, column }) => {
+            promotionQuestionnaireDetail({
+              id: row.id
+            }).then(res => {
+              console.log(res.data)
+
+              this.formData = {
+                ...res.data,
+                submitLimitBool: res.data.submitLimit == -1 ? 0 : 1,
+                promotionQuestionnaireItems: res.data.promotionQuestionnaireItems.map(item => {
+                  return {
+                    ...item,
+                    answer: JSON.parse(item?.answer || '[]')
+                  }
+                }),
+                banner: res.data?.banner?.split(',').map(url => ({ url })),
+                detailImgs: res.data?.detailImgs?.split(',').map(url => ({ url })),
+                endTime: '',
+                startTime: ''
+              }
+              delete this.formData.createBy
+              delete this.formData.createTime
+              delete this.formData.id
+              this.$nextTick(() => {
+                this.typeView = 1
+                this.formDialog = true
+              })
+            })
+          }
+        },
         detail: {
           click: ({ row, index, column }) => {
             promotionQuestionnaireDetail({