Bladeren bron

feat: 更新取值

sunxiao 1 week geleden
bovenliggende
commit
1a27167efe
3 gewijzigde bestanden met toevoegingen van 7 en 6 verwijderingen
  1. 2 2
      src/views/control/CirclePanel.vue
  2. 4 3
      src/views/control/EchartRight.vue
  3. 1 1
      src/views/control/MedicinalView.vue

+ 2 - 2
src/views/control/CirclePanel.vue

@@ -40,14 +40,14 @@ defineProps({
     <h4 class="title">智能加药量</h4>
     <div class="intellect-number">
       <p class="num">
-        <NNumberAnimation :from="0" :to="medicineAmount || 0" :duration="1000" :precision="0"></NNumberAnimation>
+        <NNumberAnimation :from="0" :to="medicineAmount || 0" :duration="1000" :precision="4"></NNumberAnimation>
       </p>
       <p class="unit">m³/h</p>
     </div>
     <p class="instant-number space-x-[14px]">
       <span class="label">瞬时加药量</span>
       <span class="value">
-        <NNumberAnimation :from="0" :to="tytjTransientLL || 0" :duration="1000" :precision="0"></NNumberAnimation>
+        <NNumberAnimation :from="0" :to="tytjTransientLL || 0" :duration="1000" :precision="4"></NNumberAnimation>
         <span>m³/h</span>
       </span>
     </p>

+ 4 - 3
src/views/control/EchartRight.vue

@@ -120,10 +120,11 @@ const getEchartOptions = (list) => {
         show: false,
         color: '#fff'
       },
+      splitNumber: 3,
       axisLabel: {
-        formatter: function (value) {
-          return value.toFixed(0)
-        }
+        // formatter: function (value) {
+        //   return value.toFixed(0)
+        // }
       }
     },
     series

+ 1 - 1
src/views/control/MedicinalView.vue

@@ -326,7 +326,7 @@ onUnmounted(() => {
                   <CirclePanel
                     :runing="systemSwitchType"
                     :medicineAmount="panelResultData.calculateVal"
-                    :tytjTransientLL="panelResultData.realValue"
+                    :tytjTransientLL="panelResultData.realVal"
                   ></CirclePanel>
                   <NumberPanel direction="right" title="硝酸盐智能设定" unit="mg/L" :value="panelResultData.htfksd"></NumberPanel>
                 </div>