|
|
@@ -6,7 +6,7 @@
|
|
|
<weather-info ref="weatherInfoRef" from="growth_report" class="weather-info" @weatherExpanded="weatherExpanded"
|
|
|
@changeGarden="changeGarden" :isGarden="true"></weather-info>
|
|
|
<div class="report-content-wrap" v-if="hasReport" v-loading="loading" element-loading-background="rgba(0, 0, 0, 0.1)">
|
|
|
- <swipe class="my-swipe" :loop="false" indicator-color="white" @change="handleSwipeChange">
|
|
|
+ <swipe ref="swipeRef" class="my-swipe" :loop="false" indicator-color="white" @change="handleSwipeChange">
|
|
|
<swipe-item v-for="(item, index) in regionsData" :key="index">
|
|
|
<div class="report-content has-report" :style="{ minHeight: `calc(100vh - ${tabBarHeight}px)` }">
|
|
|
<!-- <img src="@/assets/img/home/qrcode.png" alt="" class="code-icon" /> -->
|
|
|
@@ -168,6 +168,7 @@ const router = useRouter();
|
|
|
const loading = ref(false);
|
|
|
const hasReport = ref(false);
|
|
|
const workItems = ref([]);
|
|
|
+const swipeRef = ref(null);
|
|
|
|
|
|
const paramsPage = ref({});
|
|
|
const showBindSuccess = ref(false);
|
|
|
@@ -196,6 +197,8 @@ const currentFarmName = ref('');
|
|
|
const changeGarden = ({ id, name }) => {
|
|
|
if (!id) return;
|
|
|
currentFarmName.value = name;
|
|
|
+ swipeRef.value && swipeRef.value.swipeTo(0, {immediate:true});
|
|
|
+ currentIndex.value = 0;
|
|
|
paramsPage.value = {
|
|
|
...(paramsPage.value || {}),
|
|
|
subjectId: id,
|