|
|
@ -72,7 +72,7 @@
|
|
|
|
style="width: 90%;height: 150px;margin-left: 5%;background-color: rgba(0,0,0,0.4);margin-top: 10px;border-radius: 5px;overflow: hidden;">
|
|
|
|
style="width: 90%;height: 150px;margin-left: 5%;background-color: rgba(0,0,0,0.4);margin-top: 10px;border-radius: 5px;overflow: hidden;">
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
style="width: 20%;height: calc(100% - 20px);border-right: 1px solid #ccc;margin-top: 10px;display: inline-block;text-align: center;color:#fff;padding: 20px 0 0 0 ">
|
|
|
|
style="width: 20%;height: calc(100% - 20px);border-right: 1px solid #ccc;margin-top: 10px;display: inline-block;text-align: center;color:#fff;padding: 20px 0 0 0 ">
|
|
|
|
<div style="font-size: 32px;font-weight: 600;line-height: 50px">16</div>
|
|
|
|
<div style="font-size: 32px;font-weight: 600;line-height: 50px">{{ warningInfo?.total }}</div>
|
|
|
|
<div>报警总数</div>
|
|
|
|
<div>报警总数</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div style="display: inline-block;width: 20%;height:100%;color:#fff;text-align: center;position:relative;">
|
|
|
|
<div style="display: inline-block;width: 20%;height:100%;color:#fff;text-align: center;position:relative;">
|
|
|
@ -117,7 +117,8 @@
|
|
|
|
<TransitionGroup class="container" name="fade" tag="div">
|
|
|
|
<TransitionGroup class="container" name="fade" tag="div">
|
|
|
|
<div v-for="(i,index) in warringList" :key='i' ref="warningRef"
|
|
|
|
<div v-for="(i,index) in warringList" :key='i' ref="warningRef"
|
|
|
|
style="position:relative;color:#fff;height: 120px;">
|
|
|
|
style="position:relative;color:#fff;height: 120px;">
|
|
|
|
<img :src="`${i?.ispresslower === 1 ? 'src/assets/icons/ispresslower.png':''}${i?.ispresshigh === 1 ? 'src/assets/icons/ispresshigh.png':''}${i?.istemperaturehigh === 1 ? 'src/assets/icons/highTemperature.png':''}${i?.ispowerinvalue === 1 ? 'src/assets/icons/ispowerinvalue.png':''}`"
|
|
|
|
<img
|
|
|
|
|
|
|
|
:src="`${i?.ispresslower === 1 ? 'src/assets/icons/ispresslower.png':''}${i?.ispresshigh === 1 ? 'src/assets/icons/ispresshigh.png':''}${i?.istemperaturehigh === 1 ? 'src/assets/icons/highTemperature.png':''}${i?.ispowerinvalue === 1 ? 'src/assets/icons/ispowerinvalue.png':''}`"
|
|
|
|
style="width: 40px;height: 40px;position: absolute;top: 10px;left: 0px">
|
|
|
|
style="width: 40px;height: 40px;position: absolute;top: 10px;left: 0px">
|
|
|
|
<div style="position: absolute;top: 10px;left: 50px;font-size: 16px">
|
|
|
|
<div style="position: absolute;top: 10px;left: 50px;font-size: 16px">
|
|
|
|
{{ i?.ispresslower === 1 ? '低压' : '' }}
|
|
|
|
{{ i?.ispresslower === 1 ? '低压' : '' }}
|
|
|
@ -190,6 +191,7 @@ export default {
|
|
|
|
ispresshigh: 0,
|
|
|
|
ispresshigh: 0,
|
|
|
|
ispresslower: 0,
|
|
|
|
ispresslower: 0,
|
|
|
|
istemperaturehigh: 0,
|
|
|
|
istemperaturehigh: 0,
|
|
|
|
|
|
|
|
total:0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
chartData: [...(chinaMap.features.map(e => {
|
|
|
|
chartData: [...(chinaMap.features.map(e => {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -262,6 +264,13 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
async setInfo() {
|
|
|
|
async setInfo() {
|
|
|
|
await getIndexdata().then(response => {
|
|
|
|
await getIndexdata().then(response => {
|
|
|
|
|
|
|
|
this.warningInfo = {
|
|
|
|
|
|
|
|
ispowerinvalue: response.data.ispowerinvalue,
|
|
|
|
|
|
|
|
ispresshigh: response.data.ispresshigh,
|
|
|
|
|
|
|
|
ispresslower: response.data.ispresslower,
|
|
|
|
|
|
|
|
istemperaturehigh: response.data.istemperaturehigh,
|
|
|
|
|
|
|
|
total:response.data.ispowerinvalue+response.data.ispresshigh+response.data.ispresslower+response.data.istemperaturehigh
|
|
|
|
|
|
|
|
},
|
|
|
|
this.warringWaitList = [...response.data.warringList],
|
|
|
|
this.warringWaitList = [...response.data.warringList],
|
|
|
|
this.carData = {
|
|
|
|
this.carData = {
|
|
|
|
carBindGps: response.data.carBindGps,
|
|
|
|
carBindGps: response.data.carBindGps,
|
|
|
|