|
@@ -16,8 +16,9 @@ import {
|
|
} from "@/api/gx";
|
|
} from "@/api/gx";
|
|
import {formatd} from "@/utils/ruoyi";
|
|
import {formatd} from "@/utils/ruoyi";
|
|
import {filterWaterQualitys} from "@/utils/unit";
|
|
import {filterWaterQualitys} from "@/utils/unit";
|
|
-import {Setting, View} from "@/utils/tdInstruction";
|
|
|
|
|
|
+import {Label, Setting, View} from "@/utils/tdInstruction";
|
|
import {getLatestTimeWithMinuteMultipleOfFive} from "@/utils/date";
|
|
import {getLatestTimeWithMinuteMultipleOfFive} from "@/utils/date";
|
|
|
|
+import {Hide, View as Elview} from '@element-plus/icons-vue'
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const dibaImage = (new URL('@/assets/images/dike.png', import.meta.url).href)
|
|
const dibaImage = (new URL('@/assets/images/dike.png', import.meta.url).href)
|
|
@@ -374,6 +375,13 @@ function getLatestWaterQuality() {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const labelState = reactive({'测站主页': false, '仪器运维': false})
|
|
|
|
+
|
|
|
|
+function setStationLabel(type = "测站主页") {
|
|
|
|
+ labelState[type] = !labelState[type]
|
|
|
|
+ Label.setStationLabel(type, labelState[type])
|
|
|
|
+}
|
|
|
|
+
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
reloadRight1()
|
|
reloadRight1()
|
|
reloadRight3()
|
|
reloadRight3()
|
|
@@ -451,7 +459,21 @@ onMounted(() => {
|
|
<div class="right-btn-option" @click="Setting.setWeather('大雨')">大雨</div>
|
|
<div class="right-btn-option" @click="Setting.setWeather('大雨')">大雨</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right-btn-item"><img :src="flagSrc"></div>
|
|
|
|
|
|
+ <div class="right-btn-item">
|
|
|
|
+ <img :src="flagSrc">
|
|
|
|
+ <div class="right-btn-option-list">
|
|
|
|
+ <div class="right-btn-option" @click="setStationLabel('测站主页')">
|
|
|
|
+ 测站标签
|
|
|
|
+ <Elview v-show="labelState['测站主页']"></Elview>
|
|
|
|
+ <Hide v-show="!labelState['测站主页']"></Hide>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="right-btn-option" @click="setStationLabel('仪器运维')">
|
|
|
|
+ 仪器运维
|
|
|
|
+ <Elview v-show="labelState['仪器运维']"></Elview>
|
|
|
|
+ <Hide v-show="!labelState['仪器运维']"></Hide>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="right-btn-item">
|
|
<div class="right-btn-item">
|
|
<img :src="walkSrc">
|
|
<img :src="walkSrc">
|
|
<div class="right-btn-option-list">
|
|
<div class="right-btn-option-list">
|
|
@@ -516,7 +538,7 @@ onMounted(() => {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
right: 1.8rem;
|
|
right: 1.8rem;
|
|
- width: 140px;
|
|
|
|
|
|
+ width: 160px;
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -528,6 +550,17 @@ onMounted(() => {
|
|
text-align: center;
|
|
text-align: center;
|
|
color: #fff;
|
|
color: #fff;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-size: 1rem;
|
|
|
|
+
|
|
|
|
+ svg {
|
|
|
|
+ width: 1rem;
|
|
|
|
+ height: 1rem;
|
|
|
|
+ margin-left: .5rem;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|