Commit b651cc37 authored by liuzhaoh's avatar liuzhaoh

仪表盘转动处理

parent 025f5f04
...@@ -325,7 +325,7 @@ export const getGaugeOption = (option) => { ...@@ -325,7 +325,7 @@ export const getGaugeOption = (option) => {
offsetCenter: [0, 40], offsetCenter: [0, 40],
valueAnimation: true, valueAnimation: true,
formatter: function (value) { formatter: function (value) {
return Math.round(value * 100) + ""; return value;
}, },
color: "inherit", color: "inherit",
}, },
......
...@@ -482,7 +482,7 @@ const getDustDetail = () => { ...@@ -482,7 +482,7 @@ const getDustDetail = () => {
indicatorOneInstance, indicatorOneInstance,
"indicatorOne", "indicatorOne",
getGaugeOption({ getGaugeOption({
value: dustInfo[0].value / 100, value: (dustInfo[0].value).toFixed(2),
chartName: "压差", chartName: "压差",
min: parseInt(res.data.pressureDiffLow), min: parseInt(res.data.pressureDiffLow),
max: parseInt(res.data.pressureDiffHigh), max: parseInt(res.data.pressureDiffHigh),
...@@ -495,7 +495,7 @@ const getDustDetail = () => { ...@@ -495,7 +495,7 @@ const getDustDetail = () => {
indicatorTwoInstance, indicatorTwoInstance,
"indicatorTwo", "indicatorTwo",
getGaugeOption({ getGaugeOption({
value: parseInt(dustInfo[1].value / 100), value: parseInt(dustInfo[1].value),
chartName: "粉尘浓度", chartName: "粉尘浓度",
min: 5, min: 5,
max: 50, 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