|
@@ -7,13 +7,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot-scope="scope" slot="showInList">
|
|
<template slot-scope="scope" slot="showInList">
|
|
- <el-switch :value="scope.row.showInList" @change="(e) => updateShowStatus(scope.row.id, e)" />
|
|
|
|
|
|
+ <el-switch :value="scope.row.showInList === 1" @change="(e) => updateShowStatus(scope.row.id, e)" />
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template slot-scope="{row}" slot="startup">
|
|
<template slot-scope="{row}" slot="startup">
|
|
<div class="icon-button">
|
|
<div class="icon-button">
|
|
- <el-button type="primary" size="small" @click="startLiveRoom(row.id)" disabled><icon-svg
|
|
|
|
- name="play" /></el-button>
|
|
|
|
|
|
+ <el-button type="primary" size="small" @click="startLiveRoom(row)"><icon-svg name="play" /></el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -80,8 +79,12 @@ export default Vue.extend({
|
|
this.$message.success()
|
|
this.$message.success()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- startLiveRoom({ id }: { id: number }) {
|
|
|
|
- // TODO
|
|
|
|
|
|
+ startLiveRoom({ id, hours }: { id: number, hours: number }) {
|
|
|
|
+ httpx.post(httpx.makeurl("/rooms/startup"), { id, hours }).then(() => {
|
|
|
|
+ this.getDataList()
|
|
|
|
+ //@ts-ignore
|
|
|
|
+ this.$message.success()
|
|
|
|
+ })
|
|
},
|
|
},
|
|
onDisplayDetail({ id, index }: { id: number, index: number }) {
|
|
onDisplayDetail({ id, index }: { id: number, index: number }) {
|
|
this.item = this.dataList[index]
|
|
this.item = this.dataList[index]
|