|
@@ -5,18 +5,18 @@
|
|
|
class="l-flex__none c-sibling-item--v"
|
|
class="l-flex__none c-sibling-item--v"
|
|
|
:schema="schema"
|
|
:schema="schema"
|
|
|
/>
|
|
/>
|
|
|
- <div class="l-flex__fill c-sibling-item--v u-overflow-y--auto">
|
|
|
|
|
- <div class="c-sibling-item--v u-font-size--sm u-color--black u-bold">目标设备</div>
|
|
|
|
|
- <div class="c-sibling-item--v near c-devices u-color--info">
|
|
|
|
|
- <div
|
|
|
|
|
- v-for="device in devices"
|
|
|
|
|
- :key="device.deviceId"
|
|
|
|
|
- class="l-flex__self u-ellipsis"
|
|
|
|
|
- >
|
|
|
|
|
- {{ device.deviceName }}
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="l-flex__fill l-flex c-sibling-item--v">
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="l-flex__none l-flex--col c-sibling-item"
|
|
|
|
|
+ style="width: 300px;"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="c-sibling-item--v u-font-size--sm u-color--black u-bold">目标设备</div>
|
|
|
|
|
+ <schema-table
|
|
|
|
|
+ class="c-sibling-item--v near"
|
|
|
|
|
+ :schema="deviceSchema"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
- <template v-if="targetContent">
|
|
|
|
|
|
|
+ <div class="l-flex__fill l-flex--col c-sibling-item">
|
|
|
<div class="c-sibling-item--v u-font-size--sm u-color--black u-bold">上播内容</div>
|
|
<div class="c-sibling-item--v u-font-size--sm u-color--black u-bold">上播内容</div>
|
|
|
<template v-if="isProgram || isAssets">
|
|
<template v-if="isProgram || isAssets">
|
|
|
<schema-table
|
|
<schema-table
|
|
@@ -27,11 +27,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
<schedule
|
|
<schedule
|
|
|
v-else
|
|
v-else
|
|
|
- class="c-sibling-item--v"
|
|
|
|
|
|
|
+ class="c-sibling-item--v near"
|
|
|
:schedule="targetContent"
|
|
:schedule="targetContent"
|
|
|
hide-header
|
|
hide-header
|
|
|
/>
|
|
/>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<material-dialog ref="materialDialog" />
|
|
<material-dialog ref="materialDialog" />
|
|
|
<confirm-dialog
|
|
<confirm-dialog
|
|
@@ -134,6 +134,13 @@ export default {
|
|
|
] }
|
|
] }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
|
|
+ deviceSchema: {
|
|
|
|
|
+ nonPagination: true,
|
|
|
|
|
+ list: this.getDevices,
|
|
|
|
|
+ cols: [
|
|
|
|
|
+ { prop: 'deviceName', label: '设备名称' }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
reviewOptions: [
|
|
reviewOptions: [
|
|
|
{ value: 'reject', label: '驳回' },
|
|
{ value: 'reject', label: '驳回' },
|
|
|
{ value: '图文不符' },
|
|
{ value: '图文不符' },
|
|
@@ -159,11 +166,11 @@ export default {
|
|
|
thumb: this.programScreenshot
|
|
thumb: this.programScreenshot
|
|
|
}
|
|
}
|
|
|
}, on: this.onView },
|
|
}, on: this.onView },
|
|
|
- !this.isAssets && { prop: 'targetName', label: '' },
|
|
|
|
|
|
|
+ { prop: 'targetName', label: '', 'min-width': 60 },
|
|
|
{ prop: 'desc', label: '上播时间', 'min-width': 160 },
|
|
{ prop: 'desc', label: '上播时间', 'min-width': 160 },
|
|
|
{ type: 'invoke', render: [
|
|
{ type: 'invoke', render: [
|
|
|
this.isProgram && { label: '查看', on: this.onView },
|
|
this.isProgram && { label: '查看', on: this.onView },
|
|
|
- { label: '通过', on: this.onResolve },
|
|
|
|
|
|
|
+ this.devices.length && { label: '通过', on: this.onResolve },
|
|
|
{ label: '驳回', on: this.onReject }
|
|
{ label: '驳回', on: this.onReject }
|
|
|
].filter(Boolean), width: this.isProgram ? 160 : 120 }
|
|
].filter(Boolean), width: this.isProgram ? 160 : 120 }
|
|
|
]
|
|
]
|
|
@@ -172,9 +179,6 @@ export default {
|
|
|
contentSchema () {
|
|
contentSchema () {
|
|
|
return this.isProgram ? this.programAssetSchema : this.assetSchema
|
|
return this.isProgram ? this.programAssetSchema : this.assetSchema
|
|
|
},
|
|
},
|
|
|
- devices () {
|
|
|
|
|
- return this.list?.[0].devices
|
|
|
|
|
- },
|
|
|
|
|
status () {
|
|
status () {
|
|
|
return this.workflow.status
|
|
return this.workflow.status
|
|
|
},
|
|
},
|
|
@@ -211,7 +215,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
publishTarget () {
|
|
publishTarget () {
|
|
|
- return this.list?.[0].target
|
|
|
|
|
|
|
+ return this.list[0]?.target
|
|
|
},
|
|
},
|
|
|
isEvent () {
|
|
isEvent () {
|
|
|
return this.publishTarget?.type === PublishTargetType.EVENT
|
|
return this.publishTarget?.type === PublishTargetType.EVENT
|
|
@@ -251,6 +255,9 @@ export default {
|
|
|
return content
|
|
return content
|
|
|
}
|
|
}
|
|
|
return this.publishTarget?.detail
|
|
return this.publishTarget?.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ devices () {
|
|
|
|
|
+ return this.list[0]?.devices || []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created () {
|
|
created () {
|
|
@@ -258,9 +265,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
transformItem (item) {
|
|
transformItem (item) {
|
|
|
- return transformCalendarRelease(item, {
|
|
|
|
|
- ignoreDeviceTransform: true
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ return transformCalendarRelease(item)
|
|
|
},
|
|
},
|
|
|
transformProgramAsset (asset) {
|
|
transformProgramAsset (asset) {
|
|
|
return {
|
|
return {
|
|
@@ -336,6 +341,9 @@ export default {
|
|
|
})
|
|
})
|
|
|
this.$router.replace({ name: 'workflow-list' })
|
|
this.$router.replace({ name: 'workflow-list' })
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ getDevices () {
|
|
|
|
|
+ return Promise.resolve({ data: this.devices })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|