lxf 5 dias atrás
pai
commit
3d90627f77
1 arquivos alterados com 9 adições e 8 exclusões
  1. 9 8
      src/views/old_mini/home/index.vue

+ 9 - 8
src/views/old_mini/home/index.vue

@@ -180,6 +180,7 @@ const gardenId = ref(null);
 const changeGarden = ({ id }) => {
     gardenId.value = id;
     getExpertByFarmId();
+    getReport();
 };
 
 const expertInfo = ref({});
@@ -195,13 +196,14 @@ const getReport = () => {
     if (!gardenId.value) return;
     VE_API.farm.growthReportByFarm({farmId: gardenId.value, limit: 20}).then(({ data }) => {
         if (data && data.length > 0) {
-            VE_API.farm.getReportStatus({ farmId: gardenId.value }).then(({ data }) => {
-                if (data) {
-                    showReportPopup.value = true;
-                } else {
-                    showReportPopup.value = false;
-                }
-            });
+            showReportPopup.value = true;
+            // VE_API.farm.getReportStatus({ farmId: gardenId.value }).then(({ data }) => {
+            //     if (data) {
+            //         showReportPopup.value = true;
+            //     } else {
+            //         showReportPopup.value = false;
+            //     }
+            // });
         } else {
             showReportPopup.value = false;
         }
@@ -252,7 +254,6 @@ const handleCardClick = (card) => {
 };
 
 onActivated(() => {
-    getReport();
     getManagerList();
     if (userType.value != 2) {
         checkExistsEnabledScheme()