Browse Source

refactor(statistic): adjust some styles

Casper Dai 3 năm trước cách đây
mục cha
commit
442bc4fc24
1 tập tin đã thay đổi với 9 bổ sung8 xóa
  1. 9 8
      src/views/dashboard/statistic/index.vue

+ 9 - 8
src/views/dashboard/statistic/index.vue

@@ -41,11 +41,12 @@ export default {
           ] }
         ],
         cols: [
-          { prop: 'tagInfo', label: '文件', align: 'center', width: 80 },
-          { prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
+          { prop: 'tagInfo', type: 'refresh', align: 'center', width: 80 },
+          { prop: 'typeInfo', label: '文件', align: 'center', width: 80 },
           // { prop: 'subtagName', label: '', width: 100, align: 'center' },
-          { prop: 'deviceName', label: '设备' },
-          { prop: 'time', label: '时间' }
+          { prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
+          { prop: 'deviceName', label: '播放设备' },
+          { prop: 'time', label: '播放时间' }
         ]
       }
     }
@@ -53,14 +54,14 @@ export default {
   methods: {
     transform ({ deviceName, tag, subtagName, type, keyName, time }) {
       return {
-        deviceName,
+        tagInfo: AssetTagInfo[tag] || '-',
+        subtagName: subtagName || '-',
+        typeInfo: AssetTypeInfo[type],
         file: {
           type,
           url: keyName
         },
-        tagInfo: AssetTagInfo[tag] || '-',
-        subtagName: subtagName || '-',
-        typeInfo: AssetType[type],
+        deviceName,
         time
       }
     },