|
@@ -56,7 +56,7 @@
|
|
|
<div class="box-wrap">
|
|
<div class="box-wrap">
|
|
|
<div
|
|
<div
|
|
|
class="box-item"
|
|
class="box-item"
|
|
|
- v-for=" (item, index) in outputBox"
|
|
|
|
|
|
|
+ v-for="(item, index) in outputBox"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
@click="toggleAcitve(item.name, item.field)"
|
|
@click="toggleAcitve(item.name, item.field)"
|
|
|
:class="{ active: activeOuput === item.name }"
|
|
:class="{ active: activeOuput === item.name }"
|
|
@@ -69,7 +69,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<div class="overview-file">
|
|
<div class="overview-file">
|
|
|
<div class="box-title">生态评估</div>
|
|
<div class="box-title">生态评估</div>
|
|
|
<div class="box-wrap">
|
|
<div class="box-wrap">
|
|
@@ -96,9 +95,9 @@
|
|
|
import eventBus from "@/api/eventBus";
|
|
import eventBus from "@/api/eventBus";
|
|
|
import { onMounted, ref, onBeforeUnmount, reactive } from "vue";
|
|
import { onMounted, ref, onBeforeUnmount, reactive } from "vue";
|
|
|
const outputBox = ref([
|
|
const outputBox = ref([
|
|
|
- { id: 1, name: "种植面积", field: "area", value: "6800", unit: "亩" },
|
|
|
|
|
- { id: 2, name: "亩产估计", field: "cl", value: "3400", unit: "斤/亩" },
|
|
|
|
|
- { id: 3, name: "产量估计", field: "zuoguo_ratio",value: "1.2", unit: "万吨" },
|
|
|
|
|
|
|
+ { id: 1, name: "产量估计", field: "cl", value: "--", unit: "斤/亩" },
|
|
|
|
|
+ { id: 2, name: "高质果率", field: "spgl", value: "--", unit: "%" },
|
|
|
|
|
+ { id: 3, name: "挂果数", field: "zuoguo_ratio",value: "--", unit: "颗/枝条" },
|
|
|
]);
|
|
]);
|
|
|
|
|
|
|
|
const qualityBox = ref([
|
|
const qualityBox = ref([
|
|
@@ -201,6 +200,9 @@ function getFileData(farmId, regionId) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function setFileData(type_id) {
|
|
function setFileData(type_id) {
|
|
|
|
|
+ if(!type_id){
|
|
|
|
|
+ type_id = "0"
|
|
|
|
|
+ }
|
|
|
const res = allTypeData.value.find((item) => item.type_id == type_id);
|
|
const res = allTypeData.value.find((item) => item.type_id == type_id);
|
|
|
|
|
|
|
|
photoBaseData.value[1].value = res.meta_info.avg_crown + "平方米";
|
|
photoBaseData.value[1].value = res.meta_info.avg_crown + "平方米";
|
|
@@ -217,15 +219,15 @@ function setFileData(type_id) {
|
|
|
// if(res.production_info.production){
|
|
// if(res.production_info.production){
|
|
|
// res.production_info.production = (res.production_info.production * 1.3).toFixed(1)
|
|
// res.production_info.production = (res.production_info.production * 1.3).toFixed(1)
|
|
|
// }
|
|
// }
|
|
|
- // outputBox.value[0].value = res.production_info.production;
|
|
|
|
|
- // outputBox.value[1].value = res.production_info.quality.toFixed(0);
|
|
|
|
|
- // if(res.production_info.zuoguo_ratio){
|
|
|
|
|
- // outputBox.value[2].name = "坐果率";
|
|
|
|
|
- // outputBox.value[2].value = res.production_info.zuoguo_ratio.toFixed(0);
|
|
|
|
|
- // }else{
|
|
|
|
|
- // outputBox.value[2].name = "雌花率";
|
|
|
|
|
- // outputBox.value[2].value = res.production_info.cihua_ratio.toFixed(0);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ outputBox.value[0].value = res.production_info.production;
|
|
|
|
|
+ outputBox.value[1].value = res.production_info.quality.toFixed(0);
|
|
|
|
|
+ if(res.production_info.zuoguo_ratio){
|
|
|
|
|
+ outputBox.value[2].name = "坐果率";
|
|
|
|
|
+ outputBox.value[2].value = res.production_info.zuoguo_ratio.toFixed(0);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ outputBox.value[2].name = "雌花率";
|
|
|
|
|
+ outputBox.value[2].value = res.production_info.cihua_ratio.toFixed(0);
|
|
|
|
|
+ }
|
|
|
qualityBox.value[0].value = res.ecology_info.ventilation;
|
|
qualityBox.value[0].value = res.ecology_info.ventilation;
|
|
|
qualityBox.value[1].value = res.ecology_info.transmittance;
|
|
qualityBox.value[1].value = res.ecology_info.transmittance;
|
|
|
qualityBox.value[2].value = res.ecology_info.dp_situation;
|
|
qualityBox.value[2].value = res.ecology_info.dp_situation;
|