|
|
@@ -1,33 +1,27 @@
|
|
|
<template>
|
|
|
- <div class="weather-info is-garden" :class="{ expanded: isExpanded}">
|
|
|
+ <div class="weather-info is-garden"
|
|
|
+ :class="{ expanded: isExpanded, 'no-farm': !hasFarm, 'farm-list': activeGarden === 'list' }">
|
|
|
<div class="header flex-center">
|
|
|
<div class="header-left">
|
|
|
<div class="address-select flex-center" v-if="hasFarm">
|
|
|
- <el-dropdown class="select-garden" trigger="click" popper-class="select-garden-popper">
|
|
|
- <div class="el-dropdown-link flex-center">
|
|
|
- <span class="ellipsis-l1">{{ farmName }}</span>
|
|
|
- <div class="default-text" v-show="isDefaultFarm">默认</div>
|
|
|
- <el-icon class="el-icon--right"><arrow-down /></el-icon>
|
|
|
+ <div class="garden-tabs">
|
|
|
+ <div class="garden-item left-item" @click="handleGardenClick('current')"
|
|
|
+ :class="{ 'active': activeGarden === 'current' }">
|
|
|
+ <img class="current-icon"
|
|
|
+ :src="activeGarden === 'current' ? require('@/assets/img/common/farm-active.png') : require('@/assets/img/common/farm.png')"
|
|
|
+ alt="">
|
|
|
+ <span class="current-name van-ellipsis">{{ farmName }}</span>
|
|
|
</div>
|
|
|
- <template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item
|
|
|
- @click="handleCommand(item)"
|
|
|
- v-for="item in farmList"
|
|
|
- :key="item.id"
|
|
|
- :class="{ 'selected-active-garden': farmId === item.id }"
|
|
|
- >
|
|
|
- <span>{{ item.name }}</span>
|
|
|
- <span v-if="item.defaultOption" class="dropdown-default-text">默认</span>
|
|
|
- </el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
- <div class="btn-wrap">
|
|
|
- <div class="add-garden" @click="handleFarmInfo">农场信息</div>
|
|
|
- <div class="add-garden gray-btn" @click="handleAddFarm">
|
|
|
- <el-icon><Plus /></el-icon>
|
|
|
- <span>新建农场</span>
|
|
|
+ <img class="title-block" v-show="activeGarden === 'current'"
|
|
|
+ src="@/assets/img/common/title-block.png" alt="">
|
|
|
+ <img class="title-block" v-show="activeGarden !== 'current'"
|
|
|
+ src="@/assets/img/common/title-block-active.png" alt="">
|
|
|
+ <div class="garden-item right-item" @click="handleGardenClick('list')"
|
|
|
+ :class="{ 'active': activeGarden === 'list' }">
|
|
|
+ <img class="current-icon"
|
|
|
+ :src="activeGarden === 'list' ? require('@/assets/img/common/menu-active.png') : require('@/assets/img/common/menu.png')"
|
|
|
+ alt="">
|
|
|
+ <span class="current-name">农场列表</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -35,42 +29,70 @@
|
|
|
<div class="address-select flex-center farm-name" v-else>
|
|
|
示范农场
|
|
|
</div>
|
|
|
- <div class="temperature flex-center">
|
|
|
- <div class="temperature-number">{{ currentWeather.temp || '--' }}</div>
|
|
|
- <div class="temperature-text">
|
|
|
- <span>{{ locationName || '--' }}</span>
|
|
|
- <div class="temperature-text-time">
|
|
|
- <span>{{ currentWeather.text }}-</span>
|
|
|
- <span>{{ currentDateText }}</span>
|
|
|
- <span v-show="!isExpanded" class="temperature-text-more" @click="toggleExpand">
|
|
|
- 展开更多天气
|
|
|
- </span>
|
|
|
+ <div class="farm-l" v-show="activeGarden === 'current'">
|
|
|
+ <div class="temperature flex-center">
|
|
|
+
|
|
|
+ <div class="weather-icon" v-if="currentWeather.iconDay">
|
|
|
+ <i :class="'qi-' + currentWeather.iconDay + '-fill'"></i>
|
|
|
+ </div>
|
|
|
+ <div class="temperature-number">{{ currentWeather.temp || '--' }}</div>
|
|
|
+ <div class="temperature-text">
|
|
|
+ <span>{{ currentWeather.text }}</span>
|
|
|
+ <div class="temperature-text-time">
|
|
|
+ <span>{{ currentDateText }}</span>
|
|
|
+ <span class="temperature-text-date">{{ currentWeekText }}</span>
|
|
|
+ <span v-show="!isExpanded" class="temperature-text-more" @click="toggleExpand">
|
|
|
+ 展开更多
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="button-wrap" v-if="hasFarm">
|
|
|
+ <div class="button-item">
|
|
|
+ <img class="button-pre" src="@/assets/img/common/info.png" alt="">
|
|
|
+ 农场信息
|
|
|
+ </div>
|
|
|
+ <div class="button-item">
|
|
|
+ <img class="button-pre" src="@/assets/img/common/report.png" alt="">
|
|
|
+ 历史风险报告
|
|
|
+ </div>
|
|
|
+ <div class="button-item">
|
|
|
+ <img class="button-pre" src="@/assets/img/common/idea.png" alt="">
|
|
|
+ 土壤改良方案
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="weather-icon" v-if="currentWeather.iconDay">
|
|
|
- <i :class="'qi-'+currentWeather.iconDay + '-fill'"></i>
|
|
|
- </div>
|
|
|
<!-- <div class="weather-icon" v-else>
|
|
|
<img :src="`https://birdseye-img.sysuimars.com/weather/${currentWeather.iconDay}.svg`" alt="" />
|
|
|
</div> -->
|
|
|
</div>
|
|
|
- <div class="weather-chart-container">
|
|
|
+ <div class="weather-chart-container" v-show="activeGarden === 'current'">
|
|
|
<div class="weather-chart-title">
|
|
|
<span>未来七天天气</span>
|
|
|
<div class="weather-chart-title-more" @click="toggleExpand">收起</div>
|
|
|
</div>
|
|
|
<weather-chart class="weather-chart" :weather-data="weatherData"></weather-chart>
|
|
|
</div>
|
|
|
+ <!-- 农场筛选 -->
|
|
|
+ <div class="farm-filter" v-show="activeGarden === 'list'">
|
|
|
+ <div class="filter-l">
|
|
|
+ <el-input v-model="searchFarm" style="width: 96px" placeholder="搜索农场" :prefix-icon="Search" />
|
|
|
+ </div>
|
|
|
+ <div class="filter-r">
|
|
|
+ <el-select v-model="regionVal" placeholder="选择地区" style="width: 92px">
|
|
|
+ <el-option v-for="item in regionOptions" :key="item.value" :label="item.label"
|
|
|
+ :value="item.value" />
|
|
|
+ </el-select>
|
|
|
+ <el-select v-model="typeVal" placeholder="选择品类" style="width: 92px">
|
|
|
+ <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 农场信息 -->
|
|
|
- <farm-info-popup
|
|
|
- ref="myFarmInfoRef"
|
|
|
- :showEditBtn="false"
|
|
|
- :showBtn="true"
|
|
|
- :farmId="farmId"
|
|
|
- @success="onFarmBasicInfoSaved"
|
|
|
- ></farm-info-popup>
|
|
|
+ <farm-info-popup ref="myFarmInfoRef" :showEditBtn="false" :showBtn="true" :farmId="farmId"
|
|
|
+ @success="onFarmBasicInfoSaved"></farm-info-popup>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
@@ -80,6 +102,7 @@ import { ref, onActivated, computed, watch, onMounted } from "vue";
|
|
|
import weatherChart from "./weatherChart.vue";
|
|
|
import { useRouter } from "vue-router";
|
|
|
import { useStore } from "vuex";
|
|
|
+import { Search } from '@element-plus/icons-vue'
|
|
|
import farmInfoPopup from "@/views/old_mini/home/components/farmInfoPopup.vue";
|
|
|
import { convertPointToArray } from "@/utils/index";
|
|
|
const store = useStore();
|
|
|
@@ -96,9 +119,9 @@ const props = defineProps({
|
|
|
});
|
|
|
|
|
|
// 定义emit事件
|
|
|
-const emit = defineEmits(['weatherExpanded','changeGarden']);
|
|
|
+const emit = defineEmits(['weatherExpanded', 'changeGarden', 'changeGardenTab']);
|
|
|
const router = useRouter();
|
|
|
-const handleCommand = ({id, name}) => {
|
|
|
+const handleCommand = ({ id, name }) => {
|
|
|
farmName.value = name;
|
|
|
farmId.value = id;
|
|
|
// 更新默认农场标识
|
|
|
@@ -110,20 +133,35 @@ const handleCommand = ({id, name}) => {
|
|
|
localStorage.setItem('selectedFarmPoint', selectedFarm.wkt);
|
|
|
getLocationName();
|
|
|
getWeatherData();
|
|
|
- emit('changeGarden',{id, name});
|
|
|
+ emit('changeGarden', { id, name });
|
|
|
};
|
|
|
|
|
|
const isExpanded = ref(false);
|
|
|
const toggleExpand = () => {
|
|
|
isExpanded.value = !isExpanded.value;
|
|
|
- emit('weatherExpanded',isExpanded.value);
|
|
|
+ emit('weatherExpanded', isExpanded.value);
|
|
|
};
|
|
|
|
|
|
const farmId = ref(null);
|
|
|
const farmName = ref("");
|
|
|
const farmList = ref([]);
|
|
|
-const hasFarm = ref(true)
|
|
|
+const hasFarm = ref(false)
|
|
|
+const activeGarden = ref('current');
|
|
|
const isDefaultFarm = ref(false); // 添加默认农场标识
|
|
|
+const regionVal = ref('');
|
|
|
+const typeVal = ref('');
|
|
|
+const searchFarm = ref('');
|
|
|
+const regionOptions = ref([{
|
|
|
+ label: '地区1',
|
|
|
+ value: '1'
|
|
|
+}, {
|
|
|
+ label: '地区2',
|
|
|
+ value: '2'
|
|
|
+}]);
|
|
|
+const typeOptions = ref([{
|
|
|
+ label: '品类1',
|
|
|
+ value: '1'
|
|
|
+}]);
|
|
|
|
|
|
// 根据传入的gardenId设置农场(先刷新列表再设置)
|
|
|
async function setFarmByGardenId(gardenIdValue) {
|
|
|
@@ -133,7 +171,7 @@ async function setFarmByGardenId(gardenIdValue) {
|
|
|
|
|
|
// 先刷新农场列表,确保数据是最新的
|
|
|
return new Promise((resolve) => {
|
|
|
- VE_API.farm.listByUserId().then(({data}) => {
|
|
|
+ VE_API.farm.listByUserId().then(({ data }) => {
|
|
|
// const fullData = data.filter(item => item.userType === 2);
|
|
|
const fullData = data;
|
|
|
farmList.value = fullData || [];
|
|
|
@@ -213,12 +251,12 @@ function selectFarmFromList(data) {
|
|
|
}
|
|
|
getLocationName();
|
|
|
getWeatherData();
|
|
|
- emit('changeGarden',{id: farmId.value, name: farmName.value});
|
|
|
+ emit('changeGarden', { id: farmId.value, name: farmName.value });
|
|
|
}
|
|
|
|
|
|
// 获取农场列表(不处理传入的gardenId)
|
|
|
function getFarmListWithoutGardenId() {
|
|
|
- VE_API.farm.listByUserId().then(({data}) => {
|
|
|
+ VE_API.farm.listByUserId().then(({ data }) => {
|
|
|
// const fullData = data.filter(item => item.userType === 2);
|
|
|
const fullData = data;
|
|
|
farmList.value = fullData || [];
|
|
|
@@ -288,15 +326,15 @@ function getLocationName() {
|
|
|
const farmLocation = convertPointToArray(locationPoint);
|
|
|
let formattedLocation = `${farmLocation[1]},${farmLocation[0]}`;
|
|
|
const params = {
|
|
|
- key: MAP_KEY,
|
|
|
- location: formattedLocation,
|
|
|
- };
|
|
|
- VE_API.old_mini_map.location(params).then(({ result }) => {
|
|
|
- // locationVal.value = result.formatted_addresses.recommend;
|
|
|
- locationName.value = result?.address_component
|
|
|
- ? result.address_component.city + result.address_component.district
|
|
|
- : result?.address + "";
|
|
|
- });
|
|
|
+ key: MAP_KEY,
|
|
|
+ location: formattedLocation,
|
|
|
+ };
|
|
|
+ VE_API.old_mini_map.location(params).then(({ result }) => {
|
|
|
+ // locationVal.value = result.formatted_addresses.recommend;
|
|
|
+ locationName.value = result?.address_component
|
|
|
+ ? result.address_component.city + result.address_component.district
|
|
|
+ : result?.address + "";
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
const myFarmInfoRef = ref(null);
|
|
|
@@ -318,6 +356,11 @@ function onFarmBasicInfoSaved(payload) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+const handleGardenClick = (type) => {
|
|
|
+ activeGarden.value = type;
|
|
|
+ emit("changeGardenTab", type);
|
|
|
+};
|
|
|
+
|
|
|
const handleFarmInfo = () => {
|
|
|
// myFarmInfoRef.value.handleShow();
|
|
|
router.push(`/farm_info?subjectId=${farmId.value}`);
|
|
|
@@ -340,7 +383,8 @@ function getWeatherData() {
|
|
|
currentWeather.value = {
|
|
|
temp: today.tempMax || today.tempMin || 26,
|
|
|
text: today.textDay || "晴天",
|
|
|
- iconDay: today.iconDay
|
|
|
+ iconDay: today.iconDay,
|
|
|
+ fxDate: today.fxDate
|
|
|
};
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
@@ -355,56 +399,88 @@ const currentDateText = computed(() => {
|
|
|
const day = String(now.getDate()).padStart(2, '0');
|
|
|
return `${month}/${day}`;
|
|
|
});
|
|
|
+
|
|
|
+const currentWeekText = computed(() => {
|
|
|
+ if (!currentWeather.value?.fxDate) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ // 兼容 "YYYY-MM-DD" 格式,避免部分环境下直接 new Date() 解析异常
|
|
|
+ const date = new Date(currentWeather.value.fxDate.replace(/-/g, "/"));
|
|
|
+ if (Number.isNaN(date.getTime())) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ const weekMap = ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
|
|
|
+ return weekMap[date.getDay()];
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.weather-info {
|
|
|
width: 100%;
|
|
|
// height: 58px;
|
|
|
- height: 70px;
|
|
|
+ height: 80px;
|
|
|
border-radius: 14px;
|
|
|
- background-color: #ffffff;
|
|
|
- padding: 10px 12px;
|
|
|
+ border: 0.5px solid #ffffff;
|
|
|
+ background: linear-gradient(180deg, #89CBFF 0%, #2199F8 100%);
|
|
|
box-sizing: border-box;
|
|
|
transition: height 0.3s ease-in-out;
|
|
|
overflow: hidden;
|
|
|
|
|
|
&.is-garden {
|
|
|
- height: 85px;
|
|
|
- box-shadow: 0px 1px 5.5px 0px #00000005;
|
|
|
+ height: 130px;
|
|
|
border-radius: 8px;
|
|
|
- padding: 10px 12px;
|
|
|
+ box-shadow: 0px -2px 4px 0px #0000000D;
|
|
|
+ height: 130px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.no-farm {
|
|
|
+ height: 80px;
|
|
|
+
|
|
|
+ &.expanded {
|
|
|
+ height: 312px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
&.expanded {
|
|
|
- height: 312px;
|
|
|
- background-image: linear-gradient(90deg, #e2f1fe 0%, #ffffff 80%);
|
|
|
+ height: 362px;
|
|
|
}
|
|
|
|
|
|
- &.bg-white{
|
|
|
+ &.bg-white {
|
|
|
border-radius: 14px;
|
|
|
background-image: linear-gradient(90deg, #e2f1fe 0%, #ffffff 80%);
|
|
|
}
|
|
|
|
|
|
+ &.farm-list {
|
|
|
+ height: 94px;
|
|
|
+ }
|
|
|
+
|
|
|
.flex-center {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.header {
|
|
|
display: flex;
|
|
|
align-items: flex-end;
|
|
|
justify-content: space-between;
|
|
|
+
|
|
|
.header-left {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
.address-select {
|
|
|
.select-garden {
|
|
|
width: fit-content;
|
|
|
max-width: 170px;
|
|
|
margin-right: 8px;
|
|
|
margin-bottom: 10px;
|
|
|
+
|
|
|
.el-dropdown-link {
|
|
|
font-size: 15px;
|
|
|
font-weight: 500;
|
|
|
color: #000000;
|
|
|
+
|
|
|
span {
|
|
|
width: fit-content;
|
|
|
max-width: 95%;
|
|
|
@@ -424,13 +500,15 @@ const currentDateText = computed(() => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .btn-wrap{
|
|
|
+
|
|
|
+ .btn-wrap {
|
|
|
position: absolute;
|
|
|
right: 10px;
|
|
|
top: 8px;
|
|
|
display: flex;
|
|
|
gap: 8px;
|
|
|
}
|
|
|
+
|
|
|
.add-garden {
|
|
|
font-size: 12px;
|
|
|
color: #2199f8;
|
|
|
@@ -440,34 +518,47 @@ const currentDateText = computed(() => {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+
|
|
|
.gray-btn {
|
|
|
color: #919191;
|
|
|
border: 1px solid rgba(145, 145, 145, 0.5);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.farm-name {
|
|
|
font-size: 16px;
|
|
|
color: #1D2129;
|
|
|
+ background: #fff;
|
|
|
+ padding: 2px 0 4px 12px;
|
|
|
}
|
|
|
+
|
|
|
.temperature {
|
|
|
+ padding-left: 10px;
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ position: relative;
|
|
|
+ background: #fff;
|
|
|
+
|
|
|
.temperature-number {
|
|
|
- font-size: 40px;
|
|
|
+ font-size: 38px;
|
|
|
position: relative;
|
|
|
- margin-right: 14px;
|
|
|
+ margin: 0 8px;
|
|
|
+
|
|
|
&::after {
|
|
|
content: "°";
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 10px;
|
|
|
position: absolute;
|
|
|
right: -6px;
|
|
|
top: 2px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.temperature-text {
|
|
|
- font-weight: 500;
|
|
|
.temperature-text-time {
|
|
|
font-size: 12px;
|
|
|
font-weight: 400;
|
|
|
}
|
|
|
+
|
|
|
.temperature-text-more {
|
|
|
font-size: 12px;
|
|
|
color: #2199f8;
|
|
|
@@ -475,13 +566,20 @@ const currentDateText = computed(() => {
|
|
|
font-weight: 500;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
+ .temperature-text-date {
|
|
|
+ color: #1D2129;
|
|
|
+ margin-left: 4px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.header-right {
|
|
|
width: 84px;
|
|
|
height: 73px;
|
|
|
}
|
|
|
+
|
|
|
.weather-icon {
|
|
|
i {
|
|
|
font-size: 40px;
|
|
|
@@ -489,17 +587,133 @@ const currentDateText = computed(() => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .garden-tabs {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .garden-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 6px;
|
|
|
+ height: 40px;
|
|
|
+ width: calc(50% - 17px);
|
|
|
+
|
|
|
+ // width:100px;
|
|
|
+ // background: linear-gradient(180deg, #89CBFF 0%, #2199F8 100%);
|
|
|
+ &.left-item {
|
|
|
+ padding-left: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.right-item {
|
|
|
+ padding-right: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ &.active {
|
|
|
+ background: #fff;
|
|
|
+
|
|
|
+ // background: linear-gradient(360deg, #FFFFFF 30.18%, #FFFFFF 82.87%, #D3ECFF 106.69%);
|
|
|
+ .current-name {
|
|
|
+ color: #2199F8;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .current-name {
|
|
|
+ font-size: 18px;
|
|
|
+ color: #fff;
|
|
|
+ font-family: "PangMenZhengDao";
|
|
|
+ }
|
|
|
+
|
|
|
+ .current-icon {
|
|
|
+ width: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .title-block {
|
|
|
+ width: 34px;
|
|
|
+ height: 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .button-wrap {
|
|
|
+ background: #fff;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 10px;
|
|
|
+ color: #2199F8;
|
|
|
+ padding: 8px 10px;
|
|
|
+
|
|
|
+ .button-item {
|
|
|
+ border: 0.5px solid rgba(33, 153, 248, 0.5);
|
|
|
+ display: flex;
|
|
|
+ border-radius: 20px;
|
|
|
+ align-items: center;
|
|
|
+ height: 28px;
|
|
|
+ line-height: 28px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ gap: 4px;
|
|
|
+ font-size: 12px;
|
|
|
+ flex: auto;
|
|
|
+ justify-content: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .button-pre {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .farm-filter {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 12px 7px 8px 7px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: #ffffff;
|
|
|
+
|
|
|
+ .filter-l {
|
|
|
+ ::v-deep {
|
|
|
+ .el-input__wrapper {
|
|
|
+ border-radius: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-input .el-input__icon {
|
|
|
+ margin-right: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .filter-r {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 10px;
|
|
|
+
|
|
|
+ ::v-deep {
|
|
|
+ .el-select__wrapper {
|
|
|
+ border-radius: 20px;
|
|
|
+ padding: 4px 6px 4px 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.weather-chart-container {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
- margin-top: 8px;
|
|
|
+ padding: 8px 10px 0 10px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: #ffffff;
|
|
|
+
|
|
|
.weather-chart-title {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
font-size: 12px;
|
|
|
font-weight: 500;
|
|
|
+
|
|
|
.weather-chart-title-more {
|
|
|
color: #828282;
|
|
|
cursor: pointer;
|
|
|
@@ -509,6 +723,7 @@ const currentDateText = computed(() => {
|
|
|
border: 1px solid rgba(130, 130, 130, 0.5);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.weather-chart {
|
|
|
margin-top: 5px;
|
|
|
width: 100%;
|
|
|
@@ -521,20 +736,24 @@ const currentDateText = computed(() => {
|
|
|
.select-garden-popper {
|
|
|
max-height: calc(100vh - 200px);
|
|
|
overflow-y: auto;
|
|
|
+
|
|
|
&.el-dropdown__popper {
|
|
|
.el-dropdown__list {
|
|
|
max-width: 250px;
|
|
|
}
|
|
|
- .el-dropdown-menu__item{
|
|
|
+
|
|
|
+ .el-dropdown-menu__item {
|
|
|
background-color: transparent !important;
|
|
|
color: #606266 !important;
|
|
|
}
|
|
|
+
|
|
|
.selected-active-garden {
|
|
|
color: #2199f8 !important;
|
|
|
background-color: rgba(33, 153, 248, 0.1) !important;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.dropdown-default-text {
|
|
|
font-size: 11px;
|
|
|
color: #2199f8;
|