index.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. import ajax from "@/utils/request.js";
  2. /**
  3. * 广告
  4. * @returns {AxjxPromise}
  5. */
  6. export function advertisementApi(data) {
  7. return ajax({
  8. url: "/kuyun_eye_ad/cbd_public/perform",
  9. method: "get",
  10. data,
  11. });
  12. }
  13. /**
  14. * 流入流出
  15. * @returns {AxjxPromise}
  16. */
  17. export function inOutApi(data) {
  18. return ajax({
  19. url: "/api/recent_inout",
  20. method: "get",
  21. data,
  22. });
  23. }
  24. /**
  25. * epg
  26. * @returns {AxjxPromise}
  27. */
  28. export function epgApi(data) {
  29. return ajax({
  30. url: "/api/recent_epgs",
  31. method: "get",
  32. data,
  33. });
  34. }
  35. /**
  36. * 直播实时 分
  37. * @returns {AxjxPromise}
  38. */
  39. export function liveRealDataMinApi(data) {
  40. return ajax({
  41. url: "/api/sec_ratings",
  42. method: "get",
  43. data,
  44. });
  45. }
  46. /**
  47. * 直播实时数据
  48. * @returns {AxjxPromise}
  49. */
  50. export function liveRealDataApi(data) {
  51. return ajax({
  52. url: "/api/min_ratings",
  53. method: "get",
  54. data,
  55. });
  56. }
  57. /**
  58. * 直播实时数据
  59. * @returns {AxjxPromise}
  60. */
  61. export function liveDataApi(data) {
  62. return ajax({
  63. url: "/api/tvlb",
  64. method: "get",
  65. data,
  66. });
  67. }
  68. /**
  69. * 高光数据
  70. * @returns {AxjxPromise}
  71. */
  72. export function heightlightDataApi(data) {
  73. return ajax({
  74. url: "/api/hl/calendar",
  75. method: "get",
  76. data,
  77. });
  78. }
  79. /**
  80. * 高光时刻
  81. * @returns {AxjxPromise}
  82. */
  83. export function heightlightApi(data) {
  84. return ajax({
  85. url: "/api/hl/list-milestone",
  86. method: "get",
  87. data,
  88. });
  89. }
  90. /**
  91. * 节目
  92. * @returns {AxjxPromise}
  93. */
  94. export function list(data) {
  95. return ajax({
  96. url: "/api/proepglb",
  97. method: "get",
  98. data,
  99. });
  100. }
  101. /**
  102. * 节目导出
  103. * @returns {AxjxPromise}
  104. */
  105. export function listcsv(data) {
  106. return ajax({
  107. url: "/api/proepglb/csv",
  108. method: "get",
  109. downCsv: true,
  110. data,
  111. });
  112. }
  113. /**
  114. * 频道
  115. * @returns {AxjxPromise}
  116. */
  117. export function channel(data) {
  118. return ajax({
  119. url: "/api/protvlb",
  120. method: "get",
  121. data,
  122. });
  123. }
  124. /**
  125. * 频道导出
  126. * @returns {AxjxPromise}
  127. */
  128. export function channelcsv(data) {
  129. return ajax({
  130. url: "/api/protvlb/csv",
  131. method: "get",
  132. downCsv: true,
  133. data,
  134. });
  135. }
  136. /**
  137. * 获取精品节目列表
  138. * @props {}
  139. * @returns {AxjxPromise}
  140. */
  141. export function epgList() {
  142. return ajax({
  143. urlType: "url2",
  144. url: "/program",
  145. method: "get",
  146. });
  147. }
  148. /**
  149. * 获取精品节目详情
  150. * @props {}
  151. * @returns {AxjxPromise}
  152. */
  153. export function epgDetail(data) {
  154. return ajax({
  155. urlType: "url2",
  156. url: "/epg-detail",
  157. method: "get",
  158. target: data.target,
  159. data: { epgId: data.epgId },
  160. });
  161. }
  162. /**
  163. * 获取精品节目指标
  164. * @props {}
  165. * @returns {AxjxPromise}
  166. */
  167. export function epgResult(data) {
  168. return ajax({
  169. urlType: "url2",
  170. url: "/epg-result",
  171. method: "get",
  172. data,
  173. });
  174. }
  175. /**
  176. * 自由接口
  177. * @props {url, data}
  178. * @return {AxjxPromise}
  179. */
  180. export function defaultAjax(props) {
  181. return ajax({
  182. urlType: "url3",
  183. url: props.url,
  184. method: "get",
  185. notLoad: props.notLoad,
  186. target: props.target,
  187. data: props.data,
  188. });
  189. }
  190. /**
  191. * 频率列表
  192. * @props {}
  193. * @return {AxjxPromise}
  194. */
  195. export function frequencyList() {
  196. return ajax({
  197. urlType: "url2",
  198. url: "/broadcast/dict",
  199. method: "get",
  200. });
  201. }
  202. /**
  203. * 频率查询
  204. * @props {}
  205. * @return {AxjxPromise}
  206. */
  207. export function PLList(data) {
  208. return ajax({
  209. urlType: "url2",
  210. url: "/broadcast/list",
  211. method: "get",
  212. data,
  213. });
  214. }
  215. // 全国接口
  216. /**
  217. * 频道全天节目
  218. * 表格查询
  219. * @props {}
  220. * @return {AxjxPromise}
  221. */
  222. export function allDayEpg(data) {
  223. return ajax({
  224. urlType: "kuyunApi",
  225. url: "/broadcast/list",
  226. method: "get",
  227. data,
  228. });
  229. }
  230. // 重叠度
  231. /**
  232. * 节目查询
  233. * 图表查询
  234. * @props {}
  235. * @return {AxjxPromise}
  236. */
  237. export function overlapSearchTitle(data) {
  238. return ajax({
  239. urlType: "kuyunApi",
  240. url: "/api/evaluation/eye/search_suggest?" + data,
  241. method: "GET",
  242. });
  243. }
  244. /**
  245. * 节目重叠度
  246. * 图表查询
  247. * @props {}
  248. * @return {AxjxPromise}
  249. */
  250. export function overlap(data) {
  251. return ajax({
  252. urlType: "kuyunApi",
  253. url: "/ProUserOverlapAction",
  254. method: "GET",
  255. data,
  256. });
  257. }
  258. /**
  259. * 广告频道列表
  260. * @props {}
  261. * @return {AxjxPromise}
  262. */
  263. export function adChannelList() {
  264. return ajax({
  265. urlType: "adAPI",
  266. url: "/ad/channel",
  267. method: "GET",
  268. });
  269. }
  270. /**
  271. * 投放分析
  272. * @props {string} channelId
  273. * @props {string} start
  274. * @props {string} end
  275. * @return {AxjxPromise}
  276. */
  277. export function launchList(data) {
  278. return ajax({
  279. urlType: "adAPI",
  280. url: "/ad/day",
  281. method: "POST",
  282. data,
  283. });
  284. }
  285. /**
  286. * 时段分析
  287. * @props {string} channelId
  288. * @props {string} start
  289. * @props {string} end
  290. * @return {AxjxPromise}
  291. */
  292. export function trendList(data) {
  293. return ajax({
  294. urlType: "adAPI",
  295. url: "/ad/hour",
  296. method: "POST",
  297. data,
  298. });
  299. }
  300. /**
  301. * 行业占比
  302. * @props {string} channelId
  303. * @props {string} start
  304. * @props {string} end
  305. * @return {AxjxPromise}
  306. */
  307. export function proportionList(data){
  308. return ajax({
  309. urlType: "adAPI",
  310. url: "/ad/ratio",
  311. method: "POST",
  312. data,
  313. });
  314. }
  315. /**
  316. * 客户投放详情
  317. * @props {string} channelId
  318. * @props {string} start
  319. * @props {string} end
  320. * @return {AxjxPromise}
  321. */
  322. export function customerList(data){
  323. return ajax({
  324. urlType: "adAPI",
  325. url: "/ad/detail",
  326. method: "POST",
  327. data,
  328. });
  329. }
  330. /**
  331. * 优势客户
  332. * @props {string} channelId
  333. * @props {string} start
  334. * @props {string} end
  335. * @return {AxjxPromise}
  336. */
  337. export function advantageousList(data){
  338. return ajax({
  339. urlType: "adAPI",
  340. url: "/ad/youshi",
  341. method: "POST",
  342. data,
  343. });
  344. }
  345. /**
  346. * 潜在客户
  347. * @props {string} channelId
  348. * @props {string} start
  349. * @props {string} end
  350. * @return {AxjxPromise}
  351. */
  352. export function potentialList(data){
  353. return ajax({
  354. urlType: "adAPI",
  355. url: "/ad/qianzai",
  356. method: "POST",
  357. data,
  358. });
  359. }
  360. /**
  361. * 饱和度
  362. * @props {string} channelId
  363. * @props {string} start
  364. * @props {string} end
  365. * @return {AxjxPromise}
  366. */
  367. export function saturationList(data){
  368. return ajax({
  369. urlType: "adAPI",
  370. url: "/ad/saturation",
  371. method: "POST",
  372. data,
  373. });
  374. }