|
@@ -136,26 +136,14 @@ onMounted(() => {
|
|
eventBus.on("area:id", toggleAreaId);
|
|
eventBus.on("area:id", toggleAreaId);
|
|
farmId.value = sessionStorage.getItem("farmId");
|
|
farmId.value = sessionStorage.getItem("farmId");
|
|
|
|
|
|
- eventBus.off("changePointLegend", resetActive2);
|
|
|
|
- eventBus.on("changePointLegend", resetActive2);
|
|
|
|
- eventBus.off("changePointType", resetActive);
|
|
|
|
- eventBus.on("changePointType", resetActive);
|
|
|
|
|
|
+ eventBus.off("resetFileActive", resetActive2);
|
|
|
|
+ eventBus.on("resetFileActive", resetActive2);
|
|
});
|
|
});
|
|
-
|
|
|
|
-function resetActive({colorObj}) {
|
|
|
|
- console.log('aaaaaaaaresetActive', colorObj);
|
|
|
|
- activeOuput.value = colorObj.key;
|
|
|
|
-}
|
|
|
|
-function resetActive2({colorObj}) {
|
|
|
|
- console.log('bbbbbbhbresetActive', colorObj);
|
|
|
|
- if (colorObj.name === "产量") {
|
|
|
|
- activeOuput.value = "产量估计"
|
|
|
|
- } else if (colorObj.name === "高质果率") {
|
|
|
|
- activeOuput.value = "高质果率"
|
|
|
|
- } else {
|
|
|
|
- activeOuput.value = colorObj.key
|
|
|
|
- }
|
|
|
|
|
|
+function resetActive2(name) {
|
|
|
|
+ activeOuput.value = name
|
|
|
|
+ console.log('222resetActive2', name);
|
|
}
|
|
}
|
|
|
|
+
|
|
const selectOptions = ref([]);
|
|
const selectOptions = ref([]);
|
|
const getSpeciesItemList = (farmId, regionId) => {
|
|
const getSpeciesItemList = (farmId, regionId) => {
|
|
VE_API.farm.getSpeciesItemList({ farmId, regionId }).then((res) => {
|
|
VE_API.farm.getSpeciesItemList({ farmId, regionId }).then((res) => {
|