whj 2 năm trước cách đây
mục cha
commit
c066083506

+ 2 - 2
src/components/LiquidLevel/index.vue

@@ -89,10 +89,10 @@ export default {
             },
             data: [
               {
-                value: this.value.value.replace('CM', '')
+                value: this.value.value
               },
               {
-                value: this.value.value.replace('CM', '')
+                value: this.value.value
               }
             ],
             symbolSize: 1

+ 1 - 1
src/views/opc/Opc.vue

@@ -85,7 +85,7 @@
             <template slot="title">
               {{ item.description }} <br />
             </template>
-            <LiquidLevel :value="{value:'34',max:100,label:item.description}" />
+            <LiquidLevel :value="{value:34,max:100,label:item.description}" />
           </a-tooltip>
         </VueDragResize>
       </div>

+ 2 - 2
src/views/opc/OpcInfo.vue

@@ -94,9 +94,9 @@
           <a-tooltip>
             <template slot="title">
               {{ item.description }} <br />
-              液位: 34
+              液位: 64
             </template>
-            <LiquidLevel :value="{value:'34',max:100,label:item.description}" />
+            <LiquidLevel :value="{value:64,max:100,label:item.description}" />
           </a-tooltip>
         </VueDragResize>
       </div>