|
|
@@ -64,7 +64,7 @@
|
|
|
:class="{ active: activeMenuKey === item.key }"
|
|
|
@click="handleSelectMenu(item.key)"
|
|
|
>
|
|
|
- <img class="side-menu__icon" :src="item.icon" alt="" />
|
|
|
+ <img class="side-menu__icon" :src="base_img_url3 + item.icon_path" alt="" />
|
|
|
<div class="side-menu__text">
|
|
|
<span>{{ item.line1 }}</span>
|
|
|
<span>{{ item.line2 }}</span>
|
|
|
@@ -117,6 +117,8 @@ import GrowthReportMap from "./growthReportMap.js";
|
|
|
import CropAlertPanel from "./components/CropAlertPanel.vue";
|
|
|
import inviteEntryPopup from "@/views/old_mini/entry_information/components/inviteEntryPopup.vue";
|
|
|
import wx from "weixin-js-sdk";
|
|
|
+
|
|
|
+import { base_img_url3 } from "@/api/config";
|
|
|
import restorePlantingPopup from "@/components/popup/restorePlantingPopup.vue";
|
|
|
|
|
|
const router = useRouter();
|
|
|
@@ -424,7 +426,7 @@ function mapCalcRecordToMenuItem(record) {
|
|
|
key: String(record?.id ?? record?.risk_name ?? ""),
|
|
|
line1,
|
|
|
line2,
|
|
|
- icon: menuIcon,
|
|
|
+ icon_path: record?.icon_path || menuIcon,
|
|
|
mapUrl: resolveCalcAssetUrl(record?.png_path),
|
|
|
extent,
|
|
|
legendUrl: resolveCalcAssetUrl(record?.legend_path),
|
|
|
@@ -785,13 +787,13 @@ const handlePanelHeightChange = (height) => {
|
|
|
};
|
|
|
|
|
|
onMounted(() => {
|
|
|
- syncSelectedFarmId();
|
|
|
- syncMapFromSelectedFarm();
|
|
|
+ // syncSelectedFarmId();
|
|
|
+ // syncMapFromSelectedFarm();
|
|
|
getLocationName();
|
|
|
- initMap();
|
|
|
- fetchFarmRangeStatus();
|
|
|
- fetchInteractTask();
|
|
|
- tryOpenInviteEntryPopup();
|
|
|
+ // initMap();
|
|
|
+ // fetchFarmRangeStatus();
|
|
|
+ // fetchInteractTask();
|
|
|
+ // tryOpenInviteEntryPopup();
|
|
|
});
|
|
|
onActivated(() => {
|
|
|
syncSelectedFarmId();
|