修改问题
This commit is contained in:
@@ -665,7 +665,7 @@ const initEcharts = (color: string, key: number, name: string) => {
|
||||
startAngle: key == 0 ? 180 : 90,
|
||||
endAngle: key == 0 ? 90 : 0,
|
||||
min: 0,
|
||||
max: key == 0 ? 12 : 400,
|
||||
max: key == 0 ? 12 : 200,
|
||||
radius: '180%',
|
||||
center: key == 0 ? ['70%', '95%'] : ['30%', '95%'],
|
||||
splitNumber: 2, //刻度数量
|
||||
@@ -868,7 +868,7 @@ const setRealData = () => {
|
||||
// webMsgSend.value[0].vRmsB == 0 ? 1 : Math.ceil(webMsgSend.value[0].vRmsB)
|
||||
// echartsDataV3.value.options.series[0].max =
|
||||
// webMsgSend.value[0].vRmsC == 0 ? 1 : Math.ceil(webMsgSend.value[0].vRmsC)
|
||||
let numData =
|
||||
let vMax =
|
||||
Math.ceil(
|
||||
(Math.max(
|
||||
...[
|
||||
@@ -881,9 +881,9 @@ const setRealData = () => {
|
||||
10
|
||||
) * 10
|
||||
|
||||
echartsDataV1.value.options.series[0].max = numData
|
||||
echartsDataV2.value.options.series[0].max = numData
|
||||
echartsDataV3.value.options.series[0].max = numData
|
||||
echartsDataV1.value.options.series[0].max = vMax
|
||||
echartsDataV2.value.options.series[0].max = vMax
|
||||
echartsDataV3.value.options.series[0].max = vMax
|
||||
echartsDataV1.value.options.series[0].data = [
|
||||
{
|
||||
name: ptName.value == 'star' ? 'A相' : 'AB相', //A相
|
||||
@@ -912,6 +912,22 @@ const setRealData = () => {
|
||||
// webMsgSend.value[0].iRmsB == 0 ? 1 : Math.ceil(webMsgSend.value[0].iRmsB)
|
||||
// echartsDataA3.value.options.series[0].max =
|
||||
// webMsgSend.value[0].iRmsC == 0 ? 1 : Math.ceil(webMsgSend.value[0].iRmsC)
|
||||
|
||||
let aMax =
|
||||
Math.ceil(
|
||||
(Math.max(
|
||||
...[
|
||||
Math.floor(webMsgSend.value[0].iRmsA * 100) / 100 || 10,
|
||||
Math.floor(webMsgSend.value[0].iRmsB * 100) / 100 || 10,
|
||||
Math.floor(webMsgSend.value[0].iRmsC * 100) / 100 || 10
|
||||
]
|
||||
) *
|
||||
1.2) /
|
||||
10
|
||||
) * 10
|
||||
echartsDataA1.value.options.series[0].max = aMax
|
||||
echartsDataA2.value.options.series[0].max = aMax
|
||||
echartsDataA3.value.options.series[0].max = aMax
|
||||
echartsDataA1.value.options.series[0].data = [
|
||||
{
|
||||
name: 'A相',
|
||||
|
||||
Reference in New Issue
Block a user