kuyun.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. import ajax from "@/utils/request.js";
  2. import fileDownload from "@/utils/download.js";
  3. // 全国接口
  4. /**
  5. *
  6. * @param {*} data
  7. * @returns {AxjxPromise}
  8. */
  9. export function selectDate(data) {
  10. return ajax({
  11. urlType: "kuyunApi",
  12. url: "/api/evaluation/eye/performance/absepg_filter",
  13. method: "POST",
  14. data,
  15. });
  16. }
  17. /**
  18. *
  19. * @param {*} data
  20. * @returns {AxjxPromise}
  21. */
  22. export function epgselectDate(data) {
  23. return ajax({
  24. urlType: "kuyunApi",
  25. url: "/api/evaluation/eye/performance/epg_filter",
  26. method: "POST",
  27. data,
  28. });
  29. }
  30. /**
  31. *
  32. * @param {*} data
  33. * @returns {AxjxPromise}
  34. */
  35. export function tvselectDate(data) {
  36. return ajax({
  37. urlType: "kuyunApi",
  38. url: "/api/evaluation/eye/performance/tv_filter",
  39. method: "POST",
  40. data,
  41. });
  42. }
  43. /**
  44. * 频道全天节目
  45. * 表格查询
  46. * @props {}
  47. * @return {AxjxPromise}
  48. */
  49. export function allDayEpg(data) {
  50. return ajax({
  51. urlType: "kuyunApi",
  52. url: "/broadcast/list",
  53. method: "get",
  54. data,
  55. });
  56. }
  57. /**
  58. * 节目查询
  59. * @props kw&ft
  60. * @return {AxjxPromise}
  61. */
  62. export function overlapSearchTitle(data) {
  63. return ajax({
  64. urlType: "kuyunApi",
  65. url: "/api/evaluation/eye/search_suggest?" + data,
  66. method: "GET",
  67. });
  68. }
  69. /**
  70. * 节目查询
  71. * @props kw&ft
  72. * @return {AxjxPromise}
  73. */
  74. export function epgAggregate(data) {
  75. return ajax({
  76. urlType: "kuyunApi",
  77. url: "/api/evaluation/eye/EpgListByCaIdGrowAction?" + data,
  78. method: "GET",
  79. });
  80. }
  81. // 重叠度
  82. /**
  83. * 节目重叠度
  84. * 图表查询
  85. * @props epg_ids=&area_id=
  86. * @return {AxjxPromise}
  87. */
  88. export function overlap(data) {
  89. return ajax({
  90. urlType: "kuyunApi",
  91. url: "/api/evaluation/eye/ProUserOverlapAction?" + data,
  92. method: "GET",
  93. });
  94. }
  95. // 电视剧排播信息及表现(全国)
  96. /**
  97. * 节目排行-同时段频道
  98. * @props epg_id=&area_id=
  99. * @return {AxjxPromise}
  100. */
  101. export function summary(data) {
  102. return ajax({
  103. urlType: "kuyunApi",
  104. url: "/api/evaluation/eye/EpgPeriodLeaderboardTvAction?" + data,
  105. method: "GET",
  106. });
  107. }
  108. /**
  109. * 节目排行-同时段频道导出
  110. * @props epg_id=&area_id=&domain=pro.eye.kuyun.com%2F&download=csv&page_no=1&page_size=10000
  111. */
  112. export function summaryExport(data, fileName) {
  113. fileDownload(
  114. {
  115. urlType: "kuyunApi",
  116. url:
  117. "/api/evaluation/eye/download/api/eye/EpgPeriodLeaderboardTvAction?" +
  118. data,
  119. method: "GET",
  120. },
  121. fileName
  122. );
  123. }
  124. /**
  125. * 节目排行-同时段节目
  126. * @props epg_id=&area_id=
  127. * @return {AxjxPromise}
  128. */
  129. export function program(data) {
  130. return ajax({
  131. urlType: "kuyunApi",
  132. url: "/api/evaluation/eye/EpgPeriodLeaderboardAction?page_no=1&" + data,
  133. method: "GET",
  134. });
  135. }
  136. /**
  137. * 节目排行-同时段节目导出
  138. * @props epg_id=&area_id=&domain=pro.eye.kuyun.com%2F&download=csv&page_no=1&page_size=10000
  139. */
  140. export function programExport(data, fileName) {
  141. fileDownload(
  142. {
  143. urlType: "kuyunApi",
  144. url:
  145. "/api/evaluation/eye/download/api/eye/EpgPeriodLeaderboardAction?" +
  146. data,
  147. method: "GET",
  148. },
  149. fileName
  150. );
  151. }
  152. /**
  153. * 节目排行-同时段多节目
  154. * @props epg_ids=&area_id=
  155. * @return {AxjxPromise}
  156. */
  157. export function programs(data) {
  158. return ajax({
  159. urlType: "kuyunApi",
  160. url: "/api/evaluation/eye/performance/epgkpi/summary?" + data,
  161. method: "GET",
  162. });
  163. }
  164. /**
  165. * 节目排行-同时段节目导出
  166. * @props epg_ids=&area_id=&domain=api.eye.kuyun.com
  167. */
  168. export function programsExport(data, fileName) {
  169. fileDownload(
  170. {
  171. urlType: "kuyunApi",
  172. url:
  173. "/api/evaluation/eye/download/performance/epgkpi/summary/download?" +
  174. data,
  175. method: "GET",
  176. },
  177. fileName
  178. );
  179. }
  180. //
  181. /**
  182. * 抽象节目剧目
  183. * @props epg_ids=&area_id=
  184. * @return {AxjxPromise}
  185. */
  186. export function country(data) {
  187. return ajax({
  188. urlType: "kuyunApi",
  189. url: "/api/evaluation/eye/performance/absepgkpi",
  190. method: "POST",
  191. data,
  192. });
  193. }
  194. /**
  195. * 居图节目剧目
  196. * @props epg_ids=&area_id=
  197. * @return {AxjxPromise}
  198. */
  199. export function epgcountry(data) {
  200. return ajax({
  201. urlType: "kuyunApi",
  202. url: "/api/evaluation/eye/performance/epgkpi",
  203. method: "POST",
  204. data,
  205. });
  206. }
  207. /**
  208. * 单期节目流入流出
  209. * @props epg_ids=&area_id=
  210. * @return {AxjxPromise}
  211. */
  212. export function singleProgram(data) {
  213. return ajax({
  214. urlType: "kuyunApi",
  215. url: "/api/evaluation/eye/EpgInputOutputAction?kpi=tv_ratings&" + data,
  216. method: "GET",
  217. });
  218. }
  219. /**
  220. * 实时节目流入流出
  221. * @props area_id=&tv_id=48
  222. * @return {AxjxPromise}
  223. */
  224. export function realflow(data) {
  225. return ajax({
  226. urlType: "kuyunApi",
  227. url: "/api/evaluation/eye/TimelyTvInputOutputAction?" + data,
  228. method: "GET",
  229. });
  230. }
  231. /**
  232. * 频道分地区
  233. * @props
  234. * @return {AxjxPromise}
  235. */
  236. export function tvcountry(data) {
  237. return ajax({
  238. urlType: "kuyunApi",
  239. url: "/api/evaluation/eye/performance/tvkpi",
  240. method: "POST",
  241. data,
  242. });
  243. }
  244. /**
  245. * 频道分地区
  246. * @props
  247. * @return {AxjxPromise}
  248. */
  249. export function tvvscountry(data) {
  250. return ajax({
  251. urlType: "kuyunApi",
  252. url: "/api/evaluation/eye/TvDailyAVGKPITrendAction?" + data,
  253. method: "get",
  254. });
  255. }
  256. /**
  257. * tvList
  258. * @props
  259. * @return {AxjxPromise}
  260. */
  261. export function tvlist(){
  262. return ajax({
  263. urlType: "kuyunApi",
  264. url: "/api/evaluation/eye/ProChannelListAction",
  265. method: "get",
  266. });
  267. }
  268. /**
  269. * tvList
  270. * @props
  271. * @return {AxjxPromise}
  272. */
  273. export function tvlistexport(data,fileName, call){
  274. return fileDownload({
  275. urlType: "kuyunApi",
  276. url: "/api/evaluation/eye/download/api/eye/TvDailyAVGKPITrendAction?" + data,
  277. method: "get",
  278. },fileName, call);
  279. }
  280. /**
  281. * tvList
  282. * @props
  283. * @return {AxjxPromise}
  284. */
  285. export function tvrange(data){
  286. return ajax({
  287. urlType: "kuyunApi",
  288. url: "/api/evaluation/eye/TvKPILeaderboardAction",
  289. method: "get",
  290. data
  291. });
  292. }
  293. /**
  294. * tvList 导出
  295. * @props
  296. * @return {AxjxPromise}
  297. */
  298. export function tvrangeexport(data,fileName, call){
  299. return fileDownload({
  300. urlType: "kuyunApi",
  301. url: "/api/evaluation/eye/download/api/eye/TvKPILeaderboardAction",
  302. data,
  303. method: "get",
  304. },fileName, call);
  305. }