|
@@ -767,9 +767,11 @@ export default {
|
|
}]
|
|
}]
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- this.row2.chart1.chartLine.setOption(option)
|
|
|
|
- window.onresize = function() {
|
|
|
|
- this.row2.chart1.chartLine.resize()
|
|
|
|
|
|
+ this.row2.chart1.chartLine.setOption(option)
|
|
|
|
+ if (this.row2.chart1.chartLine != null) {
|
|
|
|
+ window.onresize = function() {
|
|
|
|
+ this.row2.chart1.chartLine.resize()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
var that = this
|
|
var that = this
|
|
that.row2.chart1.chartLine.on('mouseover', e => {
|
|
that.row2.chart1.chartLine.on('mouseover', e => {
|
|
@@ -807,9 +809,11 @@ export default {
|
|
}],
|
|
}],
|
|
color: ['#529ae4', '#e4e7ec']
|
|
color: ['#529ae4', '#e4e7ec']
|
|
}
|
|
}
|
|
- this.row2.chart2.chartLine.setOption(option)
|
|
|
|
- window.onresize = function() {
|
|
|
|
- this.row2.chart2.chartLine.resize()
|
|
|
|
|
|
+ this.row2.chart2.chartLine.setOption(option)
|
|
|
|
+ if (this.row2.chart2.chartLine != null) {
|
|
|
|
+ window.onresize = function() {
|
|
|
|
+ this.row2.chart2.chartLine.resize()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
var that = this
|
|
var that = this
|
|
that.row2.chart2.chartLine.on('mouseover', e => {
|
|
that.row2.chart2.chartLine.on('mouseover', e => {
|
|
@@ -911,11 +915,11 @@ export default {
|
|
]
|
|
]
|
|
}
|
|
}
|
|
this.row2.chart3.chartLine.setOption(option)
|
|
this.row2.chart3.chartLine.setOption(option)
|
|
- setTimeout(()=> {
|
|
|
|
|
|
+ if (this.row2.chart3.chartLine != null) {
|
|
window.onresize = function() {
|
|
window.onresize = function() {
|
|
this.row2.chart3.chartLine.resize()
|
|
this.row2.chart3.chartLine.resize()
|
|
}
|
|
}
|
|
- }, 100);
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
getCarLength() {
|
|
getCarLength() {
|
|
this.row2.chart3.listLoading2 = true
|
|
this.row2.chart3.listLoading2 = true
|
|
@@ -1161,9 +1165,11 @@ export default {
|
|
{ name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
|
|
{ name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
- this.row3.chart1.chartLine.setOption(option)
|
|
|
|
- window.onresize = function() {
|
|
|
|
- this.row3.chart1.chartLine.resize()
|
|
|
|
|
|
+ this.row3.chart1.chartLine.setOption(option)
|
|
|
|
+ if (this.row3.chart1.chartLine != null) {
|
|
|
|
+ window.onresize = function() {
|
|
|
|
+ this.row3.chart1.chartLine.resize()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 泌乳牛干物质采食量
|
|
// 泌乳牛干物质采食量
|
|
@@ -1222,9 +1228,11 @@ export default {
|
|
itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
|
|
itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- this.row3.chart2.chartLine.setOption(option)
|
|
|
|
- window.onresize = function() {
|
|
|
|
- this.row3.chart2.chartLine.resize()
|
|
|
|
|
|
+ this.row3.chart2.chartLine.setOption(option)
|
|
|
|
+ if (this.row3.chart2.chartLine != null) {
|
|
|
|
+ window.onresize = function() {
|
|
|
|
+ this.row3.chart2.chartLine.resize()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1289,11 +1297,11 @@ export default {
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
this.row4.chart1.chartLine.setOption(option)
|
|
this.row4.chart1.chartLine.setOption(option)
|
|
- setTimeout(()=> {
|
|
|
|
|
|
+ if (this.row4.chart1.chartLine != null) {
|
|
window.onresize = function() {
|
|
window.onresize = function() {
|
|
this.row4.chart1.chartLine.resize()
|
|
this.row4.chart1.chartLine.resize()
|
|
}
|
|
}
|
|
- }, 100);
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
// 混料实际重量统计
|
|
// 混料实际重量统计
|
|
@@ -1344,9 +1352,11 @@ export default {
|
|
name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
|
|
name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
|
|
}]
|
|
}]
|
|
}
|
|
}
|
|
- this.row4.chart2.chartLine.setOption(option)
|
|
|
|
- window.onresize = function() {
|
|
|
|
- this.row4.chart2.chartLine.resize()
|
|
|
|
|
|
+ this.row4.chart2.chartLine.setOption(option)
|
|
|
|
+ if (this.row4.chart2.chartLine != null) {
|
|
|
|
+ window.onresize = function() {
|
|
|
|
+ this.row4.chart2.chartLine.resize()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|