|
@@ -370,7 +370,7 @@ export default {
|
|
|
this.chartLine = echarts.init(document.getElementById('chartLine'))
|
|
|
var option = {
|
|
|
title: { text: '', subtext: '' },
|
|
|
- color: ['#38c193', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
|
|
|
+ color: ['#ff0000', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
|
|
|
legend: [{
|
|
|
itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
|
|
|
data: [{ name: '设计重量' }, { name: '实际重量' }]
|
|
@@ -420,7 +420,7 @@ export default {
|
|
|
{type:'slider' }, //用于添加滑动条缩放,
|
|
|
],
|
|
|
series: [
|
|
|
- { symbol: 'none', name: '实际重量', type: 'line', data: chartLine_data.data3, itemStyle: { normal: { lineStyle: { color: '#38c193' }}}},
|
|
|
+ { symbol: 'none', name: '实际重量', type: 'line', data: chartLine_data.data3, itemStyle: { normal: { lineStyle: { color: '#ff0000' }}}},
|
|
|
{ symbol: 'none', name: '设计重量', type: 'line', step: 'middle', data: chartLine_data.data2 },
|
|
|
{ name: '开始重量', symbolSize: 10, type: 'scatter', data: chartLine_data.data4 },
|
|
|
{ name: '结束重量', symbolSize: 10, type: 'scatter', data: chartLine_data.data5 }
|
|
@@ -443,7 +443,7 @@ export default {
|
|
|
},
|
|
|
rowStyle({ row, rowIndex }) {
|
|
|
let stylejson = {};
|
|
|
- if (row.labnormal == 1) {
|
|
|
+ if (row.abnormal == 1) {
|
|
|
stylejson.background = "#fb8072";// 背景颜色
|
|
|
stylejson.maxHeight = '30px';// 背景颜色
|
|
|
stylejson.height = '30px';// 背景颜色
|