cxmo 8 bulan lalu
induk
melakukan
745412b96e
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  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))