diff --git a/src/views/dataAnalysis/syntheticData/reportAnaly.vue b/src/views/dataAnalysis/syntheticData/reportAnaly.vue index 73c7e62..746da72 100644 --- a/src/views/dataAnalysis/syntheticData/reportAnaly.vue +++ b/src/views/dataAnalysis/syntheticData/reportAnaly.vue @@ -27,6 +27,7 @@ // 获取列表数据 async function getList(code) { console.log('报表分析---', code); + console.log('props---', props); let params = { startTime: props.searchDate ? props.searchDate[0] : '', endTime: props.searchDate ? props.searchDate[1] : '', @@ -40,14 +41,17 @@ chartOptionYs.color = []; let res = await graphicReport(params); if (res && res.code == 200) { + console.log(res.data,'res.datares.data'); let datas = res.data; if (JSON.stringify(datas) == '{}' || datas.propertyMonitorXList.length == 0) { chartOptionYs.xAxis.data = []; echartLoading.value = false; return false; - } else { + } + else { chartOptionYs.xAxis.data = datas.propertyMonitorXList; datas.propertyMonitorList.map(item => { + if(item.ylist.length==0) return setEchartY(item); //设置多y轴 chartOptionYs.series.push({ name: item.monitorPropertyName + item.propertyUnit,