Bladeren bron

页面调整

shuhao 6 maanden geleden
bovenliggende
commit
9e0afd7092
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      src/views/home/album_compoents/albumCarousel.vue

+ 3 - 0
src/views/home/album_compoents/albumCarousel.vue

@@ -215,6 +215,9 @@ const getSampleFiles = (geoHash) => {
           let dict = extData.find((item) => item.field == key)
           if(dict){
             outputBox.value[i].name = dict.label
+            if(dict.label === "产量估计"){
+              data.production_info[dict.field] = data.production_info[dict.field] < 50 ? (data.production_info[dict.field] * 3).toFixed(0) : data.production_info[dict.field]
+            }
             outputBox.value[i].value = data.production_info[dict.field] + dict.unit
             i++;
           }