Commit b651cc37 authored by liuzhaoh's avatar liuzhaoh

仪表盘转动处理

parent 025f5f04
......@@ -325,7 +325,7 @@ export const getGaugeOption = (option) => {
offsetCenter: [0, 40],
valueAnimation: true,
formatter: function (value) {
return Math.round(value * 100) + "";
return value;
},
color: "inherit",
},
......
......@@ -482,7 +482,7 @@ const getDustDetail = () => {
indicatorOneInstance,
"indicatorOne",
getGaugeOption({
value: dustInfo[0].value / 100,
value: (dustInfo[0].value).toFixed(2),
chartName: "压差",
min: parseInt(res.data.pressureDiffLow),
max: parseInt(res.data.pressureDiffHigh),
......@@ -495,7 +495,7 @@ const getDustDetail = () => {
indicatorTwoInstance,
"indicatorTwo",
getGaugeOption({
value: parseInt(dustInfo[1].value / 100),
value: parseInt(dustInfo[1].value),
chartName: "粉尘浓度",
min: 5,
max: 50,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment