cxmo 8 maanden geleden
bovenliggende
commit
745412b96e
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4 2
      src/views/dataEntry_manage/mixins/addOreditMixin.js

+ 4 - 2
src/views/dataEntry_manage/mixins/addOreditMixin.js

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