prod
校文 3 years ago
parent 406c7e898e
commit a021779b50

@ -1,7 +1,7 @@
<!-- <!--
* @Author: xw * @Author: xw
* @Date: 2021-10-08 18:58:00 * @Date: 2021-10-08 18:58:00
* @LastEditTime: 2021-11-29 10:40:00 * @LastEditTime: 2021-12-02 10:26:23
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 热销排行 * @Description: 热销排行
* @FilePath: /data-show/src/views/Index/salesRank/index.vue * @FilePath: /data-show/src/views/Index/salesRank/index.vue
@ -29,6 +29,7 @@
<script> <script>
import createOpt from "./opt"; import createOpt from "./opt";
import {getCheZhuBrandCount0528, getCheZhuTime0528} from "@/api/home" import {getCheZhuBrandCount0528, getCheZhuTime0528} from "@/api/home"
import {getBrandName} from "@/api/comm"
export default { export default {
name: "sales-rank", name: "sales-rank",
data() { data() {
@ -118,7 +119,14 @@ export default {
let model = ele.axisValueLabel let model = ele.axisValueLabel
this.setModel({name: model}); this.setModel({name: model});
this.setHeaderType(3); this.setHeaderType(3);
this.$router.push("/modelInsight"); let obj = {
token: this.getToken,
sSeriesName: model
}
getBrandName(obj).then((res) => {
this.setBrand({brandname: res.data})
this.$router.push("/modelInsight");
})
} else { } else {
let brand = ele.axisValueLabel; let brand = ele.axisValueLabel;
this.setBrand({brandname: brand}); this.setBrand({brandname: brand});

@ -1,7 +1,7 @@
<!-- <!--
* @Author: xw * @Author: xw
* @Date: 2021-10-09 11:56:50 * @Date: 2021-10-09 11:56:50
* @LastEditTime: 2021-11-29 10:41:57 * @LastEditTime: 2021-12-02 10:24:43
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 尾翼洞察 * @Description: 尾翼洞察
* @FilePath: /data-show/src/views/Index/tailInsight/index.vue * @FilePath: /data-show/src/views/Index/tailInsight/index.vue
@ -27,10 +27,12 @@
<script> <script>
import createOpt from "./opt" import createOpt from "./opt"
import {getWeiYiCountHome0528} from "@/api/home" import {getWeiYiCountHome0528} from "@/api/home"
import {getBrandName} from "@/api/comm"
export default { export default {
name: "tail-insight", name: "tail-insight",
data() { data() {
return { return {
type: 0,
load: false, load: false,
form: { form: {
sQueryType: 1 sQueryType: 1
@ -48,6 +50,7 @@ export default {
methods: { methods: {
// //
handlerChange(n) { handlerChange(n) {
this.type = n;
this.form.sQueryType = n+1; this.form.sQueryType = n+1;
this.getData(); this.getData();
}, },
@ -91,7 +94,14 @@ export default {
let model = ele.axisValueLabel let model = ele.axisValueLabel
this.setModel({name: model}); this.setModel({name: model});
this.setHeaderType(3); this.setHeaderType(3);
this.$router.push("/modelInsight"); let obj = {
token: this.getToken,
sSeriesName: model
}
getBrandName(obj).then((res) => {
this.setBrand({brandname: res.data})
this.$router.push("/modelInsight");
})
} else { } else {
let brand = ele.axisValueLabel; let brand = ele.axisValueLabel;
this.setBrand({brandname: brand}); this.setBrand({brandname: brand});

Loading…
Cancel
Save