Kaynağa Gözat

优化下载照片展示

梁展鹏 3 yıl önce
ebeveyn
işleme
28f4081edc
1 değiştirilmiş dosya ile 29 ekleme ve 14 silme
  1. 29 14
      src/views/statistics/downloadImage/index.vue

+ 29 - 14
src/views/statistics/downloadImage/index.vue

@@ -53,6 +53,14 @@ export default {
           width: '160'
         },
         {
+          key: 'kindergartenName',
+          name: '幼儿园',
+        },
+        {
+          key: 'activityName',
+          name: '活动',
+        },
+        {
           key: 'listPreview',
           name: '图片',
           width: '180',
@@ -75,35 +83,41 @@ export default {
             })
         },
         {
-          key: 'kindergartenName',
-          name: '幼儿园',
-          minWidth: '120'
-        },
-        {
-          key: 'activityName',
-          name: '活动',
-          minWidth: '120'
+          key: 'tempType',
+          name: '照片类型',
+          render: (h, { row }) => {
+            if (row.isHdLogoPhoto) {
+              return h('span', '高清图');
+            }
+            if (row.isOriginPhoto) {
+              return h('span', '原图');
+            }
+          }
         },
         {
           key: 'nickname',
           name: '下载用户',
-          width: '140'
+        },
+        {
+          key: 'payChannels',
+          name: '支付渠道',
+          width: this.$col.m
         },
         {
           key: 'payablePrice',
-          name: '花费金额',
-          width: '140',
+          name: '花费金额/积分(还没折算)',
+          width: this.$col.b
           render: (h,{row}) => h('span',`¥${row.payablePrice}`)
         },
         {
           key: 'photoTime',
           name: '拍摄时间',
-          width: '140'
+          width: this.$col.b
         },
         {
           key: 'createAt',
           name: '下载时间',
-          width: '140'
+          width: this.$col.b
         }
       ],
       statistics: {}
@@ -124,6 +138,7 @@ export default {
         limit: this.pagination.pageSize,
         start: this.pagination.page
       });
+
       const res2 = await getDownloadCount(inParams)
       this.statistics = res2.data
       if ('data' in data) {
@@ -136,7 +151,7 @@ export default {
         }
         this.loadCallBack(data);
       }
-    },    
+    }
   }
 };
 </script>