update
This commit is contained in:
parent
612deda821
commit
3d42b358d0
@ -92,7 +92,7 @@ function GasI(props) {
|
|||||||
// max: 100,
|
// max: 100,
|
||||||
},
|
},
|
||||||
series: seriesData.map((v, i) => ({
|
series: seriesData.map((v, i) => ({
|
||||||
name: i + 1 + '#助燃风',
|
name: i ? i + 1 + '#助燃风' : '助燃风总流量',
|
||||||
data: v,
|
data: v,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
symbol: 'circle',
|
symbol: 'circle',
|
||||||
@ -111,6 +111,7 @@ function GasI(props) {
|
|||||||
} else {
|
} else {
|
||||||
dataList = realtimeState?.wind
|
dataList = realtimeState?.wind
|
||||||
? [
|
? [
|
||||||
|
{ id: 0, name: '助燃风总流量', value: '0m³/h' },
|
||||||
{ id: 1, name: '1#助燃风', value: '0m³/h' },
|
{ id: 1, name: '1#助燃风', value: '0m³/h' },
|
||||||
{ id: 2, name: '2#助燃风', value: '0m³/h' },
|
{ id: 2, name: '2#助燃风', value: '0m³/h' },
|
||||||
{ id: 3, name: '3#助燃风', value: '0m³/h' },
|
{ id: 3, name: '3#助燃风', value: '0m³/h' },
|
||||||
@ -118,12 +119,12 @@ function GasI(props) {
|
|||||||
{ id: 5, name: '5#助燃风', value: '0m³/h' },
|
{ id: 5, name: '5#助燃风', value: '0m³/h' },
|
||||||
{ id: 6, name: '6#助燃风', value: '0m³/h' },
|
{ id: 6, name: '6#助燃风', value: '0m³/h' },
|
||||||
{ id: 7, name: '7#助燃风', value: '0m³/h' },
|
{ id: 7, name: '7#助燃风', value: '0m³/h' },
|
||||||
{ id: 8, name: '8#助燃风', value: '0m³/h' },
|
|
||||||
].map((item, index) => ({
|
].map((item, index) => ({
|
||||||
...item,
|
...item,
|
||||||
value: realtimeState.wind[index] ?? '/',
|
value: realtimeState.wind[index] ?? '/',
|
||||||
}))
|
}))
|
||||||
: [
|
: [
|
||||||
|
{ id: 0, name: '助燃风总流量', value: '0m³/h' },
|
||||||
{ id: 1, name: '1#助燃风', value: '0m³/h' },
|
{ id: 1, name: '1#助燃风', value: '0m³/h' },
|
||||||
{ id: 2, name: '2#助燃风', value: '0m³/h' },
|
{ id: 2, name: '2#助燃风', value: '0m³/h' },
|
||||||
{ id: 3, name: '3#助燃风', value: '0m³/h' },
|
{ id: 3, name: '3#助燃风', value: '0m³/h' },
|
||||||
@ -131,7 +132,6 @@ function GasI(props) {
|
|||||||
{ id: 5, name: '5#助燃风', value: '0m³/h' },
|
{ id: 5, name: '5#助燃风', value: '0m³/h' },
|
||||||
{ id: 6, name: '6#助燃风', value: '0m³/h' },
|
{ id: 6, name: '6#助燃风', value: '0m³/h' },
|
||||||
{ id: 7, name: '7#助燃风', value: '0m³/h' },
|
{ id: 7, name: '7#助燃风', value: '0m³/h' },
|
||||||
{ id: 8, name: '8#助燃风', value: '0m³/h' },
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ export default function getOptions(seriesData, name) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
series: seriesData.map((arr, index) => ({
|
series: seriesData.map((arr, index) => ({
|
||||||
name: index + 1 + '#' + name,
|
name: index ? index + 1 + '#' + name : '天然气总流量',
|
||||||
data: arr,
|
data: arr,
|
||||||
type: 'line',
|
type: 'line',
|
||||||
areaStyle: {
|
areaStyle: {
|
||||||
|
@ -7,14 +7,14 @@ function getData(type) {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case 'gas-i':
|
case 'gas-i':
|
||||||
data = [
|
data = [
|
||||||
{ id: 1, name: '1#天然气I', value: '0m³/h' },
|
{ id: 0, name: '天然气总流量', value: '0m³/h' },
|
||||||
{ id: 2, name: '2#天然气I', value: '0m³/h' },
|
{ id: 1, name: '1#天然气', value: '0m³/h' },
|
||||||
{ id: 3, name: '3#天然气I', value: '0m³/h' },
|
{ id: 2, name: '2#天然气', value: '0m³/h' },
|
||||||
{ id: 4, name: '4#天然气I', value: '0m³/h' },
|
{ id: 3, name: '3#天然气', value: '0m³/h' },
|
||||||
{ id: 5, name: '5#天然气I', value: '0m³/h' },
|
{ id: 4, name: '4#天然气', value: '0m³/h' },
|
||||||
{ id: 6, name: '6#天然气I', value: '0m³/h' },
|
{ id: 5, name: '5#天然气', value: '0m³/h' },
|
||||||
{ id: 7, name: '7#天然气I', value: '0m³/h' },
|
{ id: 6, name: '6#天然气', value: '0m³/h' },
|
||||||
{ id: 8, name: '8#天然气I', value: '0m³/h' },
|
{ id: 7, name: '7#天然气', value: '0m³/h' },
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case 'gas-ii':
|
case 'gas-ii':
|
||||||
|
Loading…
Reference in New Issue
Block a user