上传电子围栏

dev
夜笙歌 1 year ago
parent bcccd60a6b
commit c88f1bbf83

@ -4,7 +4,7 @@ import request from '@/utils/request'
export function alarmStats(query) { export function alarmStats(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/alarmStats', url: '/business/monitorPlatform/alarmStats/1',
method: 'get', method: 'get',
}) })
} }
@ -12,7 +12,23 @@ export function alarmStats(query) {
export function subDevice(query) { export function subDevice(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/SubDevice', url: '/business/monitorPlatform/subDevice/1',
method: 'post', method: 'get',
})
}
// 左下
export function getAlarmInfos(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getAlarmInfos',
method: 'get',
})
}
// 右下
export function ElectronicNumVo(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/ElectronicNumVo/1',
method: 'get',
}) })
} }

@ -26,3 +26,21 @@ export function allNums(query) {
method: 'get', method: 'get',
}) })
} }
// 右下
export function getAlarmInfos(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getAlarmInfos',
method: 'get',
})
}
// 右上
export function getDeviceOperations(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getDeviceOperations/1',
method: 'get',
})
}

@ -4,7 +4,34 @@ import request from '@/utils/request'
export function sceneAllNums(query) { export function sceneAllNums(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/sceneAllNums', url: '/business/monitorPlatform/sceneAllNums/1',
method: 'get',
})
}
// 右
export function getLimitSubMonitorUnit(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/limitSubMonitorUnit/1',
method: 'get',
})
}
// 左中
export function getAlarmCountGroupAlarmType(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getAlarmCountGroupAlarmType/1',
method: 'get',
})
}
// 左下
export function getAlarmInfos(query) {
return request({
// baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getAlarmInfos',
method: 'get', method: 'get',
}) })
} }

@ -67,7 +67,7 @@ Vue.component('ImagePreview', ImagePreview)
AMapLoader.load({ AMapLoader.load({
'key': '268909dc36fd438908a64ebe057bfb17', 'key': '268909dc36fd438908a64ebe057bfb17',
'version': '2.0', 'version': '2.0',
'plugins': ['AMap.Scale','AMap.GeoJSON'] 'plugins': ['AMap.Scale','AMap.GeoJSON','AMap.MarkerClusterer','AMap.PolygonEditor','AMap.Polygon','AMap.CircleEditor']
}).then((AMap) => { }).then((AMap) => {
Vue.use(AMap) Vue.use(AMap)
}) })

@ -19,7 +19,7 @@
</div> </div>
</div> </div>
<vue-seamless-scroll <vue-seamless-scroll
:class-option="table1Data" :class-option="{...chart1TableOption,limitMoveNum:10}"
:data="table1Data" :data="table1Data"
class="case-item" class="case-item"
style="height: 84%;overflow: hidden;" style="height: 84%;overflow: hidden;"
@ -55,11 +55,11 @@
<div class="info1">监控单元数量</div> <div class="info1">监控单元数量</div>
<div class="info2">设备数量</div> <div class="info2">设备数量</div>
<div class="info3">在线设备数量</div> <div class="info3">在线设备数量</div>
<div class="num1">20</div> <div class="num1">{{ num1 }}</div>
<div class="num2">20</div> <div class="num2">{{ num2 }}</div>
<div class="num3">20</div> <div class="num3">{{ num3 }}</div>
</div> </div>
<div class="map" id="map"></div> <div id="map" class="map"></div>
</div> </div>
</template> </template>
@ -70,12 +70,15 @@ import vueSeamlessScroll from "vue-seamless-scroll";
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { import {
alarmStats, alarmStats,
subDevice subDevice,
getAlarmInfos,
ElectronicNumVo
} from '@/api/board/GPS' } from '@/api/board/GPS'
let map = null
import red from '@/assets/board/GPS/red.png' import red from '@/assets/board/GPS/red.png'
import green from '@/assets/board/GPS/green.png' import green from '@/assets/board/GPS/green.png'
let map = null
let polyEditor = null
export default { export default {
components: { components: {
Chart, Chart,
@ -84,28 +87,19 @@ export default {
}, },
data() { data() {
return { return {
chart1Data: [ num1: 0,
{ num2: 0,
value: 12, num3: 0,
name: '监控单元1', chart1TableOption: {
}, step: 0.5, //
{ limitMoveNum: 3, // this.dataList.length
value: 23, hoverStop: true, // stop
name: '监控单元2', direction: 1, // 0 1 2 3
openWatch: true, // dom
singleHeight: 0, // (0) direction => 0/1
singleWidth: 0, // (0) direction => 2/3
waitTime: 0,
}, },
{
value: 34,
name: '监控单元3',
},
{
value: 45,
name: '监控单元4',
},
{
value: 55,
name: '监控单元5',
}
],
chart1Option: { chart1Option: {
grid: { grid: {
left: "0%", left: "0%",
@ -138,92 +132,48 @@ export default {
boundaryGap: [0, 0.01], boundaryGap: [0, 0.01],
}, },
}, },
table1Data: [ table1Data: []
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
{
value1: '001',
value2: '高温预警',
value3: '车间',
},
]
} }
}, },
mounted() { mounted() {
this.createMap() this.createMap()
this.setMarker()
this.getAlarmStats() this.getAlarmStats()
this.getAubDevice()
this.setAlarmInfos()
this.setElectronicNumVo()
}, },
methods: { methods: {
createMap(){ createMap() {
map = new AMap.Map('map', { map = new AMap.Map('map', {
zoom: 11, zoom: 11,
zooms: [8, 20],
center: [113.4, 23.35], center: [113.4, 23.35],
}); });
}, },
setMarker(){ setMarker(position) {
var marker = new AMap.Marker({ let marker =new AMap.Marker({
position: [113.2, 23.35], position: position,
icon: red, icon: red,
}); })
var marker1 = new AMap.Marker({
position: [113.6, 23.35],
icon: green,
});
map.add(marker) map.add(marker)
map.add(marker1) map.setFitView()
}, },
async getAlarmStats(){ setCircle(center,radius) {
const {rows:data} = await alarmStats() let circle =new AMap.Circle({
center,
radius,
borderWeight: 3,
strokeColor: "#FF33FF",
strokeWeight: 6,
strokeOpacity: 0.2,
fillOpacity: 0.4,
strokeDasharray: [10, 10],
fillColor: '#1791fc',
})
map.add(circle);
map.setFitView()
},
async getAlarmStats() {
const {data} = await alarmStats()
let option1 = { let option1 = {
...this.chart1Option, ...this.chart1Option,
yAxis: { yAxis: {
@ -270,9 +220,35 @@ export default {
} }
this.$refs.chart1.setData(option1) this.$refs.chart1.setData(option1)
}, },
async getAubDevice(){ async getAubDevice() {
let data = await subDevice() let data = await subDevice()
this.num1 = data.deviceNum
this.num2 = data.onlineDeviceNum
this.num3 = data.subSum
},
async setAlarmInfos() {
const {rows: data} = await getAlarmInfos()
this.table1Data = data.map((e, i) => {
return {
value1: i,
value2: '高温预警',
value3: e.monitorUnitName,
}
})
},
async setElectronicNumVo() {
const {data} = await ElectronicNumVo()
console.log(data) console.log(data)
data.forEach(e => {
if (e.areaPoints?.length > 0) {
e.areaPoints.forEach(val => {
this.setMarker([val.longitude,val.latitude])
})
}
if(e.centerPoint){
this.setCircle([e.centerPoint.longitude,e.centerPoint.latitude],e.radius)
}
})
} }
} }
}; };
@ -387,7 +363,8 @@ export default {
font-size: 1.4vw; font-size: 1.4vw;
color: #fff; color: #fff;
} }
.map{
.map {
position: absolute; position: absolute;
top: 28%; top: 28%;
left: 31%; left: 31%;

@ -39,11 +39,11 @@
</div> </div>
<div <div
class="scrollTable"> class="scrollTable">
{{ item.value2 }} {{ item.value }}
</div> </div>
<div <div
class="scrollTable"> class="scrollTable">
{{ item.value }} {{ item.value2 }}
</div> </div>
</div> </div>
</div> </div>
@ -83,7 +83,10 @@
</div> </div>
<div> <div>
<div class="centerInfo">传感器数量</div> <div class="centerInfo">传感器数量</div>
<div class="centerInfo" style="font-weight:bold;top:19.3%;left: 42.5%;font-size: 2vw;">{{ centerNum.subSum }}</div> <div class="centerInfo" style="font-weight:bold;top:19.3%;left: 42.5%;font-size: 2vw;">{{
centerNum.subSum
}}
</div>
<div class="centerInfo" style="left: 56%">监控单元数量</div> <div class="centerInfo" style="left: 56%">监控单元数量</div>
<div class="centerInfo" style="font-weight:bold;top:19.3%;left: 66%;font-size: 2vw;">{{ centerNum.sum }}</div> <div class="centerInfo" style="font-weight:bold;top:19.3%;left: 66%;font-size: 2vw;">{{ centerNum.sum }}</div>
</div> </div>
@ -105,7 +108,7 @@
</div> </div>
</div> </div>
<vue-seamless-scroll <vue-seamless-scroll
:class-option="chart1TableOption" :class-option="{...chart1TableOption,limitMoveNum:10}"
:data="table1Data" :data="table1Data"
class="case-item" class="case-item"
style="height: calc(100% - 33px);overflow: hidden;" style="height: calc(100% - 33px);overflow: hidden;"
@ -142,18 +145,21 @@ import * as echarts from 'echarts';
import { import {
monitorUnitPercentage, monitorUnitPercentage,
monitorPercentage, monitorPercentage,
allNums allNums,
getAlarmInfos,
getDeviceOperations
} from '@/api/board/index' } from '@/api/board/index'
export default { export default {
components: { components: {
vueSeamlessScroll, vueSeamlessScroll,
Chart, Chart,
BoardTopNav BoardTopNav,
}, },
data() { data() {
return { return {
centerNum:{}, centerNum: {},
chart1Option: { chart1Option: {
tooltip: {}, tooltip: {},
angleAxis: { angleAxis: {
@ -191,28 +197,7 @@ export default {
singleWidth: 0, // (0) direction => 2/3 singleWidth: 0, // (0) direction => 2/3
waitTime: 0, waitTime: 0,
}, },
chart2Data: [ chart2Data: [],
{
value: 111,
name: '无源温度传感器',
},
{
value: 111,
name: '有源温度传感器',
},
{
value: 111,
name: '烟雾传感器',
},
{
value: 111,
name: '温湿度传感器',
},
{
value: 111,
name: 'CO传感器',
}
],
chart2Option: { chart2Option: {
color: ["#22acfd", "#22fe97", "#f9e728", "#ff922b", "#ed1814"], color: ["#22acfd", "#22fe97", "#f9e728", "#ff922b", "#ed1814"],
legend: { legend: {
@ -263,29 +248,7 @@ export default {
}, },
], ],
}, },
inTransitNum: 1999, inTransitNum: 0,
chart3Data: [
{
date: '10-01',
value: '100',
},
{
date: '10-02',
value: '200',
},
{
date: '10-03',
value: '100',
},
{
date: '10-04',
value: '300',
},
{
date: '10-05',
value: '200',
},
],
chart3Option: { chart3Option: {
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
@ -320,72 +283,101 @@ export default {
}, },
}, },
}, },
table1Data: [ table1Data: []
{ }
no: '001',
type: '高温警告',
location: '车间',
},
{
no: '001',
type: '高温警告',
location: '车间',
},
{
no: '001',
type: '高温警告',
location: '车间',
},
{
no: '001',
type: '高温警告',
location: '车间',
},
{
no: '001',
type: '高温警告',
location: '车间',
}, },
{ mounted() {
no: '001', this.setChart1()
type: '高温警告', this.setChart2()
location: '车间', this.setAllNums()
this.setTable3()
this.setDeviceOperations()
}, },
methods: {
async setChart1() {
const {rows: data} = await monitorPercentage()
let option1 = {
...this.chart1Option,
series: [
{ {
no: '001', type: "bar",
type: '高温警告', data: data.map((e, i) => {
location: '车间', return {
value: parseFloat(e.percentage),
name: e.sceneName,
itemStyle: {
color: this.chart1Color[this.chart1Color.length % i]
}
}
}),
showBackground: true,
coordinateSystem: "polar",
roundCap: true,
barWidth: 8,
}, },
{ ]
no: '001', }
type: '高温警告', this.$refs.chart1.setData(option1)
location: '车间', this.chart1Data = data.map(e => {
return {
value: e.sum || 0,
value2: e.err || 0,
name: e.sceneName || '',
}
})
}, },
{ async setChart2() {
no: '001', const {rows: data} = await monitorUnitPercentage()
type: '高温警告', let chart2Num = eval(data.map(e => e.sum).join("+"));
location: '车间', let option2 = {
...this.chart2Option,
dataset: {
source: [
["group", "占比"],
...data.map(e => [e.deviceModeName, parseFloat(e.percentage)])
],
}
}
this.$refs.chart2.setData(option2)
this.chart2Data = data.map(e => {
return {
value: e.sum,
name: e.deviceModeName,
}
})
}, },
{ async setAllNums() {
no: '001', const data = await allNums()
type: '高温警告', this.centerNum = data
location: '车间',
}, },
{ async setTable3(){
no: '001', const {rows:data} = await getAlarmInfos()
this.table1Data = data.map((e,i) => {
return {
no: i,
type: '高温警告', type: '高温警告',
location: '车间', location: e.monitorUnitName,
},
]
} }
})
}, },
mounted() { async setDeviceOperations(){
const {data:data} = await getDeviceOperations()
console.log(data)
let x = Object.keys(data)
let y = Object.values(data)
this.inTransitNum = y.reduce((a,b)=> {
return a + b
},0)
let option3 = { let option3 = {
...this.chart3Option, ...this.chart3Option,
xAxis: { xAxis: {
boundaryGap: false, boundaryGap: false,
type: "category", type: "category",
data: this.chart3Data.map(e => e.date), data: x,
splitLine: { splitLine: {
show: true, show: true,
@ -404,7 +396,7 @@ export default {
{ {
name: "", name: "",
type: "line", type: "line",
data: this.chart3Data.map(e => e.value), data: y,
color: "#00dae0", color: "#00dae0",
areaStyle: { areaStyle: {
normal: { normal: {
@ -433,62 +425,7 @@ export default {
], ],
} }
this.$refs.chart3.setData(option3) this.$refs.chart3.setData(option3)
this.setChart1()
this.setChart2()
this.setAllNums()
}, },
methods: {
async setChart1() {
const {rows: data} = await monitorUnitPercentage()
let option1 = {
...this.chart1Option,
series: [
{
type: "bar",
data: data.map((e, i) => {
return {
value: e.percentage,
name: e.deviceModeName,
itemStyle: {
color: this.chart1Color[i]
}
}
}),
showBackground: true,
coordinateSystem: "polar",
roundCap: true,
barWidth: 8,
},
]
}
this.$refs.chart1.setData(option1)
this.chart1Data = data.map(e => {
return {
value: e.sum || 0,
value2: e.err || 0,
name: e.deviceModeName || '',
}
})
},
async setChart2() {
const {rows: data} = await monitorPercentage()
let chart2Num = eval(data.map(e => e.sum).join("+"));
let option2 = {
...this.chart2Option,
dataset: {
source: [
["group", "占比"],
...data.map(e => [e.sceneName, (e.sum / chart2Num) * 100])
],
}
}
this.$refs.chart2.setData(option2)
},
async setAllNums() {
const data = await allNums()
this.centerNum = data
}
} }
} }
; ;

@ -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;
} }
} }

Loading…
Cancel
Save