|
@@ -28,7 +28,7 @@
|
|
|
</div>
|
|
|
<div class="vent-warn">
|
|
|
<div class="vent-icon"></div>
|
|
|
- <div class="item-content" @click="showModal('vent')">
|
|
|
+ <div class="item-content" @click="showModal('vent')">
|
|
|
<div class="ite-label">通风监测预警</div>
|
|
|
<div class="ite-val">{{ paramDatas.tf == 0
|
|
|
? '低风险'
|
|
@@ -91,7 +91,7 @@
|
|
|
</div>
|
|
|
<div class="fire-warn">
|
|
|
<div class="fire-icon"></div>
|
|
|
- <div class="item-content" @click="showModal('fire')" >
|
|
|
+ <div class="item-content" @click="showModal('fire')">
|
|
|
<div class="ite-label">火灾监测预警</div>
|
|
|
<div class="ite-val">{{ paramDatas.fire == 0
|
|
|
? '低风险'
|
|
@@ -131,7 +131,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { reactive, watch } from 'vue'
|
|
|
- import { useRouter } from 'vue-router';
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
import { useGlobSetting } from '/@/hooks/setting';
|
|
|
import RiskWarnLevel from './dz-risk.vue'
|
|
|
let props = defineProps({
|
|
@@ -148,32 +148,32 @@ let paramDatas = reactive<any>({})
|
|
|
const { sysOrgCode, sysDataType } = useGlobSetting();
|
|
|
|
|
|
//跳转详情
|
|
|
- function showModal(data) {
|
|
|
+function showModal(data) {
|
|
|
switch (data) {
|
|
|
- case 'vent':
|
|
|
- router.push('/ventilate/warn/home');
|
|
|
- break;
|
|
|
- case 'fire':
|
|
|
- router.push('/fire/warn/home');
|
|
|
- break;
|
|
|
- case 'dust':
|
|
|
- router.push('/dust/warn/home');
|
|
|
- break;
|
|
|
- case 'waterLevel':
|
|
|
- console.log('waterLevel');
|
|
|
- router.push('/warn/waterLevel/home');
|
|
|
- break;
|
|
|
- case 'gas':
|
|
|
- router.push('/gas/warn/home');
|
|
|
- break;
|
|
|
- case 'sbyj':
|
|
|
- router.push('/device/warn/home');
|
|
|
- break;
|
|
|
- case 'Minepressure':
|
|
|
- router.push('/monitorChannel/monitor-Minepressure');
|
|
|
- break;
|
|
|
+ case 'vent':
|
|
|
+ router.push('/ventilate/warn/home');
|
|
|
+ break;
|
|
|
+ case 'fire':
|
|
|
+ router.push('/fire/warn/home');
|
|
|
+ break;
|
|
|
+ case 'dust':
|
|
|
+ router.push('/dust/warn/home');
|
|
|
+ break;
|
|
|
+ case 'waterLevel':
|
|
|
+ console.log('waterLevel');
|
|
|
+ router.push('/warn/waterLevel/home');
|
|
|
+ break;
|
|
|
+ case 'gas':
|
|
|
+ router.push('/gas/warn/home');
|
|
|
+ break;
|
|
|
+ case 'sbyj':
|
|
|
+ router.push('/device/warn/home');
|
|
|
+ break;
|
|
|
+ case 'Minepressure':
|
|
|
+ router.push('/monitorChannel/monitor-Minepressure');
|
|
|
+ break;
|
|
|
}
|
|
|
- }
|
|
|
+}
|
|
|
|
|
|
watch(() => props.paramData, (newV, oldV) => {
|
|
|
paramDatas = newV
|
|
@@ -276,8 +276,8 @@ watch(() => props.paramData, (newV, oldV) => {
|
|
|
|
|
|
.gas-warn {
|
|
|
position: absolute;
|
|
|
- left: 420px;
|
|
|
- top: 436px;
|
|
|
+ left: 420px;
|
|
|
+ top: 436px;
|
|
|
width: 132px;
|
|
|
height: 108px;
|
|
|
background: var(--image-model_gas_warn) no-repeat;
|
|
@@ -296,7 +296,7 @@ watch(() => props.paramData, (newV, oldV) => {
|
|
|
|
|
|
.fire-warn {
|
|
|
position: absolute;
|
|
|
- right: 178px;
|
|
|
+ right: 178px;
|
|
|
top: 58px;
|
|
|
width: 132px;
|
|
|
height: 108px;
|
|
@@ -316,7 +316,7 @@ watch(() => props.paramData, (newV, oldV) => {
|
|
|
|
|
|
.sz-warn {
|
|
|
position: absolute;
|
|
|
- right:34px;
|
|
|
+ right: 34px;
|
|
|
top: 136px;
|
|
|
width: 132px;
|
|
|
height: 108px;
|
|
@@ -332,6 +332,7 @@ watch(() => props.paramData, (newV, oldV) => {
|
|
|
height: 56px;
|
|
|
background: var(--image-model_item_content) no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
|
|
|
.item-content1 {
|
|
@@ -362,6 +363,7 @@ watch(() => props.paramData, (newV, oldV) => {
|
|
|
.ite-content {
|
|
|
width: 50%;
|
|
|
height: 100%;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
</style>
|