diff --git a/src/components/Line/index.vue b/src/components/Line/index.vue index d592bcf..11f3cc1 100644 --- a/src/components/Line/index.vue +++ b/src/components/Line/index.vue @@ -4,7 +4,8 @@ :id="id" :style="{ width: styleUtil.px2vw(width), - height: styleUtil.px2vh(height) + height: styleUtil.px2vh(height), + opacity:data.length?1:0, }" />
加载中...
@@ -172,7 +173,7 @@ [() => props.data, () => props.xAxisData], (val) => { aIndex+=1 - if(aIndex>=3&&!val[0].length){ + if(aIndex>=3&&!val[0][0].data.length){ condShow.value = 1 } if (val[0].length > 0 && val[1].length > 0) { @@ -181,7 +182,7 @@ init() }, 1000) }else{ - + // condShow.value = 1 } }, { immediate: true } diff --git a/src/components/PieRow/index.vue b/src/components/PieRow/index.vue index f24e456..7487e30 100644 --- a/src/components/PieRow/index.vue +++ b/src/components/PieRow/index.vue @@ -4,7 +4,8 @@ :id="id" :style="{ width: styleUtil.px2vw(width), - height: styleUtil.px2vh(height) + height: styleUtil.px2vh(height), + opacity:dataList.length?1:0, }" />
加载中...
@@ -47,7 +48,7 @@ } }) - const { id, setOption } = useEchart() + const { id, setOption,chartVal,dispose ,clearOption} = useEchart() var colorList = ['#FDC40A', '#FF5232', '#50F0A6', '#5FDFFA'] @@ -106,6 +107,7 @@ watch( () => props.dataList, (newVal) => { + console.log(chartVal.value,newVal,'newValnewValnewValnewValnewVal') aIndex+=1 if(aIndex>=3&&!newVal.length){ condShow.value = 1 @@ -125,8 +127,12 @@ ...defaultCofig, ...props.config }) + }) - } + }else{ + + + } }, { immediate: true } ) @@ -146,5 +152,6 @@ display: flex; align-items: center; justify-content: center; + } diff --git a/src/components/RegionTop/index.vue b/src/components/RegionTop/index.vue index c9cf03b..93aee20 100644 --- a/src/components/RegionTop/index.vue +++ b/src/components/RegionTop/index.vue @@ -1,12 +1,18 @@