prod
校文 3 years ago
parent ffd7dac50c
commit 99e9b053cf

@ -1,7 +1,7 @@
<!--
* @Author: your name
* @Date: 2021-10-08 19:12:07
* @LastEditTime: 2021-11-12 11:53:26
* @LastEditTime: 2021-12-29 17:29:10
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edi
* @FilePath: /data-show/src/components/v-echars/index.vue
@ -34,6 +34,7 @@ export default {
this.myChart.clear();
this.myChart.setOption(val);
}
this.myChart.off('click'); //
this.myChart.on('click', (params) => {
if(params.componentSubType === 'bar') {
let obj = {
@ -41,7 +42,7 @@ export default {
value: params.data
}
this.$emit("getData", obj);
};
}
if(params.componentSubType === 'sankey') {
let o = {
key: params.data.name || params.data.source,
@ -58,14 +59,14 @@ export default {
if (
this.myChart.containPixel("grid", pointInPixel)
) {
let pointInGrid = this.myChart.convertFromPixel(
{
seriesIndex: 0,
},
pointInPixel
);
let xIndex = pointInGrid[0]; //
let handleIndex = Number(xIndex);
// let pointInGrid = this.myChart.convertFromPixel(
// {
// seriesIndex: 0,
// },
// pointInPixel
// );
// let xIndex = pointInGrid[0]; //
// let handleIndex = Number(xIndex);
// let seriesObj = this.myChart.getOption(); //object
let obj =
this.myChart._componentsViews[1]

@ -1,7 +1,7 @@
<!--
* @Author: xw
* @Date: 2021-10-09 11:56:50
* @LastEditTime: 2021-12-23 16:33:13
* @LastEditTime: 2021-12-29 17:22:49
* @LastEditors: Please set LastEditors
* @Description: 尾翼洞察
* @FilePath: /data-show/src/views/Index/tailInsight/index.vue
@ -88,6 +88,7 @@ export default {
this.$router.push("/login");
},
clickEchars(data) {
console.log(11111)
if (!this.getToken) {
this.visible = true;
this.ModalText = "您还未登录,是否前往登录";

Loading…
Cancel
Save