|
|
@@ -18,7 +18,7 @@
|
|
|
</div>
|
|
|
<template v-if="targetContent">
|
|
|
<div class="c-sibling-item--v u-font-size--sm u-color--black u-bold">上播内容</div>
|
|
|
- <template v-if="isAssets">
|
|
|
+ <template v-if="isProgram || isAssets">
|
|
|
<schema-table
|
|
|
class="c-sibling-item--v near"
|
|
|
:schema="contentSchema"
|
|
|
@@ -108,8 +108,8 @@ export default {
|
|
|
nonPagination: true,
|
|
|
list: this.getContentAssets,
|
|
|
cols: [
|
|
|
- { prop: 'tagInfo', label: '类型', width: 100, align: 'center' },
|
|
|
- { prop: 'typeInfo', label: '资源', width: 80 },
|
|
|
+ { prop: 'tagInfo', label: '类型', width: 80, align: 'center' },
|
|
|
+ { prop: 'typeInfo', label: '资源', width: 72, align: 'center' },
|
|
|
{ prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
|
|
|
{ prop: 'name', label: '' },
|
|
|
{ prop: 'adDuration', label: '上播时长', 'min-width': 60, align: 'center' },
|
|
|
@@ -118,16 +118,16 @@ export default {
|
|
|
] }
|
|
|
]
|
|
|
},
|
|
|
- programAssetschema: {
|
|
|
+ programAssetSchema: {
|
|
|
nonPaination: true,
|
|
|
list: this.getContentAssets,
|
|
|
cols: [
|
|
|
- { prop: 'tagInfo', width: 80 },
|
|
|
- { prop: 'typeInfo', label: '资源', align: 'center', width: 72 },
|
|
|
- { prop: 'file', type: 'asset', on: this.onViewAsset },
|
|
|
+ { prop: 'tagInfo', label: '类型', width: 80, align: 'center' },
|
|
|
+ { prop: 'typeInfo', label: '资源', width: 72, align: 'center' },
|
|
|
+ { prop: 'file', label: '', type: 'asset', on: this.onViewAsset },
|
|
|
{ prop: 'originalName', label: '' },
|
|
|
{ prop: 'ai', label: 'AI审核', type: 'tag' },
|
|
|
- { prop: 'size', label: '文件大小' },
|
|
|
+ { prop: 'size', label: '文件大小', align: 'right' },
|
|
|
{ prop: 'diff', label: '其他', align: 'center' },
|
|
|
{ type: 'invoke', render: [
|
|
|
{ label: '查看', on: this.onViewAsset }
|
|
|
@@ -161,11 +161,11 @@ export default {
|
|
|
}, on: this.onView },
|
|
|
!this.isAssets && { prop: 'targetName', label: '' },
|
|
|
{ prop: 'desc', label: '上播时间', 'min-width': 160 },
|
|
|
- { type: 'invoke', width: this.targetContent ? 120 : 160, render: [
|
|
|
+ { type: 'invoke', render: [
|
|
|
this.isProgram && { label: '查看', on: this.onView },
|
|
|
{ label: '通过', on: this.onResolve },
|
|
|
{ label: '驳回', on: this.onReject }
|
|
|
- ].filter(Boolean) }
|
|
|
+ ].filter(Boolean), width: this.isProgram ? 160 : 120 }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
@@ -213,9 +213,6 @@ export default {
|
|
|
publishTarget () {
|
|
|
return this.list?.[0].target
|
|
|
},
|
|
|
- isSchedule () {
|
|
|
- return this.publishTarget?.type === PublishTargetType.CALENDAR
|
|
|
- },
|
|
|
isEvent () {
|
|
|
return this.publishTarget?.type === PublishTargetType.EVENT
|
|
|
},
|
|
|
@@ -228,9 +225,6 @@ export default {
|
|
|
}
|
|
|
return null
|
|
|
},
|
|
|
- isRecur () {
|
|
|
- return this.isEvent && this.publishTarget.detail.target.type === EventTarget.RECUR
|
|
|
- },
|
|
|
isAssets () {
|
|
|
return this.isEvent && this.publishTarget.detail.target.type === EventTarget.ASSETS
|
|
|
},
|
|
|
@@ -280,6 +274,7 @@ export default {
|
|
|
return { type, url: keyName }
|
|
|
})
|
|
|
},
|
|
|
+ originalName: asset.originalName,
|
|
|
ai: getAIState(asset),
|
|
|
size: parseByte(asset.size),
|
|
|
diff: getAssetDiff(asset)
|
|
|
@@ -299,7 +294,7 @@ export default {
|
|
|
type,
|
|
|
url: keyName
|
|
|
},
|
|
|
- name: name || '',
|
|
|
+ name,
|
|
|
adDuration: parseDuration(duration)
|
|
|
}
|
|
|
},
|