张雄 3 years ago
parent d9d9ce63d4
commit 08a9a425e4

@ -61,4 +61,17 @@ export function getSalesType7(params) {
'content-type': 'application/x-www-form-urlencoded' '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'
}
})
} }

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sEnergyType: 2 sEnergyType: 2,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sEnergyType: 2 sEnergyType: 2
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sEnergyType: 4 sEnergyType: 4,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sEnergyType: 4 sEnergyType: 4
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sEnergyType: 5 sEnergyType: 5,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sEnergyType: 5 sEnergyType: 5
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sEnergyType: 1 sEnergyType: 1,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sEnergyType: 1 sEnergyType: 1
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sEnergyType: 3 sEnergyType: 3,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sEnergyType: 3 sEnergyType: 3
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'mpv' sSpec: 'mpv',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'mpv' sSpec: 'mpv'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'suv' sSpec: 'suv',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'suv' sSpec: 'suv'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'a' sSpec: 'a',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'a' sSpec: 'a'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'a00' sSpec: 'a00',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'a00' sSpec: 'a00'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'a0' sSpec: 'a0',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'a0' sSpec: 'a0'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'c' sSpec: 'c',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'c' sSpec: 'c'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sSpec: 'b' sSpec: 'b',
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sSpec: 'b' sSpec: 'b'
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 1 sPriceType: 1,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 1 sPriceType: 1
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 2 sPriceType: 2,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 2 sPriceType: 2
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 3 sPriceType: 3,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 3 sPriceType: 3
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 4 sPriceType: 4,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 4 sPriceType: 4
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 5 sPriceType: 5,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 5 sPriceType: 5
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,7 +10,7 @@
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" :loading="tableLoading"> <v-table ref="rtable" :columns="columns" :data="tbData" :pagination="pagination" @change="handlerPagnation" :loading="tableLoading">
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button type="primary" @click="onSale(record)"></a-button> <a-button type="primary" @click="onSale(record)"></a-button>
</template> </template>
@ -47,12 +47,15 @@ export default {
sStartTime: '', sStartTime: '',
sEndTime: '', sEndTime: '',
sTimeType: 4, sTimeType: 4,
sPriceType: 6 sPriceType: 6,
iPageIndex: 1,
}, },
opt: {}, opt: {},
// //
pagination: { pagination: {
current: 1,
pageSize: 20, pageSize: 20,
total: 0,
}, },
tbData: [], tbData: [],
tableLoading: false, tableLoading: false,
@ -67,16 +70,19 @@ export default {
title: "车型", title: "车型",
dataIndex: "seriesname", dataIndex: "seriesname",
key: "seriesname", key: "seriesname",
width: 240,
}, },
{ {
title: "能源类型", title: "能源类型",
dataIndex: "energys", dataIndex: "energys",
key: "energys", key: "energys",
width: 240,
}, },
{ {
title: "销量", title: "销量",
dataIndex: "salescount", dataIndex: "salescount",
key: "salescount", key: "salescount",
width: 240,
}, },
{ {
title: "售价(万元)", title: "售价(万元)",
@ -117,6 +123,7 @@ export default {
sPriceType: 6 sPriceType: 6
} }
getCheZhuCarCategory(obj).then(res => { getCheZhuCarCategory(obj).then(res => {
this.pagination.total = res.totalNum
let data = res.data; let data = res.data;
this.tbData = data; this.tbData = data;
let dx = []; let dx = [];
@ -130,6 +137,26 @@ export default {
this.load = false 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() { onSearch() {
this.form.sStartTime = this.selTime[0]; this.form.sStartTime = this.selTime[0];

@ -10,6 +10,11 @@
</div> </div>
<div class="d3"> <div class="d3">
<v-table ref="rtable" :columns="columns" :loading="tableLoad" :data="tbData" :pagination="pagination" @change="handlerPagnation"> <v-table ref="rtable" :columns="columns" :loading="tableLoad" :data="tbData" :pagination="pagination" @change="handlerPagnation">
<template slot="logo" slot-scope="text, record">
<span>
<img class="img-item" :src="record.img" alt="">
</span>
</template>
<template slot="about" slot-scope="text, record"> <template slot="about" slot-scope="text, record">
<a-button @click="onSale(record)"></a-button> <a-button @click="onSale(record)"></a-button>
</template> </template>
@ -49,6 +54,7 @@ export default {
title: "品牌logo", title: "品牌logo",
dataIndex: "img", dataIndex: "img",
key: "img", key: "img",
scopedSlots: { customRender: "logo" },
}, },
{ {
title: "品牌名称", title: "品牌名称",
@ -186,4 +192,11 @@ export default {
padding: 16px; padding: 16px;
} }
} }
.img-item {
background: white;
width: 52px;
height: 52px;
cursor: pointer;
}
</style> </style>

@ -5,6 +5,9 @@
</v-label-div> </v-label-div>
<div class="d2"> <div class="d2">
<v-tab-group :value="tValue" :style="{ background: 'transparent' }" :btns="btnTimes" @change="handlerTime"></v-tab-group> <v-tab-group :value="tValue" :style="{ background: 'transparent' }" :btns="btnTimes" @change="handlerTime"></v-tab-group>
<a-select placeholder="请选择城市" v-if="activeIndex == 1" style="width: 160px;margin-left:20px">
</a-select>
<a-month-picker style="width: 160px;margin-left:20px" v-model="selTime[0]" :disabled-date="disabledDate" valueFormat="YYYY-MM" placeholder="请选择开始日期"></a-month-picker> <a-month-picker style="width: 160px;margin-left:20px" v-model="selTime[0]" :disabled-date="disabledDate" valueFormat="YYYY-MM" placeholder="请选择开始日期"></a-month-picker>
<a-month-picker style="width: 160px;margin-left:40px" v-model="selTime[1]" :disabled-date="disabledDate" valueFormat="YYYY-MM" placeholder="请选择结束日期"></a-month-picker> <a-month-picker style="width: 160px;margin-left:40px" v-model="selTime[1]" :disabled-date="disabledDate" valueFormat="YYYY-MM" placeholder="请选择结束日期"></a-month-picker>
<a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button> <a-button @click="onSearch" style="margin-left: 40px" type="primary">查询</a-button>
@ -44,6 +47,7 @@
import {getSalesType1,getSalesType0} from "@/api/SaleRankCity"; import {getSalesType1,getSalesType0} from "@/api/SaleRankCity";
import {getSalesType6,getSalesType7} from "@/api/SaleRankCity"; import {getSalesType6,getSalesType7} from "@/api/SaleRankCity";
import {getExcleTime} from "@/api/SaleRankCity"; import {getExcleTime} from "@/api/SaleRankCity";
import {getSalesCity} from "@/api/SaleRankCity";
import moment from "moment"; import moment from "moment";
export default { export default {
name: 'CitySale', name: 'CitySale',
@ -153,6 +157,10 @@ export default {
this.tableLoad = false; this.tableLoad = false;
}) })
}); });
getSalesCity(o).then(res => {
let data = res.data;
console.log(data)
})
}, },
// //
handlerTime(activeIndex) { handlerTime(activeIndex) {

Loading…
Cancel
Save