|
|
@@ -200,6 +200,12 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="直播ID"
|
|
|
+ align="center"
|
|
|
+ prop="liveId"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
<el-table-column
|
|
|
label="直播封面"
|
|
|
align="center"
|
|
|
@@ -303,6 +309,14 @@
|
|
|
v-hasPermi="['live:console:list']"
|
|
|
>进入直播间</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleClearCache(scope.row)"
|
|
|
+ v-hasPermi="['live:live:edit']"
|
|
|
+ >清理缓存</el-button
|
|
|
+ >
|
|
|
<el-dropdown trigger="hover">
|
|
|
<el-button size="mini" type="text" icon="el-icon-more">
|
|
|
更多
|
|
|
@@ -670,6 +684,7 @@ import {
|
|
|
getCompanyDropList,
|
|
|
getQwCorpList,
|
|
|
getTagsListByCorpId,
|
|
|
+ clearLiveCache,
|
|
|
} from "@/api/live/live";
|
|
|
import Editor from "@/components/Editor/wang";
|
|
|
import user from "@/store/modules/user";
|
|
|
@@ -1299,6 +1314,24 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
+ /** 清理缓存按钮操作 */
|
|
|
+ handleClearCache(row) {
|
|
|
+ this.$confirm("是否确认清理该直播间的缓存?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ clearLiveCache(row.liveId).then((response) => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("缓存清理成功");
|
|
|
+ } else {
|
|
|
+ this.msgError(response.msg || "缓存清理失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
const queryParams = this.queryParams;
|