diff --git a/src/api/SaleRank/index.js b/src/api/SaleRank/index.js index e00e9ab..82eab08 100644 --- a/src/api/SaleRank/index.js +++ b/src/api/SaleRank/index.js @@ -78,6 +78,32 @@ export function getCheZhuCarSpecidRankingAll(params) { }) } +// 按级别-汽车级别销售排行榜-图表 +export function getCheZhuCarSpecidChart(params) { + let obj = Object.assign({action: 'getCheZhuCarSpecidChart', sType: 'Marketing'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 按级别-汽车级别销售排行榜-各级别/更多 +export function getCheZhuCarCategory(params) { + let obj = Object.assign({action: 'getCheZhuCarCategory', sType: 'Marketing'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + // 按价格-汽车价格销售排行榜 export function getCheZhuCarPriceRankingAll(params) { let obj = Object.assign({action: 'getCheZhuCarPriceRankingAll', sType: 'Marketing'}, params) @@ -91,6 +117,19 @@ export function getCheZhuCarPriceRankingAll(params) { }) } +// 按价格-汽车价格销售排行榜-图表 +export function getCheZhuCarPriceChart(params) { + let obj = Object.assign({action: 'getCheZhuCarPriceChart', sType: 'Marketing'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + // 按能源-各汽车能源类型销售排行榜 export function getCheZhuCarEnergyRankingAll(params) { let obj = Object.assign({action: 'getCheZhuCarEnergyRankingAll', sType: 'Marketing'}, params) @@ -104,6 +143,19 @@ export function getCheZhuCarEnergyRankingAll(params) { }) } +// 按能源-各汽车能源类型销售排行榜-图表 +export function getCheZhuCarEnergyChart(params) { + let obj = Object.assign({action: 'getCheZhuCarEnergyChart', sType: 'Marketing'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + // 汽车品牌销量-汽车品牌销量排行榜列表 export function getCheZhuCarBrandRanking(params) { let obj = Object.assign({action: 'getCheZhuCarBrandRanking', sType: 'Marketing'}, params) @@ -115,4 +167,30 @@ export function getCheZhuCarBrandRanking(params) { 'content-type': 'application/x-www-form-urlencoded' } }) +} + +// 车型销量-车型销量排行榜列表 +export function getCheZhuCarSeriesRanking(params) { + let obj = Object.assign({action: 'getCheZhuCarSeriesRanking', sType: 'Marketing'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 车型销量-车型销量排行榜列表-点击销量 +export function getCheZhuCarSeriesList(params) { + let obj = Object.assign({action: 'getCheZhuCarSeriesList', sType: 'Marketing'}, 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/router/index.js b/src/router/index.js index 4374818..b47ffe5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -221,6 +221,15 @@ const router = [ path: 'aEnergy', //所有能源 component: resolve => require(['@/views/SaleRank/AllEnergy/index.vue'], resolve), }, + { + path: 'level1', //微型车 + component: resolve => require(['@/views/SaleRank/AllLevel/wxCar/index.vue'], resolve), + }, + //// + { + path: 'seriesInfo', //微型车 + component: resolve => require(['@/views/SaleRank/SeriesInfo/index.vue'], resolve), + }, ] }, { diff --git a/src/styles/antd.less b/src/styles/antd.less index b485d76..d143f67 100644 --- a/src/styles/antd.less +++ b/src/styles/antd.less @@ -271,11 +271,11 @@ li.ant-calendar-time-picker-select-option-selected { top: 50px; } .ant-modal-content { - background-color:#010B19 !important; + background-color: rgb(18, 35, 65) !important; box-shadow: 0px 0px 10px 0px #3373CC !important; } .ant-modal-header { - background-color:#010B19 !important; + background-color:rgb(18, 35, 65) !important; border-bottom: 1px solid #3373CC !important; } .ant-modal-footer { diff --git a/src/views/SaleRank/AllEnergy/index.vue b/src/views/SaleRank/AllEnergy/index.vue index aa1667a..da1148e 100644 --- a/src/views/SaleRank/AllEnergy/index.vue +++ b/src/views/SaleRank/AllEnergy/index.vue @@ -1,10 +1,16 @@ \ No newline at end of file diff --git a/src/views/SaleRank/AllEnergy/opt.js b/src/views/SaleRank/AllEnergy/opt.js new file mode 100644 index 0000000..245fdc6 --- /dev/null +++ b/src/views/SaleRank/AllEnergy/opt.js @@ -0,0 +1,111 @@ +/* + * @Author: your name + * @Date: 2021-10-12 09:12:13 + * @LastEditTime: 2021-11-02 18:03:08 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/brandTop/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx,ds) { + return { + grid: { + top: "16px", + left: "16px", + right: "28px", + bottom: "16px", + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function (params) { + var result = ""; + var dotHtml = + ''; + params.forEach(function (item) { + result += item.axisValue + "
" + dotHtml + item.data; + }); + return result; + }, + }, + xAxis: { + type: "category", + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + data: dx, + }, + yAxis: { + type: "value", + axisLine: { + show: false, + lineStyle: { + color: "#FFF", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + name: "2001", + data: ds, + type: "bar", + barWidth: 24, + itemStyle: { + normal: { + label: { + show: true, //开启显示 + position: 'top', //在上方显示 + textStyle: { //数值样式 + color: '#fff', + fontSize: 14 + } + }, + color: new echarts.graphic.LinearGradient( + 0, + 1, + 0, + 0, + [ + { + offset: 0, + color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 + }, + { + offset: 1, + color: "#3373CC", // 100% 处的颜色#3373CC + }, + ], + false + ), + }, + }, + }, + ], + } +} diff --git a/src/views/SaleRank/AllLevel/index.vue b/src/views/SaleRank/AllLevel/index.vue index e274459..b5e288e 100644 --- a/src/views/SaleRank/AllLevel/index.vue +++ b/src/views/SaleRank/AllLevel/index.vue @@ -1,10 +1,16 @@ + + \ No newline at end of file diff --git a/src/views/SaleRank/AllLevel/wxCar/opt.js b/src/views/SaleRank/AllLevel/wxCar/opt.js new file mode 100644 index 0000000..245fdc6 --- /dev/null +++ b/src/views/SaleRank/AllLevel/wxCar/opt.js @@ -0,0 +1,111 @@ +/* + * @Author: your name + * @Date: 2021-10-12 09:12:13 + * @LastEditTime: 2021-11-02 18:03:08 + * @LastEditors: Please set LastEditors + * @Description: In User Settings Edit + * @FilePath: /data-show/src/views/BrandInsight/brandTop/opt.js + */ +import * as echarts from "echarts"; +import { bigNumberTransform } from "@/utils/gol/dataTool" +export default function createOpt(dx,ds) { + return { + grid: { + top: "16px", + left: "16px", + right: "28px", + bottom: "16px", + containLabel: true, + }, + tooltip: { + trigger: "axis", + backgroundColor: "#08182F", + color: "#fff", + borderColor: "#3373CC", + textStyle: { + color: "#fff", //设置文字颜色 + }, + extraCssText: "box-shadow: 0px 0px 10px 0px #3373CC;", + formatter: function (params) { + var result = ""; + var dotHtml = + ''; + params.forEach(function (item) { + result += item.axisValue + "
" + dotHtml + item.data; + }); + return result; + }, + }, + xAxis: { + type: "category", + axisTick: { + show: false, + }, + axisLine: { + show: false, + lineStyle: { + color: "#fff", + }, + }, + data: dx, + }, + yAxis: { + type: "value", + axisLine: { + show: false, + lineStyle: { + color: "#FFF", + }, + }, + axisLabel: { + formatter: (value) => { + let str = bigNumberTransform(value); + return str; + } + }, + splitLine: { + lineStyle: { + type: "dashed", // y轴分割线类型 + color: "#012b4b", + }, + }, + }, + series: [ + { + name: "2001", + data: ds, + type: "bar", + barWidth: 24, + itemStyle: { + normal: { + label: { + show: true, //开启显示 + position: 'top', //在上方显示 + textStyle: { //数值样式 + color: '#fff', + fontSize: 14 + } + }, + color: new echarts.graphic.LinearGradient( + 0, + 1, + 0, + 0, + [ + { + offset: 0, + color: "rgba(91, 157, 249, 0)", // 0% 处的颜色 + }, + { + offset: 1, + color: "#3373CC", // 100% 处的颜色#3373CC + }, + ], + false + ), + }, + }, + }, + ], + } +} diff --git a/src/views/SaleRank/AllPrice/index.vue b/src/views/SaleRank/AllPrice/index.vue index 69efe4a..034702f 100644 --- a/src/views/SaleRank/AllPrice/index.vue +++ b/src/views/SaleRank/AllPrice/index.vue @@ -1,10 +1,16 @@ @@ -48,5 +121,13 @@ export default { width: 1552px; // height: 460px; border: 2px solid #0f2a4d; + .d2 { + display: flex; + justify-content: flex-start; + padding: 16px; + } + .d3 { + padding: 16px; + } } \ No newline at end of file diff --git a/src/views/SaleRank/SeriesInfo/index.vue b/src/views/SaleRank/SeriesInfo/index.vue new file mode 100644 index 0000000..5bd0ef2 --- /dev/null +++ b/src/views/SaleRank/SeriesInfo/index.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/src/views/SaleRank/SeriesSale/index.vue b/src/views/SaleRank/SeriesSale/index.vue index c4314fe..b136d32 100644 --- a/src/views/SaleRank/SeriesSale/index.vue +++ b/src/views/SaleRank/SeriesSale/index.vue @@ -1,22 +1,159 @@ @@ -26,5 +163,13 @@ export default { width: 1552px; // height: 460px; border: 2px solid #0f2a4d; + .d2 { + display: flex; + justify-content: flex-start; + padding: 16px; + } + .d3 { + padding: 16px; + } } \ No newline at end of file