Răsfoiți Sursa

feat: support name display in epg

Casper Dai 2 ani în urmă
părinte
comite
c8c61b6749
1 a modificat fișierele cu 7 adăugiri și 3 ștergeri
  1. 7 3
      src/views/ad/automation/scheduling/index.vue

+ 7 - 3
src/views/ad/automation/scheduling/index.vue

@@ -26,6 +26,7 @@
     <table-dialog
       ref="tableDialog"
       :title="title"
+      size="lg"
       :schema="schedulingSchema"
     />
     <table-dialog
@@ -135,7 +136,8 @@ export default {
           { prop: 'tagType', label: '文件', width: 100, align: 'center' },
           { prop: 'fileType', label: '', width: 80 },
           { prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
-          { prop: 'adDuration', label: '上播时长', align: 'center' },
+          { prop: 'name', label: '' },
+          { prop: 'adDuration', label: '上播时长', width: 100, align: 'center' },
           { type: 'invoke', render: [
             { label: '查看', allow: ({ file }) => !!file, on: this.onViewAsset }
           ] }
@@ -146,14 +148,15 @@ export default {
   computed: {
     schedulingSchema () {
       return {
-        condition: { id: this.schedulingId },
         list: getDeviceScheduling,
         transform: this.transformScheduling,
+        condition: { id: this.schedulingId },
         cols: [
           { prop: 'fromInfo', type: 'refresh', width: 80, align: 'center' },
           { prop: 'dataTag', label: '类型', width: 80, align: 'center' },
           { prop: 'dataType', label: '', width: 80, align: 'center' },
           { prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
+          { prop: 'originalName', label: '' },
           { prop: 'time', label: '时间', 'align': 'center' },
           { prop: 'tag', type: 'tag' },
           { type: 'invoke', render: [
@@ -349,7 +352,7 @@ export default {
           adDuration: parseDuration(adDuration)
         }
     },
-    transformContractAsset ({ tag, type, keyName, duration }) {
+    transformContractAsset ({ tag, type, keyName, originalName, duration }) {
       return {
         tagType: AssetTagInfo[tag],
         fileType: AssetTypeInfo[type],
@@ -357,6 +360,7 @@ export default {
           type,
           url: keyName
         },
+        name: originalName,
         adDuration: parseDuration(duration)
       }
     },