123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- import ajax from "@/utils/request.js";
- import fileDownload from "@/utils/download.js";
- // 全国接口
- /**
- *
- * @param {*} data
- * @returns {AxjxPromise}
- */
- export function selectDate(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/absepg_filter",
- method: "POST",
- data,
- });
- }
- /**
- *
- * @param {*} data
- * @returns {AxjxPromise}
- */
- export function epgselectDate(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/epg_filter",
- method: "POST",
- data,
- });
- }
- /**
- *
- * @param {*} data
- * @returns {AxjxPromise}
- */
- export function tvselectDate(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/tv_filter",
- method: "POST",
- data,
- });
- }
- /**
- * 频道全天节目
- * 表格查询
- * @props {}
- * @return {AxjxPromise}
- */
- export function allDayEpg(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/broadcast/list",
- method: "get",
- data,
- });
- }
- /**
- * 节目查询
- * @props kw&ft
- * @return {AxjxPromise}
- */
- export function overlapSearchTitle(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/search_suggest?" + data,
- method: "GET",
- });
- }
- /**
- * 节目查询
- * @props kw&ft
- * @return {AxjxPromise}
- */
- export function epgAggregate(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/EpgListByCaIdGrowAction?" + data,
- method: "GET",
- });
- }
- // 重叠度
- /**
- * 节目重叠度
- * 图表查询
- * @props epg_ids=&area_id=
- * @return {AxjxPromise}
- */
- export function overlap(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/ProUserOverlapAction?" + data,
- method: "GET",
- });
- }
- // 电视剧排播信息及表现(全国)
- /**
- * 节目排行-同时段频道
- * @props epg_id=&area_id=
- * @return {AxjxPromise}
- */
- export function summary(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/EpgPeriodLeaderboardTvAction?" + data,
- method: "GET",
- });
- }
- /**
- * 节目排行-同时段频道导出
- * @props epg_id=&area_id=&domain=pro.eye.kuyun.com%2F&download=csv&page_no=1&page_size=10000
- */
- export function summaryExport(data, fileName) {
- fileDownload(
- {
- urlType: "kuyunApi",
- url:
- "/api/evaluation/eye/download/api/eye/EpgPeriodLeaderboardTvAction?" +
- data,
- method: "GET",
- },
- fileName
- );
- }
- /**
- * 节目排行-同时段节目
- * @props epg_id=&area_id=
- * @return {AxjxPromise}
- */
- export function program(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/EpgPeriodLeaderboardAction?page_no=1&" + data,
- method: "GET",
- });
- }
- /**
- * 节目排行-同时段节目导出
- * @props epg_id=&area_id=&domain=pro.eye.kuyun.com%2F&download=csv&page_no=1&page_size=10000
- */
- export function programExport(data, fileName) {
- fileDownload(
- {
- urlType: "kuyunApi",
- url:
- "/api/evaluation/eye/download/api/eye/EpgPeriodLeaderboardAction?" +
- data,
- method: "GET",
- },
- fileName
- );
- }
- /**
- * 节目排行-同时段多节目
- * @props epg_ids=&area_id=
- * @return {AxjxPromise}
- */
- export function programs(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/epgkpi/summary?" + data,
- method: "GET",
- });
- }
- /**
- * 节目排行-同时段节目导出
- * @props epg_ids=&area_id=&domain=api.eye.kuyun.com
- */
- export function programsExport(data, fileName) {
- fileDownload(
- {
- urlType: "kuyunApi",
- url:
- "/api/evaluation/eye/download/performance/epgkpi/summary/download?" +
- data,
- method: "GET",
- },
- fileName
- );
- }
- //
- /**
- * 抽象节目剧目
- * @props epg_ids=&area_id=
- * @return {AxjxPromise}
- */
- export function country(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/absepgkpi",
- method: "POST",
- data,
- });
- }
- /**
- * 居图节目剧目
- * @props epg_ids=&area_id=
- * @return {AxjxPromise}
- */
- export function epgcountry(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/epgkpi",
- method: "POST",
- data,
- });
- }
- /**
- * 单期节目流入流出
- * @props epg_ids=&area_id=
- * @return {AxjxPromise}
- */
- export function singleProgram(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/EpgInputOutputAction?kpi=tv_ratings&" + data,
- method: "GET",
- });
- }
- /**
- * 实时节目流入流出
- * @props area_id=&tv_id=48
- * @return {AxjxPromise}
- */
- export function realflow(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/TimelyTvInputOutputAction?" + data,
- method: "GET",
- });
- }
- /**
- * 频道分地区
- * @props
- * @return {AxjxPromise}
- */
- export function tvcountry(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/performance/tvkpi",
- method: "POST",
- data,
- });
- }
- /**
- * 频道分地区
- * @props
- * @return {AxjxPromise}
- */
- export function tvvscountry(data) {
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/TvDailyAVGKPITrendAction?" + data,
- method: "get",
- });
- }
- /**
- * tvList
- * @props
- * @return {AxjxPromise}
- */
- export function tvlist(){
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/ProChannelListAction",
- method: "get",
- });
- }
- /**
- * tvList
- * @props
- * @return {AxjxPromise}
- */
- export function tvlistexport(data,fileName, call){
- return fileDownload({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/download/api/eye/TvDailyAVGKPITrendAction?" + data,
- method: "get",
- },fileName, call);
- }
- /**
- * tvList
- * @props
- * @return {AxjxPromise}
- */
- export function tvrange(data){
- return ajax({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/TvKPILeaderboardAction",
- method: "get",
- data
- });
- }
- /**
- * tvList 导出
- * @props
- * @return {AxjxPromise}
- */
- export function tvrangeexport(data,fileName, call){
- return fileDownload({
- urlType: "kuyunApi",
- url: "/api/evaluation/eye/download/api/eye/TvKPILeaderboardAction",
- data,
- method: "get",
- },fileName, call);
- }
|