You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

import { getUserBrand} from "@/api/comm";
import {getUserSeriesName} from "@/api/comm";
import {getSpec,getPrice,getEnergy} from "@/api/comm";
export default {
initData() {
this.form.token = this.getToken;
let obj = Object.assign({},this.form)
getUserBrand(obj).then(res => {
let data = res.data;
this.brandList = data;
})
getSpec(obj).then(res => {
let data = res.data;
this.specList = data
})
getPrice(obj).then(res => {
let data = res.data;
this.priceList = data
})
getEnergy(obj).then(res => {
let data = res.data;
this.energyList = data
})
},
//选择品牌
onBrand(val) {
this.chosenBrand = val;
let o = {token: this.getToken, sBrandName: this.chosenBrand};
getUserSeriesName(o).then(res => {
let data = res.data;
this.seriesList = data;
this.chosenSeries = undefined
})
},
//选择车型
onSeries(val) {
this.chosenSeries = val
},
//查询销量
onSearch() {
},
//左侧菜单栏
handlerMenu(val) {
this.window = val.key
}
}