|
@@ -217,6 +217,14 @@
|
|
|
@click="handleManage(scope.row)"
|
|
@click="handleManage(scope.row)"
|
|
|
v-hasPermi="['live:console:list']"
|
|
v-hasPermi="['live:console:list']"
|
|
|
>进入直播间</el-button>
|
|
>进入直播间</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-dropdown trigger="hover">
|
|
|
<el-button size="mini" type="text" icon="el-icon-more">
|
|
<el-button size="mini" type="text" icon="el-icon-more">
|
|
|
更多
|
|
更多
|
|
@@ -430,7 +438,7 @@ import {
|
|
|
handleShelfOrUn,
|
|
handleShelfOrUn,
|
|
|
handleDeleteSelected,
|
|
handleDeleteSelected,
|
|
|
finishLive, startLive,
|
|
finishLive, startLive,
|
|
|
- copyLive,
|
|
|
|
|
|
|
+ copyLive,clearLiveCache
|
|
|
} from "@/api/live/live";
|
|
} from "@/api/live/live";
|
|
|
import Editor from '@/components/Editor/wang';
|
|
import Editor from '@/components/Editor/wang';
|
|
|
import user from '@/store/modules/user';
|
|
import user from '@/store/modules/user';
|
|
@@ -942,6 +950,24 @@ export default {
|
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {});
|
|
}).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(() => {});
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|