江西测试问题整改
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@click="showCharts(scope.row, 3, '最大值')"
|
||||
:style="{ color: scope.row.statisticalType === 3 ? '#cc0000' : '#07d75a' }"
|
||||
:style="{ color: scope.row.statisticalType === 3 ? '#A52a2a' : '#07d75a' }"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
@@ -77,7 +77,7 @@
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@click="showCharts(scope.row, 2, '最小值')"
|
||||
:style="{ color: scope.row.statisticalType === 2 ? '#cc0000' : '#07d75a' }"
|
||||
:style="{ color: scope.row.statisticalType === 2 ? '#A52a2a' : '#07d75a' }"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
@@ -90,7 +90,7 @@
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@click="showCharts(scope.row, 1, '平均值')"
|
||||
:style="{ color: scope.row.statisticalType === 1 ? '#cc0000' : '#07d75a' }"
|
||||
:style="{ color: scope.row.statisticalType === 1 ? '#A52a2a' : '#07d75a' }"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
@@ -103,7 +103,7 @@
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@click="showCharts(scope.row, 4, 'CP95值')"
|
||||
:style="{ color: scope.row.statisticalType === 4 ? '#cc0000' : '#07d75a' }"
|
||||
:style="{ color: scope.row.statisticalType === 4 ? '#A52a2a' : '#07d75a' }"
|
||||
type="text"
|
||||
size="small"
|
||||
>
|
||||
|
||||
@@ -31,38 +31,38 @@
|
||||
<div>电压</div>
|
||||
<div>
|
||||
A相:
|
||||
<span style="color: #ffcc00">
|
||||
<span style="color: #DAA520">
|
||||
{{ echartsData1?.options?.series[1].data[0].value }}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
B相:
|
||||
<span style="color: #009900">
|
||||
<span style="color: #2E8B57">
|
||||
{{ echartsData1?.options?.series[1].data[1].value }}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
C相:
|
||||
<span style="color: #cc0000">
|
||||
<span style="color: #A52a2a">
|
||||
{{ echartsData1?.options?.series[1].data[2].value }}
|
||||
</span>
|
||||
</div>
|
||||
<div style="margin-top: 10px">电流</div>
|
||||
<div>
|
||||
A相:
|
||||
<span style="color: #ffcc00">
|
||||
<span style="color: #DAA520">
|
||||
{{ echartsData1?.options?.series[0].data[0].value }}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
B相:
|
||||
<span style="color: #009900">
|
||||
<span style="color: #2E8B57">
|
||||
{{ echartsData1?.options?.series[0].data[1].value }}
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
C相:
|
||||
<span style="color: #cc0000">
|
||||
<span style="color: #A52a2a">
|
||||
{{ echartsData1?.options?.series[0].data[2].value }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -493,21 +493,21 @@ const initRadioCharts = () => {
|
||||
value: 0,
|
||||
name: 'A相',
|
||||
itemStyle: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
name: 'B相',
|
||||
itemStyle: {
|
||||
color: '#009900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
name: 'C相',
|
||||
itemStyle: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -596,21 +596,21 @@ const initRadioCharts = () => {
|
||||
value: 0,
|
||||
name: ptName.value == 'star' ? 'A相' : 'AB相', //'A相',
|
||||
itemStyle: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
name: ptName.value == 'star' ? 'B相' : 'BC相', //'B相',
|
||||
itemStyle: {
|
||||
color: '#009900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
name: ptName.value == 'star' ? 'C相' : 'CA相', //'C相',
|
||||
itemStyle: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -744,13 +744,13 @@ const initEcharts = (color: string, key: number) => {
|
||||
}
|
||||
//渲染echarts
|
||||
const init = () => {
|
||||
echartsDataV1.value = initEcharts('#FFCC00', 0)
|
||||
echartsDataV2.value = initEcharts('#009900', 0)
|
||||
echartsDataV3.value = initEcharts('#CC0000', 0)
|
||||
echartsDataV1.value = initEcharts('#DAA520', 0)
|
||||
echartsDataV2.value = initEcharts('#2E8B57', 0)
|
||||
echartsDataV3.value = initEcharts('#A52a2a', 0)
|
||||
|
||||
echartsDataA1.value = initEcharts('#FFCC00', 1)
|
||||
echartsDataA2.value = initEcharts('#009900', 1)
|
||||
echartsDataA3.value = initEcharts('#CC0000', 1)
|
||||
echartsDataA1.value = initEcharts('#DAA520', 1)
|
||||
echartsDataA2.value = initEcharts('#2E8B57', 1)
|
||||
echartsDataA3.value = initEcharts('#A52a2a', 1)
|
||||
|
||||
if (!dataSocket.socketServe) {
|
||||
console.error('WebSocket 客户端实例不存在')
|
||||
|
||||
@@ -62,7 +62,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'vRmsB', phase: props.ptName == 'star' ? 'B相' : 'BC相', data: [] },
|
||||
{ name: 'vRmsC', phase: props.ptName == 'star' ? 'C相' : 'CA相', data: [] }
|
||||
],
|
||||
color: ['#FFCC00', '#009900', '#CC0000'],
|
||||
color: ['#DAA520', '#2E8B57', '#A52a2a'],
|
||||
unit: 'kV',
|
||||
data: []
|
||||
},
|
||||
@@ -74,7 +74,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'iRmsB', phase: 'B相', data: [] },
|
||||
{ name: 'iRmsC', phase: 'C相', data: [] }
|
||||
],
|
||||
color: ['#FFCC00', '#009900', '#CC0000'],
|
||||
color: ['#DAA520', '#2E8B57', '#A52a2a'],
|
||||
unit: 'A',
|
||||
data: []
|
||||
},
|
||||
@@ -90,7 +90,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'pTot', phase: '总', data: [] }
|
||||
]
|
||||
: [{ name: 'pTot', phase: '总', data: [] }],
|
||||
color: props.ptName == 'star' ? ['#FFCC00', '#009900', '#CC0000', '#000'] : ['#000'],
|
||||
color: props.ptName == 'star' ? ['#DAA520', '#2E8B57', '#A52a2a', '#000'] : ['#000'],
|
||||
unit: 'kW',
|
||||
data: []
|
||||
},
|
||||
@@ -106,7 +106,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'qTot', phase: '总', data: [] }
|
||||
]
|
||||
: [{ name: 'qTot', phase: '总', data: [] }],
|
||||
color: props.ptName == 'star' ? ['#FFCC00', '#009900', '#CC0000', '#000'] : ['#000'],
|
||||
color: props.ptName == 'star' ? ['#DAA520', '#2E8B57', '#A52a2a', '#000'] : ['#000'],
|
||||
unit: 'kW',
|
||||
data: []
|
||||
},
|
||||
@@ -119,7 +119,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'v1B', phase: props.ptName == 'star' ? 'B相' : 'BC相', data: [] },
|
||||
{ name: 'v1C', phase: props.ptName == 'star' ? 'C相' : 'CA相', data: [] }
|
||||
],
|
||||
color: ['#FFCC00', '#009900', '#CC0000'],
|
||||
color: ['#DAA520', '#2E8B57', '#A52a2a'],
|
||||
unit: 'kV',
|
||||
data: []
|
||||
},
|
||||
@@ -131,7 +131,7 @@ const indexOptions: any = ref([
|
||||
{ name: 'i1B', phase: 'B相', data: [] },
|
||||
{ name: 'i1C', phase: 'C相', data: [] }
|
||||
],
|
||||
color: ['#FFCC00', '#009900', '#CC0000'],
|
||||
color: ['#DAA520', '#2E8B57', '#A52a2a'],
|
||||
unit: 'A',
|
||||
data: []
|
||||
},
|
||||
|
||||
@@ -1179,7 +1179,7 @@ const rendering = () => {
|
||||
smooth: true,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1195,7 +1195,7 @@ const rendering = () => {
|
||||
smooth: true,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#009900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1212,7 +1212,7 @@ const rendering = () => {
|
||||
barWidth: 22,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
},
|
||||
data: item.cvalue
|
||||
@@ -1627,7 +1627,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1640,7 +1640,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#009900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1653,7 +1653,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1109,7 +1109,7 @@ const rendering = () => {
|
||||
smooth: true,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1125,7 +1125,7 @@ const rendering = () => {
|
||||
smooth: true,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#009900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1142,7 +1142,7 @@ const rendering = () => {
|
||||
barWidth: 22,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
},
|
||||
data: item.cvalue
|
||||
@@ -1529,7 +1529,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#FFCC00'
|
||||
color: '#DAA520'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1542,7 +1542,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#339900'
|
||||
color: '#2E8B57'
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1555,7 +1555,7 @@ const getEcharts = () => {
|
||||
symbolSize: 0,
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: '#CC0000'
|
||||
color: '#A52a2a'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user