From 08a9a425e42566f334ac04ce4171e71fca5d44a3 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Mon, 28 Feb 2022 14:49:10 +0800 Subject: [PATCH] zx --- src/api/SaleRankCity/index.js | 13 ++++++++ .../SaleRank/AllEnergy/EnergyCY/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllEnergy/EnergyNE/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllEnergy/EnergyQH/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllEnergy/EnergyQY/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllEnergy/EnergyYDH/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/MPVCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/SUVCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/jcCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/wxCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/xxCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/zdxCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllLevel/zxCar/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllPrice/Price10/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllPrice/Price1015/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllPrice/Price1525/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllPrice/Price2535/index.vue | 31 +++++++++++++++++-- .../SaleRank/AllPrice/Price3550/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/AllPrice/Price50/index.vue | 31 +++++++++++++++++-- src/views/SaleRank/BrandSale/index.vue | 13 ++++++++ src/views/SaleRank/CitySale/index.vue | 8 +++++ 21 files changed, 556 insertions(+), 36 deletions(-) diff --git a/src/api/SaleRankCity/index.js b/src/api/SaleRankCity/index.js index 672e96c..00bf87f 100644 --- a/src/api/SaleRankCity/index.js +++ b/src/api/SaleRankCity/index.js @@ -61,4 +61,17 @@ export function getSalesType7(params) { 'content-type': 'application/x-www-form-urlencoded' } }) +} + +// 城市-城市销量中的城市数据 +export function getSalesCity(params) { + let obj = Object.assign({action: 'getSalesCity', 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/SaleRank/AllEnergy/EnergyCY/index.vue b/src/views/SaleRank/AllEnergy/EnergyCY/index.vue index 705a59e..ad5cfa8 100644 --- a/src/views/SaleRank/AllEnergy/EnergyCY/index.vue +++ b/src/views/SaleRank/AllEnergy/EnergyCY/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sEnergyType: 2 + sEnergyType: 2, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sEnergyType: 2 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllEnergy/EnergyNE/index.vue b/src/views/SaleRank/AllEnergy/EnergyNE/index.vue index 6c5be3a..7583366 100644 --- a/src/views/SaleRank/AllEnergy/EnergyNE/index.vue +++ b/src/views/SaleRank/AllEnergy/EnergyNE/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sEnergyType: 4 + sEnergyType: 4, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sEnergyType: 4 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllEnergy/EnergyQH/index.vue b/src/views/SaleRank/AllEnergy/EnergyQH/index.vue index 80eaa66..44a6e94 100644 --- a/src/views/SaleRank/AllEnergy/EnergyQH/index.vue +++ b/src/views/SaleRank/AllEnergy/EnergyQH/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sEnergyType: 5 + sEnergyType: 5, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sEnergyType: 5 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllEnergy/EnergyQY/index.vue b/src/views/SaleRank/AllEnergy/EnergyQY/index.vue index c0180d3..186b4fa 100644 --- a/src/views/SaleRank/AllEnergy/EnergyQY/index.vue +++ b/src/views/SaleRank/AllEnergy/EnergyQY/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sEnergyType: 1 + sEnergyType: 1, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sEnergyType: 1 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllEnergy/EnergyYDH/index.vue b/src/views/SaleRank/AllEnergy/EnergyYDH/index.vue index c87f7a2..9156ba3 100644 --- a/src/views/SaleRank/AllEnergy/EnergyYDH/index.vue +++ b/src/views/SaleRank/AllEnergy/EnergyYDH/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sEnergyType: 3 + sEnergyType: 3, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sEnergyType: 3 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/MPVCar/index.vue b/src/views/SaleRank/AllLevel/MPVCar/index.vue index 0b83e13..1377d83 100644 --- a/src/views/SaleRank/AllLevel/MPVCar/index.vue +++ b/src/views/SaleRank/AllLevel/MPVCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'mpv' + sSpec: 'mpv', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'mpv' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/SUVCar/index.vue b/src/views/SaleRank/AllLevel/SUVCar/index.vue index 1c4b813..ce5e4f0 100644 --- a/src/views/SaleRank/AllLevel/SUVCar/index.vue +++ b/src/views/SaleRank/AllLevel/SUVCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'suv' + sSpec: 'suv', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'suv' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/jcCar/index.vue b/src/views/SaleRank/AllLevel/jcCar/index.vue index 35c29c9..b521320 100644 --- a/src/views/SaleRank/AllLevel/jcCar/index.vue +++ b/src/views/SaleRank/AllLevel/jcCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'a' + sSpec: 'a', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'a' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/wxCar/index.vue b/src/views/SaleRank/AllLevel/wxCar/index.vue index 8d18bef..966732d 100644 --- a/src/views/SaleRank/AllLevel/wxCar/index.vue +++ b/src/views/SaleRank/AllLevel/wxCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'a00' + sSpec: 'a00', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'a00' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/xxCar/index.vue b/src/views/SaleRank/AllLevel/xxCar/index.vue index 1b0826c..d8333f5 100644 --- a/src/views/SaleRank/AllLevel/xxCar/index.vue +++ b/src/views/SaleRank/AllLevel/xxCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'a0' + sSpec: 'a0', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'a0' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/zdxCar/index.vue b/src/views/SaleRank/AllLevel/zdxCar/index.vue index daf7f8e..e84b023 100644 --- a/src/views/SaleRank/AllLevel/zdxCar/index.vue +++ b/src/views/SaleRank/AllLevel/zdxCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'c' + sSpec: 'c', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'c' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllLevel/zxCar/index.vue b/src/views/SaleRank/AllLevel/zxCar/index.vue index 872e3df..466f81f 100644 --- a/src/views/SaleRank/AllLevel/zxCar/index.vue +++ b/src/views/SaleRank/AllLevel/zxCar/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sSpec: 'b' + sSpec: 'b', + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240 }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240 }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240 }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sSpec: 'b' } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price10/index.vue b/src/views/SaleRank/AllPrice/Price10/index.vue index 76771aa..a6076e0 100644 --- a/src/views/SaleRank/AllPrice/Price10/index.vue +++ b/src/views/SaleRank/AllPrice/Price10/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 1 + sPriceType: 1, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 1 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price1015/index.vue b/src/views/SaleRank/AllPrice/Price1015/index.vue index 89be210..033c80e 100644 --- a/src/views/SaleRank/AllPrice/Price1015/index.vue +++ b/src/views/SaleRank/AllPrice/Price1015/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 2 + sPriceType: 2, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 2 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price1525/index.vue b/src/views/SaleRank/AllPrice/Price1525/index.vue index 209fbf2..cc4fb26 100644 --- a/src/views/SaleRank/AllPrice/Price1525/index.vue +++ b/src/views/SaleRank/AllPrice/Price1525/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 3 + sPriceType: 3, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 3 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price2535/index.vue b/src/views/SaleRank/AllPrice/Price2535/index.vue index f7f2da2..ced9b97 100644 --- a/src/views/SaleRank/AllPrice/Price2535/index.vue +++ b/src/views/SaleRank/AllPrice/Price2535/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 4 + sPriceType: 4, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 4 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price3550/index.vue b/src/views/SaleRank/AllPrice/Price3550/index.vue index ee86a05..f93c2f6 100644 --- a/src/views/SaleRank/AllPrice/Price3550/index.vue +++ b/src/views/SaleRank/AllPrice/Price3550/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 5 + sPriceType: 5, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 5 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/AllPrice/Price50/index.vue b/src/views/SaleRank/AllPrice/Price50/index.vue index ca70c09..27b047e 100644 --- a/src/views/SaleRank/AllPrice/Price50/index.vue +++ b/src/views/SaleRank/AllPrice/Price50/index.vue @@ -10,7 +10,7 @@ 查询
- + @@ -47,12 +47,15 @@ export default { sStartTime: '', sEndTime: '', sTimeType: 4, - sPriceType: 6 + sPriceType: 6, + iPageIndex: 1, }, opt: {}, //表格 pagination: { + current: 1, pageSize: 20, + total: 0, }, tbData: [], tableLoading: false, @@ -67,16 +70,19 @@ export default { title: "车型", dataIndex: "seriesname", key: "seriesname", + width: 240, }, { title: "能源类型", dataIndex: "energys", key: "energys", + width: 240, }, { title: "销量", dataIndex: "salescount", key: "salescount", + width: 240, }, { title: "售价(万元)", @@ -117,6 +123,7 @@ export default { sPriceType: 6 } getCheZhuCarCategory(obj).then(res => { + this.pagination.total = res.totalNum let data = res.data; this.tbData = data; let dx = []; @@ -130,6 +137,26 @@ export default { this.load = false }); }, + //改变页面数据 + handlerPagnation(page) { + this.tableLoad = true; + let cur = page.current; + this.pagination.current = cur; + this.form.iPageIndex = cur; + getCheZhuCarCategory(this.form).then(res => { + let data = res.data; + this.pagination.total = res.totalNum + this.tbData = data; + let dx = []; + let ds = []; + data.forEach(ele => { + dx.push(ele.seriesname); + ds.push(ele.salescount); + }) + this.opt = createOpt(dx,ds); + this.tableLoad = false + }) + }, //查询 onSearch() { this.form.sStartTime = this.selTime[0]; diff --git a/src/views/SaleRank/BrandSale/index.vue b/src/views/SaleRank/BrandSale/index.vue index 3cf8778..faefa9d 100644 --- a/src/views/SaleRank/BrandSale/index.vue +++ b/src/views/SaleRank/BrandSale/index.vue @@ -10,6 +10,11 @@
+ @@ -49,6 +54,7 @@ export default { title: "品牌logo", dataIndex: "img", key: "img", + scopedSlots: { customRender: "logo" }, }, { title: "品牌名称", @@ -186,4 +192,11 @@ export default { padding: 16px; } } + +.img-item { + background: white; + width: 52px; + height: 52px; + cursor: pointer; +} \ No newline at end of file diff --git a/src/views/SaleRank/CitySale/index.vue b/src/views/SaleRank/CitySale/index.vue index 114e72f..b52e41d 100644 --- a/src/views/SaleRank/CitySale/index.vue +++ b/src/views/SaleRank/CitySale/index.vue @@ -5,6 +5,9 @@
+ + + 查询 @@ -44,6 +47,7 @@ import {getSalesType1,getSalesType0} from "@/api/SaleRankCity"; import {getSalesType6,getSalesType7} from "@/api/SaleRankCity"; import {getExcleTime} from "@/api/SaleRankCity"; +import {getSalesCity} from "@/api/SaleRankCity"; import moment from "moment"; export default { name: 'CitySale', @@ -153,6 +157,10 @@ export default { this.tableLoad = false; }) }); + getSalesCity(o).then(res => { + let data = res.data; + console.log(data) + }) }, //切换类型 handlerTime(activeIndex) {