|
|
@@ -195,7 +195,11 @@ function toggleAreaId({ areaId, farmId }) {
|
|
|
|
|
|
const allTypeData = ref([]);
|
|
|
function getFileData(farmId, regionId) {
|
|
|
+ if(!farmId){
|
|
|
+ return;
|
|
|
+ }
|
|
|
VE_API.farm.getFarmFiles({ farmId, regionId: regionId ? regionId : undefined }).then(({ data }) => {
|
|
|
+ console.log("111",data)
|
|
|
allTypeData.value = data;
|
|
|
console.log("getFileData", allTypeData.value);
|
|
|
setFileData(photoBaseData.value[0].speciesItemId);
|
|
|
@@ -227,6 +231,7 @@ function setFileData(type_id) {
|
|
|
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);
|