Pārlūkot izejas kodu

fix: 修改病虫比例

刘秀芳 3 nedēļas atpakaļ
vecāks
revīzija
d755a90b39

+ 2 - 2
src/views/home/album_compoents/albumCarousel.vue

@@ -119,7 +119,7 @@ const outputBox = ref([
 const qualityBox = ref([
     { id: 5, name: "通风率", value: "" },
     { id: 6, name: "透光率", value: "" },
-    { id: 7, name: "病虫等级", value: "" },
+    { id: 7, name: "病虫比例", value: "" },
 ]);
 const showTag = ref(false)
 eventBus.on("click:point",function({farmId,sampleId, data}){
@@ -180,7 +180,7 @@ const getSampleFiles = (geoHash) => {
     outputBox.value[2].value = data.production_info.cihua_ratio.toFixed(0) + "%"
     qualityBox.value[0].value = data.ecology_info.ventilation + "%"
     qualityBox.value[1].value = data.ecology_info.transmittance + "%"
-    qualityBox.value[2].value = data.ecology_info.dp_situation+""
+    qualityBox.value[2].value = data.ecology_info.dp_situation+"%"
     });
 };
 

+ 4 - 4
src/views/home/album_compoents/compareDialog.vue

@@ -201,7 +201,7 @@ const outputBox = ref([
 const qualityBox = ref([
     { id: 5, name: "通风率", value: "" },
     { id: 6, name: "透光率", value: "" },
-    { id: 7, name: "病虫等级", value: "" },
+    { id: 7, name: "病虫比例", value: "" },
 ]);
 const outputBox2 = ref([
     { id: 1, name: "产量估计", value: "" },
@@ -212,7 +212,7 @@ const outputBox2 = ref([
 const qualityBox2 = ref([
     { id: 5, name: "通风率", value: "" },
     { id: 6, name: "透光率", value: "" },
-    { id: 7, name: "病虫等级", value: "" },
+    { id: 7, name: "病虫比例", value: "" },
 ]);
 
 const showTag = ref(false)
@@ -253,7 +253,7 @@ eventBus.on("showCompareDialog", function (compareArr) {
             outputBox.value[2].value = data.production_info.cihua_ratio.toFixed(0) + "%"
             qualityBox.value[0].value = data.ecology_info.ventilation + "%"
             qualityBox.value[1].value = data.ecology_info.transmittance + "%"
-            qualityBox.value[2].value = data.ecology_info.dp_situation+""
+            qualityBox.value[2].value = data.ecology_info.dp_situation+"%"
             });
             // qualityBox.value[2].value = data.dxtj ? data.dxtj + "%" : "--";
         } else {
@@ -286,7 +286,7 @@ eventBus.on("showCompareDialog", function (compareArr) {
                 outputBox2.value[2].value = data.production_info.cihua_ratio.toFixed(0) + "%"
                 qualityBox2.value[0].value = data.ecology_info.ventilation + "%"
                 qualityBox2.value[1].value = data.ecology_info.transmittance + "%"
-                qualityBox2.value[2].value = data.ecology_info.dp_situation+""
+                qualityBox2.value[2].value = data.ecology_info.dp_situation+"%"
             });
         }
     });

+ 1 - 1
src/views/home/components/homeFile.vue

@@ -98,7 +98,7 @@ const outputBox = ref([
 const qualityBox = ref([
     { id: 5, name: "通风率", field: "tfl", value: "--", unit: "%" },
     { id: 6, name: "透光率", field: "tgl", value: "--", unit: "%" },
-    { id: 7, name: "病虫等级", value: "--", unit: "级" },
+    { id: 7, name: "病虫比例", value: "--", unit: "%" },
 ]);
 
 const photoBaseData = ref([

+ 2 - 2
src/views/home/map/samplePointLayer.js

@@ -375,8 +375,8 @@ class SamplePointLayer {
                       <div class="item-val">${data.ecology_info.transmittance}%</div>
                   </div>
                   <div class="box-item">
-                      <div class="item-name">病虫等级</div>
-                      <div class="item-val">${data.ecology_info.dp_situation}</div>
+                      <div class="item-name">病虫比例</div>
+                      <div class="item-val">${data.ecology_info.dp_situation}%</div>
                   </div>
                 `;