|
|
@@ -6,7 +6,14 @@
|
|
|
<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 ref="swipeRef" class="my-swipe" :loop="false" indicator-color="white" @change="handleSwipeChange">
|
|
|
+ <div class="history-risk-report-btn" @click="handleHistoryRiskReportClick">
|
|
|
+ <span class="risk-report-icon">
|
|
|
+ <i></i>
|
|
|
+ </span>
|
|
|
+ <span class="risk-report-text">历史风险报告</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <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" /> -->
|
|
|
@@ -39,7 +46,7 @@
|
|
|
:class="'today-'+card.color"
|
|
|
@click="handleTodayPatrolFocusClick(card)"
|
|
|
>
|
|
|
- <!-- <badge class="status-badge" dot
|
|
|
+ <!-- <badge class="status-badge" dot
|
|
|
:offset="[80, -10]">
|
|
|
</badge> -->
|
|
|
<div class="status-title">
|
|
|
@@ -65,7 +72,7 @@
|
|
|
:class="card.type"
|
|
|
@click="handlePendingFarmWorkClick(card)"
|
|
|
>
|
|
|
- <!-- <badge class="status-badge" dot
|
|
|
+ <!-- <badge class="status-badge" dot
|
|
|
:offset="[80, -10]">
|
|
|
</badge> -->
|
|
|
<div v-if="card.executionLimitDays || card.executionLimitDays === 0" class="tag-name" :style="{ borderColor: card.purposeColor, color: card.purposeColor }">限时 {{ card.executionLimitDays }} 天</div>
|
|
|
@@ -264,6 +271,10 @@ const handleAddFarm = () => {
|
|
|
router.push(`/create_farm?from=growth_report&isReload=true`);
|
|
|
}
|
|
|
|
|
|
+const handleHistoryRiskReportClick = () => {
|
|
|
+ router.push("/history_risk_report");
|
|
|
+}
|
|
|
+
|
|
|
const todayPatrolFocus = ref([]);
|
|
|
const pendingFarmWork = ref([]);
|
|
|
const handlePendingFarmWorkClick = (card) => {
|
|
|
@@ -438,6 +449,49 @@ onUnmounted(() => {
|
|
|
box-sizing: border-box;
|
|
|
position: relative;
|
|
|
|
|
|
+ .history-risk-report-btn {
|
|
|
+ position: absolute;
|
|
|
+ right: 0px;
|
|
|
+ top: 110px;
|
|
|
+ z-index: 13;
|
|
|
+ height: 26px;
|
|
|
+ padding: 0 10px 0 8px;
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ color: #ffffff;
|
|
|
+ font-size: 14px;
|
|
|
+ border-radius: 13px 0 0 13px;
|
|
|
+ background: linear-gradient(180deg, #60c2ff 0%, #2199f8 100%);
|
|
|
+ box-shadow: 0 2px 6px rgba(33, 153, 248, 0.3);
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ .risk-report-icon {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ border-radius: 2px;
|
|
|
+ background: #ffffff;
|
|
|
+ position: relative;
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ transform: rotate(-12deg);
|
|
|
+
|
|
|
+ i {
|
|
|
+ width: 8px;
|
|
|
+ height: 2px;
|
|
|
+ border-radius: 2px;
|
|
|
+ background: #42a7ff;
|
|
|
+ box-shadow: 0 3px 0 #42a7ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .risk-report-text {
|
|
|
+ line-height: 1;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.bottom-btn {
|
|
|
z-index: 2;
|
|
|
position: fixed;
|
|
|
@@ -776,7 +830,7 @@ linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
gap: 6px;
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
.status-card {
|
|
|
border-radius: 2px;
|