This commit is contained in:
yanran200730
2021-12-22 16:31:38 +08:00
parent b8767dfe76
commit def00addab
4 changed files with 281 additions and 4 deletions

View File

@@ -31,9 +31,10 @@
</template>
</el-table-column>
<el-table-column slot="options" label="操作" align="center" width="180" fixed="right">
<template slot-scope="{ row }">
<div class="table-options" slot-scope="{ row }">
<el-button type="text" @click="play(row.id)">播发</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</template>
</div>
</el-table-column>
</ai-table>
</template>
@@ -136,6 +137,15 @@ export default {
})
},
play (id) {
this.$emit('change', {
type: 'Play',
params: {
id: id || ''
},
})
},
// 添加
onAdd(id) {
this.$emit('change', {