NEZ-2614 fix:project topology bug 修改
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
:class="legendPlacement"
|
||||
class="nz-chart__component nz-chart__component--time-series" @mouseenter="mouseEnterChart"
|
||||
@mouseleave="mouseLeaveChart"
|
||||
v-my-loading="chartLoading"
|
||||
>
|
||||
<div class="chart__canvas" style="position:relative">
|
||||
<div :id="`chart-canvas-${chartId}`"></div>
|
||||
@@ -52,7 +53,8 @@ export default {
|
||||
stackTotalColor: null,
|
||||
stackTotalColorRight: null,
|
||||
isStack: false,
|
||||
hasRightYAxis: false
|
||||
hasRightYAxis: false,
|
||||
chartLoading: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -197,6 +199,7 @@ export default {
|
||||
}
|
||||
})
|
||||
}
|
||||
this.chartLoading = false
|
||||
this.isInit = false
|
||||
}, 200)
|
||||
},
|
||||
|
||||
@@ -218,19 +218,18 @@ export default {
|
||||
this.timer3 = null
|
||||
}
|
||||
this.position.show = false
|
||||
console.log(pen)
|
||||
if (!pen.type && pen.data.enable.tooltip) {
|
||||
if (!pen.data.tooltip.legends.length) {
|
||||
return
|
||||
}
|
||||
let positionShow = false
|
||||
pen.data.tooltip.legends.forEach(item=>{
|
||||
pen.data.tooltip.legends.forEach(item => {
|
||||
if (item.legend) {
|
||||
positionShow = true
|
||||
}
|
||||
})
|
||||
if (!positionShow) {
|
||||
return;
|
||||
return
|
||||
}
|
||||
this.chartParams = {
|
||||
...pen.data.tooltip,
|
||||
@@ -259,6 +258,7 @@ export default {
|
||||
boxHeight = null
|
||||
})
|
||||
this.position.show = true
|
||||
// this.$refs.meta2dTooltip.$refs.panelChart && (this.$refs.meta2dTooltip.$refs.panelChart.loading = false)
|
||||
clearTimeout(this.timer3)
|
||||
}, 100)
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
@blur="inputBlur"
|
||||
:step="1"
|
||||
:min="0"
|
||||
:precision="0"
|
||||
:precision="1"
|
||||
controls-position="right"
|
||||
size="small"
|
||||
name="globalAlpha"
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
}"
|
||||
>
|
||||
<meta2dTooltip
|
||||
ref="meta2dTooltip"
|
||||
:params="chartParams"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -85,6 +85,7 @@ export default {
|
||||
this.$refs.panelChart.chartData = chartData
|
||||
this.$refs.panelChart.loading = false
|
||||
this.$nextTick(() => {
|
||||
this.$refs.panelChart.$refs.chart.$refs['chart' + this.chartInfo.id].chartLoading = true
|
||||
this.$refs.panelChart.$refs.chart.$refs['chart' + this.chartInfo.id].initChart()
|
||||
this.$refs.panelChart.$refs.chart.$refs['chart' + this.chartInfo.id].resize()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user