|
|
@ -1,24 +1,16 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div class="container">
|
|
|
|
<BoardTopNav nowMenu="2"></BoardTopNav>
|
|
|
|
<BoardTopNav nowMenu="2"></BoardTopNav>
|
|
|
|
<div class="num1">30</div>
|
|
|
|
<div class="num1">{{ num1 }}</div>
|
|
|
|
<div class="num2">216</div>
|
|
|
|
<div class="num2">{{ num2 }}</div>
|
|
|
|
<div class="num3">0</div>
|
|
|
|
|
|
|
|
<div class="num4">0</div>
|
|
|
|
|
|
|
|
<div class="num5">0</div>
|
|
|
|
|
|
|
|
<div class="num6">0</div>
|
|
|
|
|
|
|
|
<div class="num7">0</div>
|
|
|
|
|
|
|
|
<div class="num8">0</div>
|
|
|
|
|
|
|
|
<div class="title1">监控单元</div>
|
|
|
|
<div class="title1">监控单元</div>
|
|
|
|
<div class="title2">传感器</div>
|
|
|
|
<div class="title2">传感器</div>
|
|
|
|
<div class="title3">设备高温</div>
|
|
|
|
<div v-for="(i,k) in alarmCountGroupAlarmType" :class="'num'+(k+3)">
|
|
|
|
<div class="title4">设备振动</div>
|
|
|
|
{{ i.alarmCount }}
|
|
|
|
<div class="title5">烟雾火情</div>
|
|
|
|
</div>
|
|
|
|
<div class="title6">环境大风</div>
|
|
|
|
<div v-for="(i,k) in alarmCountGroupAlarmType" :class="'title'+(k+3)">
|
|
|
|
<div class="title7">柜内温度</div>
|
|
|
|
{{ i.alarmTypeName }}
|
|
|
|
<div class="title8">柜内冰浸</div>
|
|
|
|
</div>
|
|
|
|
<div class="title9">告警信息</div>
|
|
|
|
|
|
|
|
<div class="title10">监控单元</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="table1">
|
|
|
|
<div class="table1">
|
|
|
|
<div style="background-color: #094170">
|
|
|
|
<div style="background-color: #094170">
|
|
|
@ -44,7 +36,7 @@
|
|
|
|
处理情况
|
|
|
|
处理情况
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<vue-seamless-scroll :class-option="chart1TableOption" :data="table1Data" class="case-item"
|
|
|
|
<vue-seamless-scroll :class-option="{...chart1TableOption,limitMoveNum:8}" :data="table1Data" class="case-item"
|
|
|
|
style="height: calc(100% - 33px);overflow: hidden;">
|
|
|
|
style="height: calc(100% - 33px);overflow: hidden;">
|
|
|
|
<div v-for="(item, index) in table1Data" :key="index">
|
|
|
|
<div v-for="(item, index) in table1Data" :key="index">
|
|
|
|
<div :style='"background-color:" + ((index % 2 === 0) ? "#053460" : "#032d57")'>
|
|
|
|
<div :style='"background-color:" + ((index % 2 === 0) ? "#053460" : "#032d57")'>
|
|
|
@ -75,51 +67,20 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="right">
|
|
|
|
<div class="right">
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col v-for="i in tableData" :key="i.monitorUnitId" :span="12">
|
|
|
|
<div class="item">
|
|
|
|
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
|
|
<span style="margin-right: 28px;"> 变压器 </span>
|
|
|
|
|
|
|
|
<el-tag type="success">正常</el-tag>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="img"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
|
|
<span style="margin-right: 28px;"> 变压器 </span>
|
|
|
|
|
|
|
|
<el-tag type="success">正常</el-tag>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="img"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
|
|
|
|
<div class="title">
|
|
|
|
|
|
|
|
<span style="margin-right: 28px;"> 变压器 </span>
|
|
|
|
|
|
|
|
<el-tag type="success">正常</el-tag>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="img"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
<div class="item">
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
<div class="titleBg"></div>
|
|
|
|
<div class="title">
|
|
|
|
<div class="title">
|
|
|
|
<span style="margin-right: 28px;"> 变压器 </span>
|
|
|
|
<span style="margin-right: 28px;"> {{ i.monitorUnitName }} </span>
|
|
|
|
<el-tag type="success">正常</el-tag>
|
|
|
|
<el-tag :type="i.alarmStatus === 1 ?'success' : 'danger'">{{ i.alarmStatus === 1 ? '正常' : '异常' }}</el-tag>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="img"></div>
|
|
|
|
<div class="img"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
<div class="pagination">
|
|
|
|
<div class="pagination">
|
|
|
|
<el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="1000">
|
|
|
|
<el-pagination :page-size="pageSize" :pager-count="11" :total="total" layout="prev, pager, next"
|
|
|
|
|
|
|
|
@current-change="currentChange">
|
|
|
|
</el-pagination>
|
|
|
|
</el-pagination>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -130,7 +91,10 @@
|
|
|
|
import vueSeamlessScroll from "vue-seamless-scroll";
|
|
|
|
import vueSeamlessScroll from "vue-seamless-scroll";
|
|
|
|
import BoardTopNav from '@/components/BoardTopNav'
|
|
|
|
import BoardTopNav from '@/components/BoardTopNav'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
sceneAllNums
|
|
|
|
sceneAllNums,
|
|
|
|
|
|
|
|
getLimitSubMonitorUnit,
|
|
|
|
|
|
|
|
getAlarmCountGroupAlarmType,
|
|
|
|
|
|
|
|
getAlarmInfos
|
|
|
|
} from '@/api/board/smartScene'
|
|
|
|
} from '@/api/board/smartScene'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -140,105 +104,68 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
table1Data: [
|
|
|
|
num1: 0,
|
|
|
|
{
|
|
|
|
num2: 0,
|
|
|
|
data1: '001',
|
|
|
|
alarmCountGroupAlarmType: [],
|
|
|
|
data2: '越限',
|
|
|
|
LimitSubMonitorUnitList: [],
|
|
|
|
data3: '123123',
|
|
|
|
tableData: [],
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
pageSize: 4,
|
|
|
|
data5: '设备11233',
|
|
|
|
total: 1,
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
chart1TableOption: {
|
|
|
|
},
|
|
|
|
step: 0.5, // 数值越大速度滚动越快
|
|
|
|
{
|
|
|
|
limitMoveNum: 3, // 开始无缝滚动的数据量 this.dataList.length
|
|
|
|
data1: '001',
|
|
|
|
hoverStop: true, // 是否开启鼠标悬停stop
|
|
|
|
data2: '越限',
|
|
|
|
direction: 1, // 0向下 1向上 2向左 3向右
|
|
|
|
data3: '123123',
|
|
|
|
openWatch: true, // 开启数据实时监控刷新dom
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
singleHeight: 0, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
|
|
|
|
data5: '设备11233',
|
|
|
|
singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
waitTime: 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
table1Data: []
|
|
|
|
data1: '001',
|
|
|
|
}
|
|
|
|
data2: '越限',
|
|
|
|
|
|
|
|
data3: '123123',
|
|
|
|
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
mounted() {
|
|
|
|
data1: '001',
|
|
|
|
this.setAllNum()
|
|
|
|
data2: '越限',
|
|
|
|
this.setLimitSubMonitorUnit()
|
|
|
|
data3: '123123',
|
|
|
|
this.setAlarmCountGroupAlarmType()
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
this.setAlarmInfos()
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
methods: {
|
|
|
|
data1: '001',
|
|
|
|
async setAllNum() {
|
|
|
|
data2: '越限',
|
|
|
|
const {subSum, sum} = await sceneAllNums()
|
|
|
|
data3: '123123',
|
|
|
|
this.num1 = subSum
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
this.num2 = sum
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
async setLimitSubMonitorUnit() {
|
|
|
|
data1: '001',
|
|
|
|
const data = await getLimitSubMonitorUnit()
|
|
|
|
data2: '越限',
|
|
|
|
this.LimitSubMonitorUnitList = data.rows
|
|
|
|
data3: '123123',
|
|
|
|
this.tableData = data.rows.slice(0, 4)
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
this.total = data.total
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
currentChange(e) {
|
|
|
|
data1: '001',
|
|
|
|
this.tableData = this.LimitSubMonitorUnitList.slice(4 * (e - 1), 4 * (e - 1) + 4)
|
|
|
|
data2: '越限',
|
|
|
|
|
|
|
|
data3: '123123',
|
|
|
|
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
async setAlarmCountGroupAlarmType() {
|
|
|
|
data1: '001',
|
|
|
|
let {data: data} = await getAlarmCountGroupAlarmType()
|
|
|
|
data2: '越限',
|
|
|
|
data.sort((a, b) => {
|
|
|
|
data3: '123123',
|
|
|
|
return b.alarmCount - a.alarmCount
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
})
|
|
|
|
data5: '设备11233',
|
|
|
|
data = data.slice(0, 6)
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
this.alarmCountGroupAlarmType = data
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
async setAlarmInfos() {
|
|
|
|
data1: '001',
|
|
|
|
const {rows: data} = await getAlarmInfos()
|
|
|
|
data2: '越限',
|
|
|
|
console.log(data)
|
|
|
|
data3: '123123',
|
|
|
|
this.table1Data = data.map((e,i)=>{
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
return {
|
|
|
|
data5: '设备11233',
|
|
|
|
data1: i,
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
data2: e.alarmLevelName,
|
|
|
|
},
|
|
|
|
data3: e.alarmTypeName,
|
|
|
|
{
|
|
|
|
|
|
|
|
data1: '001',
|
|
|
|
|
|
|
|
data2: '越限',
|
|
|
|
|
|
|
|
data3: '123123',
|
|
|
|
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
|
|
|
|
data5: '设备11233',
|
|
|
|
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
data1: '001',
|
|
|
|
|
|
|
|
data2: '越限',
|
|
|
|
|
|
|
|
data3: '123123',
|
|
|
|
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
data4: '无线检测 检测值为 21° - 25°',
|
|
|
|
data5: '设备11233',
|
|
|
|
data5: e.monitorUnitName,
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
data6: '2021.01.01 00:00:00',
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
this.setAllNum()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
async setAllNum(){
|
|
|
|
|
|
|
|
const data = await sceneAllNums()
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -505,12 +432,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.pagination{
|
|
|
|
|
|
|
|
|
|
|
|
.pagination {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
left: 50%;
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
transform: translateX(-50%);
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
.el-pagination{
|
|
|
|
|
|
|
|
|
|
|
|
.el-pagination {
|
|
|
|
display: inline-block;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|