|
@@ -3,12 +3,12 @@
|
|
|
<div class="panel-left">
|
|
|
<div class="pl-b1">
|
|
|
<span class="title1-left">水深管理</span>
|
|
|
- <div v-for="item,index in data_ssgl.value" class="plb1-item">
|
|
|
+ <div v-for="item in data_ssgl.value" class="plb1-item">
|
|
|
<img :src="item.iconUrl" alt="">
|
|
|
<div>
|
|
|
- <span @click="handleToggleYuji(index)" :class="{'highlight': index===1&&isYujiOn}">{{ item.title }}</span>
|
|
|
+ <span @click="handleToggleYuji(item)" :class="{'highlight': item.title==='淤积预警'&&isYujiOn}">{{ item.title }}</span>
|
|
|
<div>
|
|
|
- <span>{{ item.value }}</span>
|
|
|
+ <span :class="{'is-warning': item.value>0}">{{ item.value }}</span>
|
|
|
<span>{{ item.unit }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -156,17 +156,20 @@ export default {
|
|
|
onMounted(() => {
|
|
|
setSjjk(document.getElementById('chart_fstj'), chartData_fstj.value)
|
|
|
getGctj()
|
|
|
+ bus.on('changeYuJiNum',(val)=> {
|
|
|
+ data_ssgl.value[1].value = val
|
|
|
+ })
|
|
|
})
|
|
|
|
|
|
const data_ssgl = reactive({value: [
|
|
|
{ title: '维护水深', value: 8, unit: '米', iconUrl: require('@/assets/imgs/page_hdsj/logo-whss.png') },
|
|
|
- { title: '淤积预警', value: 1, unit: '处', iconUrl: require('@/assets/imgs/page_hdsj/logo-yjyj.png') },
|
|
|
+ { title: '淤积预警', value: 0, unit: '处', iconUrl: require('@/assets/imgs/page_hdsj/logo-yjyj.png') },
|
|
|
]})
|
|
|
|
|
|
const isYujiOn = ref(false)
|
|
|
|
|
|
- function handleToggleYuji(index) {
|
|
|
- if(index===1) {
|
|
|
+ function handleToggleYuji(item) {
|
|
|
+ if(item.title==='淤积预警'&&item.value>0) {
|
|
|
if(isYujiOn.value === false) {
|
|
|
ueCallCloseWater()
|
|
|
ueCallStartYjyj()
|
|
@@ -459,6 +462,10 @@ export default {
|
|
|
color: transparent;
|
|
|
background: linear-gradient(0deg, rgba(29,128,224,0.9) 0%, rgba(255,255,255,0.9) 70%);
|
|
|
-webkit-background-clip: text;
|
|
|
+ &.is-warning {
|
|
|
+ background: linear-gradient(0deg, rgba(224,159,29,0.9) 0%, rgba(255,255,255,0.9) 70%);
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ }
|
|
|
}
|
|
|
span:nth-child(2) {
|
|
|
font-size: 14px;
|
|
@@ -469,12 +476,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .plb1-item:nth-last-child(1) {
|
|
|
- &>div>div>span:nth-child(1) {
|
|
|
- background: linear-gradient(0deg, rgba(224,159,29,0.9) 0%, rgba(255,255,255,0.9) 70%);
|
|
|
- -webkit-background-clip: text;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
.pl-b2 {
|