*/}
@@ -222,7 +226,7 @@ const Build = (props) => {
height: " 33%"
}} customize={true}>
-
+
{/*

*/}
{/* {
@@ -248,36 +252,36 @@ const Build = (props) => {
} */}
{
- xuandata&&xuandata!==null&&xuandata.length!==0?xuandata.filter(i=>i.enable).map((item,index1)=>{
-
- if(item.video&&item.video!==null&&item.video.length!==0){
- return item.video.map((i,index)=>{
- // console.log(i,'视频')
- console.log(index1,'index1')
- if(index1===lunboindex){
- // lunbo.current.goTo(lunboindex)
- console.log("自动播放",index1)
- return
- }else{
- // console.log("不自动播放",index1)
- return
+ // return
+
+ })
+ :
}
- })
- }
- // return
-
- })
- :
- }
{/* */}
全面建设好农村公路,切实发挥先行官作用
diff --git a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
index f092903d..d62139a6 100644
--- a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
+++ b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
@@ -27,27 +27,41 @@ const LeftCenter = (props) => {
dispatch(getNearestAssessData({ monthRange: 6 })).then(res => {
if (res.success) {
let nextChartSeries = []
- let nextXAxis = new Set()
+ let nextXAxis = []
let data = res.payload.data
data.reverse()
for (let d of data) {
let corUnitSeries = nextChartSeries.find(item => item.name == d.unit)
let month = moment(d.month).format('YYYY-MM')
- nextXAxis.add(month)
+ let curMonthIndex = nextXAxis.findIndex(item => item == month)
+ if (curMonthIndex < 0) {
+ nextXAxis.push(month)
+ curMonthIndex = nextXAxis.length - 1
+ }
if (corUnitSeries) {
- corUnitSeries.data.push(d.totalPoints)
+ corUnitSeries.data[curMonthIndex] = d.totalPoints
} else {
- nextChartSeries.push({
+ let nextnextChartSerie = {
type: 'line',
smooth: true,
- data: [d.totalPoints],
+ data: [],
name: d.unit,
- })
+ }
+ nextnextChartSerie.data[curMonthIndex] = d.totalPoints
+ nextChartSeries.push(nextnextChartSerie)
}
}
+ for (let s of nextChartSeries) {
+ for (let i = 0; i < nextXAxis.length; i++) {
+ if (!s.data[i] && s.data[i] != 0) {
+ s.data[i] = undefined
+ }
+ }
+ }
+
setChartData({
series: nextChartSeries,
- xAxis: [...nextXAxis]
+ xAxis: nextXAxis
})
}
})