|
@@ -23,9 +23,11 @@ import {useTimeScrollbarStore} from "@/stores/timeScrollbar";
|
|
import {extractList} from "@/utils/list";
|
|
import {extractList} from "@/utils/list";
|
|
import {formatd} from "@/utils/ruoyi";
|
|
import {formatd} from "@/utils/ruoyi";
|
|
import router from "@/router";
|
|
import router from "@/router";
|
|
|
|
+import {useLegendStore} from "@/stores/legend";
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const appStore = useAppStore()
|
|
const appStore = useAppStore()
|
|
|
|
+const legendStore = useLegendStore()
|
|
const basinStore = useBasinStore()
|
|
const basinStore = useBasinStore()
|
|
const chatStore = useChatStore()
|
|
const chatStore = useChatStore()
|
|
const stationStore = useStationStore()
|
|
const stationStore = useStationStore()
|
|
@@ -296,13 +298,24 @@ watch(() => waterLevel, value => handleWaterLevelChange(), {deep: true})
|
|
|
|
|
|
watch(() => underwaterState.value, (value) => {
|
|
watch(() => underwaterState.value, (value) => {
|
|
Layer.underWater(value)
|
|
Layer.underWater(value)
|
|
|
|
+ if (value) {
|
|
|
|
+ legendStore.showLegend('水下地形')
|
|
|
|
+ } else {
|
|
|
|
+ legendStore.closeLegend()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
watch(() => radarState.value, (value) => {
|
|
watch(() => radarState.value, (value) => {
|
|
if (value === '无') {
|
|
if (value === '无') {
|
|
Operate.deleteRadar()
|
|
Operate.deleteRadar()
|
|
|
|
+ legendStore.closeLegend()
|
|
} else {
|
|
} else {
|
|
Operate.addRadar(value)
|
|
Operate.addRadar(value)
|
|
|
|
+ if (['降雨预报雷达图', '降雨实况雷达图'].includes(value)) {
|
|
|
|
+ legendStore.showLegend('雷达')
|
|
|
|
+ } else {
|
|
|
|
+ legendStore.closeLegend()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -352,7 +365,7 @@ watch(() => route.path, (path) => {
|
|
<el-button-group>
|
|
<el-button-group>
|
|
<el-button @click="appStore.changeCurrentView('太湖流域')">太湖流域</el-button>
|
|
<el-button @click="appStore.changeCurrentView('太湖流域')">太湖流域</el-button>
|
|
<el-button @click="appStore.changeCurrentView()">太湖</el-button>
|
|
<el-button @click="appStore.changeCurrentView()">太湖</el-button>
|
|
- <el-button @click="appStore.changeCurrentView('夹浦')">夹浦</el-button>
|
|
|
|
|
|
+ <!-- <el-button @click="appStore.changeCurrentView('夹浦')">夹浦</el-button>-->
|
|
<el-button @click="appStore.changeCurrentView('Globe')">台风</el-button>
|
|
<el-button @click="appStore.changeCurrentView('Globe')">台风</el-button>
|
|
</el-button-group>
|
|
</el-button-group>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -376,9 +389,8 @@ watch(() => route.path, (path) => {
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<el-button-group>
|
|
<el-button-group>
|
|
- <el-button v-for="item in ['晴', '小雨', '中雨', '大雨']" :key="item" @click="Setting.setWeather(item)">{{
|
|
|
|
- item
|
|
|
|
- }}
|
|
|
|
|
|
+ <el-button v-for="item in ['晴', '小雨', '中雨', '大雨']" :key="item" @click="Setting.setWeather(item)">
|
|
|
|
+ {{ item }}
|
|
</el-button>
|
|
</el-button>
|
|
</el-button-group>
|
|
</el-button-group>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -386,7 +398,7 @@ watch(() => route.path, (path) => {
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<template #reference>
|
|
<template #reference>
|
|
<div v-show="showBtnList.includes('typhoon')" class="right-btn-item">
|
|
<div v-show="showBtnList.includes('typhoon')" class="right-btn-item">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="typhoon"/>
|
|
<icon :data="typhoon"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -398,7 +410,7 @@ watch(() => route.path, (path) => {
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<template #reference>
|
|
<template #reference>
|
|
<div v-show="showBtnList.includes('radar')" class="right-btn-item">
|
|
<div v-show="showBtnList.includes('radar')" class="right-btn-item">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="radar"/>
|
|
<icon :data="radar"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -410,7 +422,7 @@ watch(() => route.path, (path) => {
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<template #reference>
|
|
<template #reference>
|
|
<div v-show="showBtnList.includes('underwater')" class="right-btn-item">
|
|
<div v-show="showBtnList.includes('underwater')" class="right-btn-item">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="underwater"/>
|
|
<icon :data="underwater"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -420,7 +432,7 @@ watch(() => route.path, (path) => {
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<template #reference>
|
|
<template #reference>
|
|
<div v-show="showBtnList.includes('waves')" class="right-btn-item">
|
|
<div v-show="showBtnList.includes('waves')" class="right-btn-item">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="waves"/>
|
|
<icon :data="waves"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -432,7 +444,7 @@ watch(() => route.path, (path) => {
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<el-popover placement="left-start" trigger="hover" width="auto">
|
|
<template #reference>
|
|
<template #reference>
|
|
<div v-show="showBtnList.includes('simulation')" class="right-btn-item">
|
|
<div v-show="showBtnList.includes('simulation')" class="right-btn-item">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="handle"/>
|
|
<icon :data="handle"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -442,12 +454,12 @@ watch(() => route.path, (path) => {
|
|
</el-popover>
|
|
</el-popover>
|
|
|
|
|
|
<div v-show="showBtnList.includes('chat')" class="right-btn-item" @click="chatStore.changeShow()">
|
|
<div v-show="showBtnList.includes('chat')" class="right-btn-item" @click="chatStore.changeShow()">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="chat"/>
|
|
<icon :data="chat"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div v-show="false" class="right-btn-item" @click="appStore.setExpand(!appStore.isExpand)">
|
|
<div v-show="false" class="right-btn-item" @click="appStore.setExpand(!appStore.isExpand)">
|
|
- <img :src="backgroundSrc" alt="" style="position: absolute;"/>
|
|
|
|
|
|
+ <img :src="backgroundSrc" alt=""/>
|
|
<icon :data="appStore.isExpand ? horizontalExpand : horizontalContract"/>
|
|
<icon :data="appStore.isExpand ? horizontalExpand : horizontalContract"/>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -484,6 +496,7 @@ watch(() => route.path, (path) => {
|
|
img {
|
|
img {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
|
|
+ position: absolute;
|
|
}
|
|
}
|
|
|
|
|
|
svg {
|
|
svg {
|