|
@@ -1,6 +1,7 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <avue-crud ref="crud" :page="page" :data="dataList" :option="tableOption" @on-load="getDataList">
|
|
|
+ <avue-crud ref="crud" :page="page" :data="dataList" :option="tableOption" @on-load="getDataList"
|
|
|
+ @search-change="searchChange">
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="primary" icon="el-icon-plus" size="small"
|
|
|
@click.stop="$router.push({ name: 'liveroomEdit', params: { id: 'new' } })">新增</el-button>
|
|
@@ -12,7 +13,8 @@
|
|
|
|
|
|
<template slot-scope="{row}" slot="startup">
|
|
|
<div class="icon-button">
|
|
|
- <el-button type="primary" size="small" @click="startLiveRoom(row)"><icon-svg name="play" /></el-button>
|
|
|
+ <el-button type="primary" size="small" @click="startLiveRoom(row)" :disabled="row.startTime !== null"><icon-svg
|
|
|
+ name="play" /></el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -72,6 +74,9 @@ export default Vue.extend({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ searchChange(params: any, done?: Function) {
|
|
|
+ this.getDataList(this.page, params.title, done)
|
|
|
+ },
|
|
|
updateShowStatus(id: number, status: boolean) {
|
|
|
httpx.post("/rooms/updateRoomShowStatus", { id, showInList: status }).then((data) => {
|
|
|
this.getDataList()
|