|
|
@@ -172,9 +172,9 @@ import {
|
|
|
WorkflowType,
|
|
|
PublishType,
|
|
|
PublishTargetType,
|
|
|
- EventPriority,
|
|
|
- EventPriorityInfo,
|
|
|
- EventFrequency
|
|
|
+ EventFrequency,
|
|
|
+ PlayPriority,
|
|
|
+ PlayPriorityInfo
|
|
|
} from '@/constant.js'
|
|
|
import {
|
|
|
toDateStr,
|
|
|
@@ -218,23 +218,27 @@ export default {
|
|
|
{ value: PublishDataType.INTERCUT, label: '资源插播' },
|
|
|
{ value: PublishDataType.DEFAULT_PLAYBACK, label: '默认播放' }
|
|
|
],
|
|
|
- priority: EventPriority.INSERTED,
|
|
|
+ priority: PlayPriority.FIRST,
|
|
|
priorityOptions: [
|
|
|
{
|
|
|
- value: EventPriority.SCHEDULING,
|
|
|
- label: EventPriorityInfo[EventPriority.SCHEDULING]
|
|
|
+ value: PlayPriority.FIRST,
|
|
|
+ label: PlayPriorityInfo[PlayPriority.FIRST]
|
|
|
},
|
|
|
{
|
|
|
- value: EventPriority.INSERTED,
|
|
|
- label: EventPriorityInfo[EventPriority.INSERTED]
|
|
|
+ value: PlayPriority.SECOND,
|
|
|
+ label: PlayPriorityInfo[PlayPriority.SECOND]
|
|
|
},
|
|
|
{
|
|
|
- value: EventPriority.EMBEDDED,
|
|
|
- label: EventPriorityInfo[EventPriority.EMBEDDED]
|
|
|
+ value: PlayPriority.THIRD,
|
|
|
+ label: PlayPriorityInfo[PlayPriority.THIRD]
|
|
|
},
|
|
|
{
|
|
|
- value: EventPriority.EMERGENT,
|
|
|
- label: EventPriorityInfo[EventPriority.EMERGENT]
|
|
|
+ value: PlayPriority.FOURTH,
|
|
|
+ label: PlayPriorityInfo[PlayPriority.FOURTH]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: PlayPriority.FIFTH,
|
|
|
+ label: PlayPriorityInfo[PlayPriority.FIFTH]
|
|
|
}
|
|
|
],
|
|
|
intercutFinishDate: null,
|
|
|
@@ -278,7 +282,7 @@ export default {
|
|
|
cols: [
|
|
|
{ prop: 'deviceName', label: '设备名称' },
|
|
|
{ prop: 'name', label: '上播内容' },
|
|
|
- { prop: 'priority', label: '优先级', render: row => EventPriorityInfo[row.priority], size: 'sm', width: 84, align: 'center' },
|
|
|
+ { prop: 'priority', label: '优先级', render: row => PlayPriorityInfo[row.priority], size: 'sm', width: 84, align: 'center' },
|
|
|
{ prop: 'start', label: '开始时间', width: 140, align: 'center' },
|
|
|
{ prop: 'until', label: '结束时间', width: 140, align: 'center' }
|
|
|
]
|
|
|
@@ -292,7 +296,7 @@ export default {
|
|
|
cols: [
|
|
|
{ prop: 'deviceName', label: '设备名称' },
|
|
|
{ prop: 'name', label: '上播内容' },
|
|
|
- { prop: 'priority', label: '优先级', render: row => EventPriorityInfo[row.priority], size: 'sm', width: 84, align: 'center' },
|
|
|
+ { prop: 'priority', label: '优先级', render: row => PlayPriorityInfo[row.priority], size: 'sm', width: 84, align: 'center' },
|
|
|
{ prop: 'start', label: '开始时间', width: 140, align: 'center' },
|
|
|
{ prop: 'until', label: '结束时间', width: 140, align: 'center' }
|
|
|
]
|
|
|
@@ -521,7 +525,7 @@ export default {
|
|
|
const targets = targetList.map(JSON.parse)
|
|
|
const { detail: { priority, target } } = targets[0]
|
|
|
|
|
|
- this.eventType = priority === EventPriority.SHIM
|
|
|
+ this.eventType = priority === PlayPriority.FIRST
|
|
|
? PublishDataType.DEFAULT_PLAYBACK
|
|
|
: PublishDataType.NORMAL
|
|
|
this.priority = priority
|
|
|
@@ -603,7 +607,7 @@ export default {
|
|
|
options: {
|
|
|
programCalendarName: value,
|
|
|
resolutionRatio: resolutionRatio || '自适应',
|
|
|
- remark: EventPriorityInfo[this.priority]
|
|
|
+ remark: PlayPriorityInfo[this.priority]
|
|
|
}
|
|
|
}
|
|
|
if (data && data.length > 0) {
|
|
|
@@ -675,7 +679,7 @@ export default {
|
|
|
options: {
|
|
|
programCalendarName: value,
|
|
|
resolutionRatio: resolutionRatio || '自适应',
|
|
|
- remark: EventPriorityInfo[EventPriority.SHIM]
|
|
|
+ remark: PlayPriorityInfo[PlayPriority.FIRST]
|
|
|
}
|
|
|
}))
|
|
|
}
|
|
|
@@ -694,7 +698,7 @@ export default {
|
|
|
targetList: [{
|
|
|
type: PublishTargetType.EVENT,
|
|
|
detail: {
|
|
|
- priority: EventPriority.SHIM,
|
|
|
+ priority: PlayPriority.FIRST,
|
|
|
freq: EventFrequency.ONCE,
|
|
|
start: `${toDateStr(new Date())} 00:00:00`,
|
|
|
target: eventTarget
|