|
|
@@ -1,47 +1,9 @@
|
|
|
<template>
|
|
|
- <div class="app-container">
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['live:live:add']"
|
|
|
- >新增</el-button
|
|
|
- >
|
|
|
- </el-col>
|
|
|
- <!-- <el-col :span="1.5">-->
|
|
|
- <!-- <el-button-->
|
|
|
- <!-- type="success"-->
|
|
|
- <!-- plain-->
|
|
|
- <!-- icon="el-icon-edit"-->
|
|
|
- <!-- size="mini"-->
|
|
|
- <!-- :disabled="single"-->
|
|
|
- <!-- @click="handleUpdate"-->
|
|
|
- <!-- v-hasPermi="['live:live:edit']"-->
|
|
|
- <!-- >修改</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <!-- <el-col :span="1.5">-->
|
|
|
- <!-- <el-button-->
|
|
|
- <!-- type="warning"-->
|
|
|
- <!-- plain-->
|
|
|
- <!-- icon="el-icon-download"-->
|
|
|
- <!-- size="mini"-->
|
|
|
- <!-- :loading="exportLoading"-->
|
|
|
- <!-- @click="handleExport"-->
|
|
|
- <!-- v-hasPermi="['live:live:export']"-->
|
|
|
- <!-- >导出</el-button>-->
|
|
|
- <!-- </el-col>-->
|
|
|
- <right-toolbar
|
|
|
- :showSearch.sync="showSearch"
|
|
|
- @queryTable="getList"
|
|
|
- ></right-toolbar>
|
|
|
- </el-row>
|
|
|
+ <div class="app-container live-list-page">
|
|
|
<el-form
|
|
|
:model="queryParams"
|
|
|
ref="queryForm"
|
|
|
+ class="live-filter-form filter-container"
|
|
|
:inline="true"
|
|
|
v-show="showSearch"
|
|
|
label-width="68px"
|
|
|
@@ -60,6 +22,7 @@
|
|
|
placeholder="请选择直播状态"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
>
|
|
|
<el-option label="待直播" value="1"></el-option>
|
|
|
<el-option label="直播中" value="2"></el-option>
|
|
|
@@ -81,6 +44,7 @@
|
|
|
placeholder="请选择直播类型"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
>
|
|
|
<el-option label="直播" value="1"></el-option>
|
|
|
<el-option label="录播" value="2"></el-option>
|
|
|
@@ -94,6 +58,7 @@
|
|
|
placeholder="选择起始时间"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<!-- 开始时间-范围结束 -->
|
|
|
@@ -104,6 +69,7 @@
|
|
|
placeholder="选择结束时间"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
:disabled="!queryParams.startTimeS"
|
|
|
></el-date-picker>
|
|
|
</el-form-item>
|
|
|
@@ -113,6 +79,7 @@
|
|
|
placeholder="请选择上下架状态"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
>
|
|
|
<el-option label="上架" value="1"></el-option>
|
|
|
<el-option label="下架" value="2"></el-option>
|
|
|
@@ -125,6 +92,7 @@
|
|
|
placeholder="请选择审核状态"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ popper-append-to-body
|
|
|
>
|
|
|
<el-option label="审核未通过" value="0"></el-option>
|
|
|
<el-option label="审核通过" value="1"></el-option>
|
|
|
@@ -150,6 +118,23 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="mini"
|
|
|
+ @click="handleAdd"
|
|
|
+ v-hasPermi="['live:live:add']"
|
|
|
+ >新增</el-button
|
|
|
+ >
|
|
|
+ </el-col>
|
|
|
+ <right-toolbar
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
+ @queryTable="getList"
|
|
|
+ ></right-toolbar>
|
|
|
+ </el-row>
|
|
|
<div class="selection-toolbar">
|
|
|
<el-checkbox
|
|
|
:indeterminate="isIndeterminate"
|
|
|
@@ -736,12 +721,18 @@ import Editor from "@/components/Editor/wang";
|
|
|
import user from "@/store/modules/user";
|
|
|
import VideoUpload from "@/components/LiveVideoUpload/single.vue";
|
|
|
|
|
|
+const LIVE_TYPE_OPTIONS = [
|
|
|
+ { dictLabel: "直播", dictValue: "1" },
|
|
|
+ { dictLabel: "录播", dictValue: "2" },
|
|
|
+ { dictLabel: "直播回放", dictValue: "3" },
|
|
|
+];
|
|
|
+
|
|
|
export default {
|
|
|
name: "Live",
|
|
|
components: { Editor, VideoUpload },
|
|
|
data() {
|
|
|
return {
|
|
|
- liveTypeDictList: [],
|
|
|
+ liveTypeDictList: [...LIVE_TYPE_OPTIONS],
|
|
|
currentCheck:null,
|
|
|
currentCheckTagIndex:null,
|
|
|
lastCheckTagRow:null,
|
|
|
@@ -880,13 +871,7 @@ export default {
|
|
|
created() {
|
|
|
this.getList();
|
|
|
this.initCompanyDropList();
|
|
|
- this.getDicts("live_mark_type").then((response) => {
|
|
|
- this.markTypeDropList = response.data;
|
|
|
- });
|
|
|
- // 新增:获取直播类型字典
|
|
|
- this.getDicts("live_type").then((response) => {
|
|
|
- this.liveTypeDictList = response.data;
|
|
|
- });
|
|
|
+ this.loadLiveDictOptions();
|
|
|
},
|
|
|
watch: {
|
|
|
"form.startTime": {
|
|
|
@@ -918,6 +903,19 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ loadLiveDictOptions() {
|
|
|
+ this.getDicts("live_mark_type").then((response) => {
|
|
|
+ this.markTypeDropList = response.data || [];
|
|
|
+ }).catch(() => {
|
|
|
+ this.markTypeDropList = [];
|
|
|
+ });
|
|
|
+ this.getDicts("live_type").then((response) => {
|
|
|
+ const dictList = response.data || [];
|
|
|
+ this.liveTypeDictList = dictList.length ? dictList : [...LIVE_TYPE_OPTIONS];
|
|
|
+ }).catch(() => {
|
|
|
+ this.liveTypeDictList = [...LIVE_TYPE_OPTIONS];
|
|
|
+ });
|
|
|
+ },
|
|
|
getQwCorpListByCompanyId(companyId) {
|
|
|
getQwCorpList(companyId)
|
|
|
.then((res) => {
|
|
|
@@ -931,12 +929,10 @@ export default {
|
|
|
initCompanyDropList() {
|
|
|
getCompanyDropList()
|
|
|
.then((res) => {
|
|
|
- this.comapnyDropList = res.data;
|
|
|
- console.log("comapnyDropList");
|
|
|
- console.log(this.comapnyDropList);
|
|
|
+ this.comapnyDropList = res.data || [];
|
|
|
})
|
|
|
- .catch((res) => {
|
|
|
- console.log(res);
|
|
|
+ .catch(() => {
|
|
|
+ this.comapnyDropList = [];
|
|
|
});
|
|
|
},
|
|
|
/**
|