prod
校文 3 years ago
parent ffd7dac50c
commit 99e9b053cf

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

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

Loading…
Cancel
Save