From 2f2979d940f35263e0c62c1f189a8a69a4451a8b Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Tue, 22 Feb 2022 17:26:06 +0800 Subject: [PATCH] zx --- src/api/SaleRankCity/index.js | 64 +++++ .../informationTrend/index.vue | 2 + src/views/SaleRank/BrandInfoDetail/index.vue | 1 - src/views/SaleRank/BrandSale/index.vue | 14 +- src/views/SaleRank/CitySale/index.vue | 219 +++++++++++++++++- src/views/SaleRank/CitySale/tbEvent.js | 0 src/views/SaleRank/HistorySale/index.vue | 20 +- src/views/SaleRank/SeriesInfo/index.vue | 125 +++++++++- src/views/SaleRank/SeriesInfo/opt.js | 111 +++++++++ src/views/SaleRank/SeriesSale/index.vue | 14 +- 10 files changed, 553 insertions(+), 17 deletions(-) create mode 100644 src/api/SaleRankCity/index.js create mode 100644 src/views/SaleRank/CitySale/tbEvent.js create mode 100644 src/views/SaleRank/SeriesInfo/opt.js diff --git a/src/api/SaleRankCity/index.js b/src/api/SaleRankCity/index.js new file mode 100644 index 0000000..672e96c --- /dev/null +++ b/src/api/SaleRankCity/index.js @@ -0,0 +1,64 @@ +import httpService from "@/request" + +// 城市-获取时间 +export function getExcleTime(params) { + let obj = Object.assign({action: 'getExcleTime', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 城市-省份排行 +export function getSalesType1(params) { + let obj = Object.assign({action: 'getSalesType1', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 城市-城市排行 +export function getSalesType0(params) { + let obj = Object.assign({action: 'getSalesType0', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 城市-品牌销量排行 +export function getSalesType6(params) { + let obj = Object.assign({action: 'getSalesType6', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 城市-车型销量排行 +export function getSalesType7(params) { + let obj = Object.assign({action: 'getSalesType7', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} \ No newline at end of file diff --git a/src/views/BrandComparison/informationTrend/index.vue b/src/views/BrandComparison/informationTrend/index.vue index c0f1659..5620360 100644 --- a/src/views/BrandComparison/informationTrend/index.vue +++ b/src/views/BrandComparison/informationTrend/index.vue @@ -104,6 +104,8 @@ export default { } dataI = dataI + 1; }); + console.log(dx); + console.log(ds) this.opt = createOpt(dx, ds, markData); this.load = false; }); diff --git a/src/views/SaleRank/BrandInfoDetail/index.vue b/src/views/SaleRank/BrandInfoDetail/index.vue index 03b94b1..c4b80e3 100644 --- a/src/views/SaleRank/BrandInfoDetail/index.vue +++ b/src/views/SaleRank/BrandInfoDetail/index.vue @@ -1,7 +1,6 @@