|
@@ -41,11 +41,12 @@ export default {
|
|
|
] }
|
|
] }
|
|
|
],
|
|
],
|
|
|
cols: [
|
|
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: '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: {
|
|
methods: {
|
|
|
transform ({ deviceName, tag, subtagName, type, keyName, time }) {
|
|
transform ({ deviceName, tag, subtagName, type, keyName, time }) {
|
|
|
return {
|
|
return {
|
|
|
- deviceName,
|
|
|
|
|
|
|
+ tagInfo: AssetTagInfo[tag] || '-',
|
|
|
|
|
+ subtagName: subtagName || '-',
|
|
|
|
|
+ typeInfo: AssetTypeInfo[type],
|
|
|
file: {
|
|
file: {
|
|
|
type,
|
|
type,
|
|
|
url: keyName
|
|
url: keyName
|
|
|
},
|
|
},
|
|
|
- tagInfo: AssetTagInfo[tag] || '-',
|
|
|
|
|
- subtagName: subtagName || '-',
|
|
|
|
|
- typeInfo: AssetType[type],
|
|
|
|
|
|
|
+ deviceName,
|
|
|
time
|
|
time
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|