|
@@ -21,98 +21,8 @@
|
|
|
@select="handleSelect"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="节目">
|
|
|
- <el-popover placement="bottom" :width="500" trigger="click">
|
|
|
- <template #reference>
|
|
|
- <div v-text="form.epg || '请选择节目'" class="el-input__inner" style="height: 33px;line-height: 33px;min-width: 220px;cursor: pointer;"></div>
|
|
|
- </template>
|
|
|
- <el-table :data="gridData" height="250">
|
|
|
- <el-table-column
|
|
|
- width="150"
|
|
|
- property="date"
|
|
|
- label="date"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- width="100"
|
|
|
- property="name"
|
|
|
- label="name"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- width="300"
|
|
|
- property="address"
|
|
|
- label="address"
|
|
|
- ></el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-popover>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="日期">
|
|
|
- <el-date-picker
|
|
|
- v-model="form.date"
|
|
|
- type="daterange"
|
|
|
- :disabled-date="time => disabledDate(time)"
|
|
|
- range-separator="-"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="时间">
|
|
|
- <el-time-picker
|
|
|
- v-model="form.rangeTime"
|
|
|
- is-range
|
|
|
- format="HH:mm"
|
|
|
- range-separator="-"
|
|
|
- start-placeholder="开始时间"
|
|
|
- end-placeholder="结束时间"
|
|
|
- >
|
|
|
- </el-time-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="频道组">
|
|
|
- <el-select
|
|
|
- v-model="form.channelGroup"
|
|
|
- placeholder="请选择频道组"
|
|
|
- @change="channelSelect"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in channelList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- :disabled="item.disabled"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="星期">
|
|
|
- <el-select
|
|
|
- v-model="form.week"
|
|
|
- placeholder="请选择星期"
|
|
|
- @change="a => selectAll(a, 'week', 0)"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in weeks"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- :disabled="item.disabled"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="播放频次">
|
|
|
- <el-select
|
|
|
- v-model="form.frequency"
|
|
|
- @change="a => selectAll(a, 'frequency', 0)"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in firstFrequency"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- :disabled="item.disabled"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <el-form-item label="栏目">
|
|
|
+ <Programcom @change="change" :list="lmList" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="区域">
|
|
|
<el-cascader
|
|
@@ -138,7 +48,7 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <pie-charts :list="ori[radio]" />
|
|
|
+ <pie-charts v-if="radio && ori[radio]" :list="ori[radio]" />
|
|
|
</el-card>
|
|
|
<br />
|
|
|
<el-card class="box-card">
|
|
@@ -151,341 +61,63 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <pie-charts :list="ori[radio1]" />
|
|
|
+ <pie-charts v-if="radio1 && ori[radio1]" :list="ori[radio1]" />
|
|
|
</el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
// @ is an alias to /src
|
|
|
-import { overlapSearchTitle, epgAggregate } from "@/api/kuyun";
|
|
|
+import { overlapSearchTitle, epgAggregate,overlap } from "@/api/kuyun";
|
|
|
+// import { ElNotification } from "element-plus";
|
|
|
|
|
|
+import Programcom from "./components/programs.vue";
|
|
|
import pieCharts from "@/views/Country/components/pieCharts";
|
|
|
import config from "@/config/index";
|
|
|
export default {
|
|
|
name: "Channel",
|
|
|
data() {
|
|
|
return {
|
|
|
- gridData: [
|
|
|
- {
|
|
|
- date: "2016-05-02",
|
|
|
- name: "Jack",
|
|
|
- address: "New York City",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2016-05-04",
|
|
|
- name: "Jack",
|
|
|
- address: "New York City",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2016-05-01",
|
|
|
- name: "Jack",
|
|
|
- address: "New York City",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2016-05-03",
|
|
|
- name: "Jack",
|
|
|
- address: "New York City",
|
|
|
- },
|
|
|
- ],
|
|
|
form: {
|
|
|
- epg: "",
|
|
|
- frequency: 0,
|
|
|
- rangeTime: [],
|
|
|
- channelGroup: 0,
|
|
|
- week: 0,
|
|
|
program: "",
|
|
|
- date: [
|
|
|
- new Date(new Date() - 86400000),
|
|
|
- new Date(new Date() - 86400000),
|
|
|
- ],
|
|
|
+ programLi: [],
|
|
|
region: -1,
|
|
|
},
|
|
|
radio: "all_left",
|
|
|
radio1: "all_right",
|
|
|
- ori: {
|
|
|
- same_right: [
|
|
|
- {
|
|
|
- score: 0.208093763821318,
|
|
|
- name: "警察故事",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 46076,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.144510582010582,
|
|
|
- name: "奔腾年代",
|
|
|
- channel: "宁夏卫视",
|
|
|
- id: 1330438,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.13609825952853052,
|
|
|
- name: "觉醒年代",
|
|
|
- channel: "西藏卫视",
|
|
|
- id: 1334504,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.1331103256753345,
|
|
|
- name: "那年花开月正圆",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1322842,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.1277181392788329,
|
|
|
- name: "壮士出川",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 472088,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.12530191026860865,
|
|
|
- name: "历史转折中的邓小平",
|
|
|
- channel: "云南卫视",
|
|
|
- id: 863290,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.12511619727156245,
|
|
|
- name: "蓝军出击",
|
|
|
- channel: "新疆卫视",
|
|
|
- id: 1333395,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.12110658430805625,
|
|
|
- name: "巡回检察组",
|
|
|
- channel: "山西卫视",
|
|
|
- id: 1334058,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.12048021595510407,
|
|
|
- name: "我的父亲我的兵",
|
|
|
- channel: "广西卫视",
|
|
|
- id: 1324778,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.11879487724692912,
|
|
|
- name: "亮剑",
|
|
|
- channel: "甘肃卫视",
|
|
|
- id: 12710,
|
|
|
- },
|
|
|
- ],
|
|
|
- all_right: [
|
|
|
- {
|
|
|
- score: 0.2782906884726985,
|
|
|
- name: "晚间天气预报",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 20275,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.27806414662084766,
|
|
|
- name: "对话书记",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1331128,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2709613966068355,
|
|
|
- name: "时代楷模发布厅",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 594511,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2593436645396536,
|
|
|
- name: "新闻联播",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 10231,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.25076297049847407,
|
|
|
- name: "今日点击",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 12653,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.22789425706472197,
|
|
|
- name: "追赶超越谱新篇",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1335443,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.21213982050070854,
|
|
|
- name: "敢教日月换新天",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1335271,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.21202879102110528,
|
|
|
- name: "华山论鉴",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1315528,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.208093763821318,
|
|
|
- name: "警察故事",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 46076,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.20121092649957759,
|
|
|
- name: "好管家",
|
|
|
- channel: "陕西卫视",
|
|
|
- id: 1328878,
|
|
|
- },
|
|
|
- ],
|
|
|
- same_left: [
|
|
|
- {
|
|
|
- score: 0.39318401171497985,
|
|
|
- name: "逐梦蓝天",
|
|
|
- channel: "CCTV-1",
|
|
|
- id: 1335585,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.36323093819682495,
|
|
|
- name: "烽火抗大",
|
|
|
- channel: "CCTV-8",
|
|
|
- id: 1335526,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.29344027689952407,
|
|
|
- name: "对你的爱很美",
|
|
|
- channel: "湖南卫视",
|
|
|
- id: 1335471,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2789962392252138,
|
|
|
- name: "大决战",
|
|
|
- channel: "CCTV-8",
|
|
|
- id: 1335329,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.27453655939028854,
|
|
|
- name: "我是真的爱你",
|
|
|
- channel: "北京卫视",
|
|
|
- id: 1335518,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.25666455885778944,
|
|
|
- name: "盛夏晚晴天",
|
|
|
- channel: "湖南卫视",
|
|
|
- id: 44807,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2462142643192332,
|
|
|
- name: "刑警之海外行动",
|
|
|
- channel: "贵州卫视",
|
|
|
- id: 1334460,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2458814523912537,
|
|
|
- name: "妈妈在等你",
|
|
|
- channel: "江西卫视",
|
|
|
- id: 1334818,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.24172130329150998,
|
|
|
- name: "亮剑",
|
|
|
- channel: "甘肃卫视",
|
|
|
- id: 12710,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.23110460278896397,
|
|
|
- name: "我是真的爱你",
|
|
|
- channel: "东方卫视",
|
|
|
- id: 1335518,
|
|
|
- },
|
|
|
- ],
|
|
|
- all_left: [
|
|
|
- {
|
|
|
- score: 0.39318401171497985,
|
|
|
- name: "逐梦蓝天",
|
|
|
- channel: "CCTV-1",
|
|
|
- id: 1335585,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.36323093819682495,
|
|
|
- name: "烽火抗大",
|
|
|
- channel: "CCTV-8",
|
|
|
- id: 1335526,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.35228142576629945,
|
|
|
- name: "新闻直播间",
|
|
|
- channel: "CCTV-新闻",
|
|
|
- id: 12160,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.333344427064266,
|
|
|
- name: "中国新闻",
|
|
|
- channel: "CCTV-4",
|
|
|
- id: 11221,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.33171364861716646,
|
|
|
- name: "新闻联播",
|
|
|
- channel: "CCTV-1",
|
|
|
- id: 10231,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.31690351782207876,
|
|
|
- name:
|
|
|
- "东京奥运会体操比赛东京奥运会体操比赛东京奥运会体操比赛东京奥运会体操比赛",
|
|
|
- channel: "CCTV-5",
|
|
|
- id: 1335563,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.29344027689952407,
|
|
|
- name: "对你的爱很美",
|
|
|
- channel: "湖南卫视",
|
|
|
- id: 1335471,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2839218557593104,
|
|
|
- name: "寰宇视野",
|
|
|
- channel: "CCTV-纪录",
|
|
|
- id: 11160,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.2789962392252138,
|
|
|
- name: "大决战",
|
|
|
- channel: "CCTV-8",
|
|
|
- id: 1335329,
|
|
|
- },
|
|
|
- {
|
|
|
- score: 0.27453655939028854,
|
|
|
- name: "我是真的爱你",
|
|
|
- channel: "北京卫视",
|
|
|
- id: 1335518,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ lmList: [],
|
|
|
+ ori: {},
|
|
|
};
|
|
|
},
|
|
|
mounted() {},
|
|
|
computed: {
|
|
|
- channelList() {
|
|
|
- return config.channelList;
|
|
|
- },
|
|
|
region() {
|
|
|
return config.region;
|
|
|
},
|
|
|
- firstFrequency() {
|
|
|
- return config.frequency;
|
|
|
- },
|
|
|
- weeks() {
|
|
|
- const weeks = [
|
|
|
- {
|
|
|
- label: "全部",
|
|
|
- value: 0,
|
|
|
- },
|
|
|
- ...JSON.parse(JSON.stringify(config.weeks)),
|
|
|
- ];
|
|
|
- return weeks;
|
|
|
- },
|
|
|
},
|
|
|
methods: {
|
|
|
- onExport() {},
|
|
|
- disabledDate(time) {
|
|
|
- return time.getTime() > Date.now() - 86400000;
|
|
|
+ change(li) {
|
|
|
+ this.form.programLi = li || [];
|
|
|
},
|
|
|
- onSubmit() {},
|
|
|
- channelSelect(a) {
|
|
|
- this.selectAll(a, "channelGroup", 0);
|
|
|
+ onExport() {},
|
|
|
+ onSubmit() {
|
|
|
+ let programLi = this.form.programLi || [{}];
|
|
|
+ console.log(programLi[0])
|
|
|
+ // if (programLi.length !== 1)
|
|
|
+ // return ElNotification({
|
|
|
+ // message: "请选择一个节目",
|
|
|
+ // title: "Warning",
|
|
|
+ // type: "warning",
|
|
|
+ // });
|
|
|
+ overlap('epg_ids=' + (programLi[0] ? programLi[0].epg_id : "") + '&area_id=' + this.form.region).then(r=>{
|
|
|
+ console.log(r)
|
|
|
+ this.ori = {
|
|
|
+ same_right: r.same_right || [],
|
|
|
+ all_right: r.all_right || [],
|
|
|
+ same_left: r.same_left || [],
|
|
|
+ all_left: r.all_left || [],
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
regionSelect(a) {
|
|
|
this.selectAll(a, "region", -1);
|
|
@@ -502,7 +134,7 @@ export default {
|
|
|
},
|
|
|
handleSelect(item) {
|
|
|
epgAggregate("ca_id=" + item.id).then(res => {
|
|
|
- console.log(res);
|
|
|
+ this.lmList = res || [];
|
|
|
});
|
|
|
},
|
|
|
querySearchAsync(queryString, cb) {
|
|
@@ -521,7 +153,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
},
|
|
|
- components: { pieCharts },
|
|
|
+ components: { pieCharts, Programcom },
|
|
|
};
|
|
|
</script>
|
|
|
|