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