调整播发广播在任意时刻可撤回

This commit is contained in:
aixianling
2022-12-27 11:48:32 +08:00
parent dc91f5b104
commit 2235f5411c

View File

@@ -32,9 +32,7 @@
<template slot-scope="{ row }">
<!-- <el-button type="text" @click="onAdd(row.id)">复制</el-button> -->
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="reset(row.id)"
v-if="row.taskType == 1 && (row.broadcastStatus == 0 || row.broadcastStatus == 1 || row.broadcastStatus == 2 )">撤回
</el-button>
<el-button type="text" @click="reset(row.id)">撤回</el-button>
</template>
</el-table-column>
</ai-table>
@@ -71,17 +69,22 @@ export default {
ids: [],
colConfigs: [
{prop: 'sourceName', label: '媒资名称', width: 200},
{prop: 'type', label: '媒资类型', align: 'center', render: (h, {row}) => {
return h('span', null, this.dict.getLabel('dlbResourceType',row.type))},
{
prop: 'type', label: '媒资类型', align: 'center', render: (h, {row}) => {
return h('span', null, this.dict.getLabel('dlbResourceType', row.type))
},
},
{prop: 'messageLevel', label: '级别', align: 'center', dict: "dlbMessageUrgency"},
{prop: 'taskType', label: '播发方式', align: 'center', render: (h, {row}) => {
return h('span', null, (row.taskType == 1? '定时播放':'立即播放'))},
{
prop: 'taskType', label: '播发方式', align: 'center', render: (h, {row}) => {
return h('span', null, (row.taskType == 1 ? '定时播放' : '立即播放'))
},
},
{prop: 'startTime', label: '开始时间', align: 'center', width: 180},
{prop: 'broadcastStatus', label: '状态', align: 'center',
render: (h, { row })=>{
return h('span',null, (row.broadcastStatus == 0? '已下发': row.broadcastStatus == 3? '播发成功': row.broadcastStatus == 6? '已取消': ''))
{
prop: 'broadcastStatus', label: '状态', align: 'center',
render: (h, {row}) => {
return h('span', null, (row.broadcastStatus == 0 ? '已下发' : row.broadcastStatus == 3 ? '播发成功' : row.broadcastStatus == 6 ? '已取消' : ''))
}
},
// {prop: 'areaName', label: '地区', align: 'center'},