|
@@ -37,16 +37,16 @@
|
|
<span>{{ scope.row.end_time }}</span>
|
|
<span>{{ scope.row.end_time }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column class-name="status-col" label="主播昵称" align="center">
|
|
|
|
|
|
+ <!--<el-table-column class-name="status-col" label="主播昵称" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.anchor_name }}</span>
|
|
<span>{{ scope.row.anchor_name }}</span>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
- <el-table-column class-name="status-col" label="直播类型" align="center">
|
|
|
|
|
|
+ </el-table-column>-->
|
|
|
|
+ <!--<el-table-column class-name="status-col" label="直播类型" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.type | typeFilter }}</span>
|
|
<span>{{ scope.row.type | typeFilter }}</span>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column>-->
|
|
<el-table-column class-name="status-col" label="状态" align="center">
|
|
<el-table-column class-name="status-col" label="状态" align="center">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<el-tag type="success">
|
|
<el-tag type="success">
|
|
@@ -62,6 +62,11 @@
|
|
查看
|
|
查看
|
|
</el-button>
|
|
</el-button>
|
|
</router-link>
|
|
</router-link>
|
|
|
|
+ <router-link :to="'/live/chatList/'+scope.row.id">
|
|
|
|
+ <el-button type="primary" size="mini" icon="el-icon-edit" style="margin-right: 10px;">
|
|
|
|
+ 查看聊天记录
|
|
|
|
+ </el-button>
|
|
|
|
+ </router-link>
|
|
<!-- <el-button type="primary" size="mini" icon="el-icon-s-check" :disabled="(scope.row.status === 1 || scope.row.status === 3)" @click="handleUpdate(scope)">-->
|
|
<!-- <el-button type="primary" size="mini" icon="el-icon-s-check" :disabled="(scope.row.status === 1 || scope.row.status === 3)" @click="handleUpdate(scope)">-->
|
|
<!-- {{ scope.row.status === 1 || scope.row.status === 3 ? '已处理' : '处理' }}-->
|
|
<!-- {{ scope.row.status === 1 || scope.row.status === 3 ? '已处理' : '处理' }}-->
|
|
<!-- </el-button>-->
|
|
<!-- </el-button>-->
|
|
@@ -78,7 +83,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { fetchList, deleteLive } from '@/api/live'
|
|
|
|
|
|
+import { fetchList } from '@/api/live'
|
|
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
|
|
import waves from '@/directive/waves'
|
|
import waves from '@/directive/waves'
|
|
|
|
|
|
@@ -146,42 +151,12 @@ export default {
|
|
this.listLoading = false
|
|
this.listLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleDelete({ $index, row }) {
|
|
|
|
- console.log(row.id)
|
|
|
|
- this.$confirm('您确定要隐藏吗', '警告', {
|
|
|
|
- confirmButtonText: '是的',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(async() => {
|
|
|
|
- await deleteJoin(row.id)
|
|
|
|
- this.list.splice($index, 1)
|
|
|
|
- this.$message({
|
|
|
|
- type: 'success',
|
|
|
|
- message: '隐藏成功'
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
async handleUpdate({ $index, row }) {
|
|
async handleUpdate({ $index, row }) {
|
|
this.temp = Object.assign({}, row) // copy obj
|
|
this.temp = Object.assign({}, row) // copy obj
|
|
this.dialogFormVisible = true
|
|
this.dialogFormVisible = true
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs['dataForm'].clearValidate()
|
|
this.$refs['dataForm'].clearValidate()
|
|
})
|
|
})
|
|
- },
|
|
|
|
- async updateData() {
|
|
|
|
- const tempData = Object.assign({}, this.temp)
|
|
|
|
- await dealJoin(tempData)
|
|
|
|
- const rs = await fetchJoin(tempData.id)
|
|
|
|
- const index = this.list.findIndex(v => v.id === this.temp.id)
|
|
|
|
- this.list.splice(index, 1, rs.data.info)
|
|
|
|
- this.dialogFormVisible = false
|
|
|
|
- this.$notify({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '更新成功',
|
|
|
|
- type: 'success',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|