This commit is contained in:
shijingjing
2022-06-08 16:51:45 +08:00
parent 07ca7dc8a7
commit 33294ac8e7
2 changed files with 49 additions and 5 deletions

View File

@@ -32,13 +32,41 @@
</el-table-column> </el-table-column>
<el-table-column slot="options" label="操作" align="center" width="180" fixed="right"> <el-table-column slot="options" label="操作" align="center" width="180" fixed="right">
<div class="table-options" slot-scope="{ row }"> <div class="table-options" slot-scope="{ row }">
<el-button type="text" @click="play(row.id)">播发</el-button> <!-- play(row.id) -->
<el-button type="text" @click="getItemInfo(row.id)">播发</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button> <el-button type="text" @click="remove(row.id)">删除</el-button>
</div> </div>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</template> </template>
</ai-list> </ai-list>
<ai-dialog
title="广播播发"
:visible.sync="detailDialog"
:customFooter="true"
:destroyOnClose="true"
width="780px">
<ai-detail style="background: #FFF;">
<template #content>
<div class="audios">
<ai-audio :src="info.url" v-if="info.type == 1" skin="flat"/>
</div>
<ai-wrapper style="margin-top: 30px;">
<ai-info-item label="媒资名称" :value="info.name"></ai-info-item>
<ai-info-item label="状态" :value="info.content"></ai-info-item>
<ai-info-item label="媒资类型">{{$dict.getLabel('dlbResourceType', info.type)}}</ai-info-item>
<ai-info-item label="创建时间" :value="info.createTime"></ai-info-item>
</ai-wrapper>
</template>
</ai-detail>
<div class="dialog-footer" slot="footer">
<el-button @click="detailDialog=false" size="medium">关闭</el-button>
<el-button @click="play(info.id)" size="medium">新建广播</el-button>
</div>
</ai-dialog>
</section> </section>
</template> </template>
@@ -82,9 +110,9 @@ export default {
return h('span', null, this.dict.getLabel('dlbResourceType', row.type)) return h('span', null, this.dict.getLabel('dlbResourceType', row.type))
}, },
}, },
{ // {
slot: 'content', // slot: 'content',
}, // },
{prop: 'createTime', label: '创建时间', align: 'center'}, {prop: 'createTime', label: '创建时间', align: 'center'},
{ {
prop: 'createUserName', prop: 'createUserName',
@@ -101,6 +129,8 @@ export default {
], ],
tableData: [], tableData: [],
areaId: '', areaId: '',
detailDialog: false,
info: {},
} }
}, },
@@ -137,7 +167,18 @@ export default {
}) })
}, },
getItemInfo (id) {
this.instance.post(`/app/appdlbresource/queryDetailById?id=${id}`).then(res => {
if (res?.data) {
console.log(res);
this.info = res.data
this.detailDialog = true
}
})
},
play (id) { play (id) {
this.detailDialog = false
this.$emit('change', { this.$emit('change', {
type: 'Play', type: 'Play',
params: { params: {
@@ -184,5 +225,8 @@ export default {
.mar-t10 { .mar-t10 {
margin-top: 10px; margin-top: 10px;
} }
.audios {
padding-left: 40px;
}
} }
</style> </style>

View File

@@ -4,7 +4,7 @@
<ai-title :title="id ? '编辑成员' : '添加成员'" isShowBack isShowBottomBorder @onBackClick="cancel(false)"> <ai-title :title="id ? '编辑成员' : '添加成员'" isShowBack isShowBottomBorder @onBackClick="cancel(false)">
</ai-title> </ai-title>
</template> </template>
<template slot="content"> <template slot="content">
<el-form ref="form" :model="form" label-width="110px" label-position="right"> <el-form ref="form" :model="form" label-width="110px" label-position="right">
<ai-card title="个人信息"> <ai-card title="个人信息">
<template #content> <template #content>