|
|
@ -1,7 +1,7 @@
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
* @Author: xw
|
|
|
|
* @Author: xw
|
|
|
|
* @Date: 2021-10-09 10:53:21
|
|
|
|
* @Date: 2021-10-09 10:53:21
|
|
|
|
* @LastEditTime: 2021-11-05 11:39:22
|
|
|
|
* @LastEditTime: 2021-11-19 19:20:26
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
* @Description: 传播声量TOP10
|
|
|
|
* @Description: 传播声量TOP10
|
|
|
|
* @FilePath: /data-show/src/views/Index/spreadTheSound/index.vue
|
|
|
|
* @FilePath: /data-show/src/views/Index/spreadTheSound/index.vue
|
|
|
@ -15,8 +15,11 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</v-label-div>
|
|
|
|
</v-label-div>
|
|
|
|
<div class="st-bd">
|
|
|
|
<div class="st-bd">
|
|
|
|
<v-echarts :opt="opt"></v-echarts>
|
|
|
|
<v-echarts :opt="opt" @getData="clickEchars"></v-echarts>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a-modal title="提示" :visible="visible" @ok="handleOk" @cancel="handleCancel">
|
|
|
|
|
|
|
|
<p>{{ ModalText }}</p>
|
|
|
|
|
|
|
|
</a-modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -33,6 +36,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
opt: {},
|
|
|
|
opt: {},
|
|
|
|
pdata: [],
|
|
|
|
pdata: [],
|
|
|
|
|
|
|
|
type: 0,
|
|
|
|
|
|
|
|
visible: false,
|
|
|
|
|
|
|
|
ModalText: ""
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -41,6 +47,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();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -66,6 +73,29 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.opt = createOpt(dx, ds);
|
|
|
|
this.opt = createOpt(dx, ds);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleCancel() {
|
|
|
|
|
|
|
|
this.visible = false;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleOk() {
|
|
|
|
|
|
|
|
this.$router.push('/login')
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
clickEchars(data) {
|
|
|
|
|
|
|
|
if (!this.getToken) {
|
|
|
|
|
|
|
|
this.visible = true;
|
|
|
|
|
|
|
|
this.ModalText = "您还未登录,是否前往登录"
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
let ele = data[0];
|
|
|
|
|
|
|
|
if(this.type === 1) {
|
|
|
|
|
|
|
|
let model = ele.axisValueLabel
|
|
|
|
|
|
|
|
this.setModel({name: model});
|
|
|
|
|
|
|
|
this.$router.push("/modelInsight");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
let brand = ele.axisValueLabel;
|
|
|
|
|
|
|
|
this.setBrand({brandname: brand});
|
|
|
|
|
|
|
|
this.$router.push("/brandInsight");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|