|
@@ -245,13 +245,15 @@ export default {
|
|
//季节性图要遍历data 取下一层的DataList
|
|
//季节性图要遍历data 取下一层的DataList
|
|
if(this.chartInfo.ChartType===2){
|
|
if(this.chartInfo.ChartType===2){
|
|
let flag = true
|
|
let flag = true
|
|
|
|
+ let minDataArr = []
|
|
data.forEach(d=>{
|
|
data.forEach(d=>{
|
|
const DataList = d.DataList||[]
|
|
const DataList = d.DataList||[]
|
|
const ValueArr = DataList.map(i=>(i.Value||0))
|
|
const ValueArr = DataList.map(i=>(i.Value||0))
|
|
const minData = Math.min(...ValueArr)
|
|
const minData = Math.min(...ValueArr)
|
|
- flag = minData>0
|
|
|
|
|
|
+ minDataArr.push(minData)
|
|
|
|
+ console.log('minData',minData)
|
|
})
|
|
})
|
|
- return flag
|
|
|
|
|
|
+ return Math.min(...minDataArr)>0
|
|
}else{
|
|
}else{
|
|
//其他图
|
|
//其他图
|
|
const ValueArr = data.map(i=>(i.Value||0))
|
|
const ValueArr = data.map(i=>(i.Value||0))
|