修改接口参数

dev
夜笙歌 1 year ago
parent 4ec98dc1f2
commit c710cb4e1b

@ -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/1', url: '/business/monitorPlatform/alarmStats/'+query,
method: 'get', method: 'get',
}) })
} }
@ -12,7 +12,7 @@ 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/1', url: '/business/monitorPlatform/subDevice/'+query,
method: 'get', method: 'get',
}) })
} }
@ -28,7 +28,7 @@ export function getAlarmInfos(query) {
export function ElectronicNumVo(query) { export function ElectronicNumVo(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/ElectronicNumVo/1', url: '/business/monitorPlatform/ElectronicNumVo/'+query,
method: 'get', method: 'get',
}) })
} }

@ -1,18 +1,18 @@
import request from '@/utils/request' import request from '@/utils/request'
// 树 // 树
export function treeList(query) { export function treeList(query=0) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/treeList/1', url: '/business/monitorPlatform/treeList/'+query,
method: 'get', method: 'get',
}) })
} }
// 中下 // 中下
export function selectDeviceByDeviceModeByMonitorUnitId(query) { export function selectDeviceByDeviceModeByMonitorUnitId(query=0,data=0) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/selectDevicesByMonitorUnitId/1/1', url: '/business/monitorPlatform/selectDevicesByMonitorUnitId/'+query+'/'+data,
method: 'get', method: 'get',
data:query data:query
}) })
@ -27,10 +27,10 @@ export function selectDeviceModeFunctionByFunctionType(query) {
}) })
} }
// 中上 // 中上
export function getMonitorById(query) { export function getMonitorById(query=0) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getMonitorById/1', url: '/business/monitorPlatform/getMonitorById/'+query,
method: 'get', method: 'get',
data:query data:query
}) })

@ -5,13 +5,7 @@ export function selectLatestDataByDeviceMode(query) {
return request({ return request({
url: '/business/monitorPlatform/selectLatestDataByDeviceMode', url: '/business/monitorPlatform/selectLatestDataByDeviceMode',
method: 'post', method: 'post',
data: { data: query
"sceneId": 1,
"deviceModeId": 1,
"startTime": 1222222222222,
"offset": 0,
"limit": 10
}
}) })
} }
@ -21,8 +15,6 @@ export function getDeviceModesBySceneId(data) {
return request({ return request({
url: '/business/monitorPlatform/getDeviceModesBySceneId', url: '/business/monitorPlatform/getDeviceModesBySceneId',
method: 'post', method: 'post',
data: { data:data
"sceneId": 1,
}
}) })
} }

@ -4,7 +4,7 @@ import request from '@/utils/request'
export function getDeviceInfo(query) { export function getDeviceInfo(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getDeviceInfo/1', url: '/business/monitorPlatform/getDeviceInfo/'+query,
method: 'get', method: 'get',
}) })
} }
@ -14,13 +14,7 @@ export function getHistoryData(query) {
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getHistoryData', url: '/business/monitorPlatform/getHistoryData',
method: 'post', method: 'post',
data:{ data:query
"sceneId": 1,
"deviceId": 2,
"offset": 0,
"limit": 5,
"startTime": 1266666666666
}
}) })
} }
@ -28,7 +22,7 @@ export function getHistoryData(query) {
export function getLinkDevices(query) { export function getLinkDevices(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getLinkDevices/1', url: '/business/monitorPlatform/getLinkDevices/'+query,
method: 'get', method: 'get',
}) })
} }

@ -4,7 +4,7 @@ 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/1', url: '/business/monitorPlatform/sceneAllNums/'+query,
method: 'get', method: 'get',
}) })
} }
@ -13,7 +13,7 @@ export function sceneAllNums(query) {
export function getLimitSubMonitorUnit(query) { export function getLimitSubMonitorUnit(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/limitSubMonitorUnit/1', url: '/business/monitorPlatform/limitSubMonitorUnit/'+query,
method: 'get', method: 'get',
}) })
} }
@ -22,7 +22,7 @@ export function getLimitSubMonitorUnit(query) {
export function getAlarmCountGroupAlarmType(query) { export function getAlarmCountGroupAlarmType(query) {
return request({ return request({
// baseURL:'/monitoring-api', // baseURL:'/monitoring-api',
url: '/business/monitorPlatform/getAlarmCountGroupAlarmType/1', url: '/business/monitorPlatform/getAlarmCountGroupAlarmType/'+query,
method: 'get', method: 'get',
}) })
} }

@ -2,7 +2,7 @@
<div> <div>
<div class="title">智慧物联监控平台</div> <div class="title">智慧物联监控平台</div>
<div> <div>
<div :class="`menu ${nowMenu==='1'? 'menuClick' :''}`" style="left: 2%" @click="toLink('index')" v-if="isIndex"> <div v-if="isIndex" :class="`menu ${nowMenu==='1'? 'menuClick' :''}`" style="left: 2%" @click="toLink('index')">
<span> <span>
监控主页 监控主页
</span> </span>
@ -13,7 +13,8 @@
{{ name }} <i class="el-icon-arrow-down el-icon--right"></i> {{ name }} <i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item v-for="i in selectSecnesList" :command="{router:i.router,name:i.sceneName}">{{ <el-dropdown-item v-for="i in selectSecnesList" :key="i.sceneId"
:command="{router:i.router,name:i.sceneName}">{{
i.sceneName i.sceneName
}} }}
</el-dropdown-item> </el-dropdown-item>
@ -32,7 +33,7 @@
</div> </div>
</div> </div>
<div class="right" > <div class="right">
<span> <span>
</span> </span>
@ -53,7 +54,8 @@ export default {
return { return {
selectSecnesList: [], selectSecnesList: [],
name: '智慧场景', name: '智慧场景',
isIndex : true isIndex: true,
sceneId: 0,
} }
}, },
props: { props: {
@ -63,16 +65,23 @@ export default {
}, },
}, },
mounted() { async mounted() {
if(this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')){ await this.setSelectSecnes()
if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) {
this.isIndex = true this.isIndex = true
}else{ } else {
this.isIndex = false this.isIndex = false
} }
this.setSelectSecnes()
if (this.$route.name === 'SmartScene') { if (this.$route.name === 'SmartScene') {
if (this.$route.query?.name) { if (this.$route.query?.name) {
this.name = this.$route.query?.name this.name = this.$route.query?.name
} else {
let routerData = this.selectSecnesList.find(e => e.sceneId === this.sceneId)
await this.$router.push({
path: "/board/" + (routerData.router || 'smartScene'),
query: {name: routerData.sceneName}
});
} }
} }
}, },
@ -80,7 +89,13 @@ export default {
async setSelectSecnes() { async setSelectSecnes() {
const {data} = await selectSecnes() const {data} = await selectSecnes()
this.selectSecnesList = data this.selectSecnesList = data
let defaultSceneId = data.find(e => e.defaultFlag === '1').sceneId
this.sceneId = defaultSceneId
this.$emit('sceneIdChange',defaultSceneId);
}, },
// sceneIdChange(){
//
// },
toLink(e) { toLink(e) {
this.$router.push({path: "/board/" + e}); this.$router.push({path: "/board/" + e});
}, },
@ -89,7 +104,6 @@ export default {
this.$router.push({path: "/board/" + (e.router || 'smartScene'), query: {name: e.name}}); this.$router.push({path: "/board/" + (e.router || 'smartScene'), query: {name: e.name}});
}, },
toIndex() { toIndex() {
console.log(123)
this.$router.push({path: "/index"}); this.$router.push({path: "/index"});
} }
} }

@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<svg-icon icon-class="github" @click="goto" /> <svg-icon icon-class="github" @click="goto"/>
</div> </div>
</template> </template>
@ -14,10 +14,10 @@ export default {
}, },
methods: { methods: {
goto() { goto() {
if(this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')){ if (this.$store.state.user.permissions.includes('business:monitor:index') || this.$store.state.user.permissions.includes('*:*:*')) {
this.$router.push({path: "/board/index"}); this.$router.push({path: "/board/index"});
}else{ } else {
this.$router.push({path:'/board/smartScene'}) this.$router.push({path: '/board/smartScene'})
} }
} }
} }

@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<div class="centerImg"></div> <div class="centerImg"></div>
<BoardTopNav nowMenu="2"></BoardTopNav> <BoardTopNav nowMenu="2" @sceneIdChange="sceneIdChange"></BoardTopNav>
<Chart ref="chart1" class="chart1"></Chart> <Chart ref="chart1" class="chart1"></Chart>
<div class="table1"> <div class="table1">
<div style="background-color: #094170"> <div style="background-color: #094170">
@ -133,17 +133,24 @@ export default {
boundaryGap: [0, 0.01], boundaryGap: [0, 0.01],
}, },
}, },
table1Data: [] table1Data: [],
sceneId: 0,
} }
}, },
mounted() { mounted() {
this.createMap()
this.getAlarmStats()
this.getAubDevice()
this.setAlarmInfos()
this.setElectronicNumVo()
}, },
methods: { methods: {
sceneIdChange(e) {
this.sceneId = e
this.getData()
},
async getData() {
await this.createMap()
await this.getAlarmStats()
await this.getAubDevice()
await this.setAlarmInfos()
await this.setElectronicNumVo()
},
dispose() { dispose() {
this.$confirm('该问题已处理?', '提示', { this.$confirm('该问题已处理?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -167,16 +174,16 @@ export default {
center: [113.4, 23.35], center: [113.4, 23.35],
}); });
}, },
setMarker(position) { setPolygon(position) {
let marker =new AMap.Marker({ let e = position.map(val => {
position: position, return [val.longitude, val.latitude]
icon: red,
}) })
map.add(marker) let thisPolygon = new AMap.Polygon({path: e});
map.add(thisPolygon)
map.setFitView() map.setFitView()
}, },
setCircle(center,radius) { setCircle(center, radius) {
let circle =new AMap.Circle({ let circle = new AMap.Circle({
center, center,
radius, radius,
borderWeight: 3, borderWeight: 3,
@ -191,7 +198,7 @@ export default {
map.setFitView() map.setFitView()
}, },
async getAlarmStats() { async getAlarmStats() {
const {data} = await alarmStats() const {data} = await alarmStats(this.sceneId)
let option1 = { let option1 = {
...this.chart1Option, ...this.chart1Option,
yAxis: { yAxis: {
@ -239,10 +246,10 @@ 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.sceneId)
this.num1 = data.deviceNum this.num1 = data.deviceNum
this.num2 = data.onlineDeviceNum this.num2 = data.subSum
this.num3 = data.subSum this.num3 = data.onlineDeviceNum
}, },
async setAlarmInfos() { async setAlarmInfos() {
const {rows: data} = await getAlarmInfos() const {rows: data} = await getAlarmInfos()
@ -251,21 +258,18 @@ export default {
value1: i, value1: i,
value2: '高温预警', value2: '高温预警',
value3: e.monitorUnitName, value3: e.monitorUnitName,
status:e.handleStatus status: e.handleStatus
} }
}) })
}, },
async setElectronicNumVo() { async setElectronicNumVo() {
const {data} = await ElectronicNumVo() const {data} = await ElectronicNumVo(this.sceneId)
console.log(data)
data.forEach(e => { data.forEach(e => {
if (e.areaPoints?.length > 0) { if (e.areaPoints?.length > 0) {
e.areaPoints.forEach(val => { this.setPolygon(e.areaPoints)
this.setMarker([val.longitude,val.latitude])
})
} }
if(e.centerPoint){ if (e.centerPoint) {
this.setCircle([e.centerPoint.longitude,e.centerPoint.latitude],e.radius) this.setCircle([e.centerPoint.longitude, e.centerPoint.latitude], e.radius)
} }
}) })
} }

@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<div class="centerImg"></div> <div class="centerImg"></div>
<BoardTopNav nowMenu="3"></BoardTopNav> <BoardTopNav @sceneIdChange="sceneIdChange" nowMenu="3"></BoardTopNav>
<div class="title">福建省电力公司</div> <div class="title">福建省电力公司</div>
<div class="tree"> <div class="tree">
@ -104,18 +104,25 @@ export default {
treeData: [], treeData: [],
controlList: [], controlList: [],
acquisitionList: [], acquisitionList: [],
MonitorInfo: {} MonitorInfo: {},
sceneId: 0,
} }
}, },
mounted() { async mounted() {
this.getTree()
this.getDevice()
this.getRightDevice()
this.setMonitorById()
}, },
methods: { methods: {
sceneIdChange(e){
this.sceneId = e
this.getData()
},
async getData() {
await this.getTree()
await this.getDevice()
await this.getRightDevice()
await this.setMonitorById()
},
switchChange(e) { switchChange(e) {
this.$confirm((this.controlList[e].deviceType === '1' ? '关闭' : '开启')+'该设备?', '提示', { this.$confirm((this.controlList[e].deviceType === '1' ? '关闭' : '开启') + '该设备?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -133,8 +140,7 @@ export default {
}); });
}, },
async getTree() { async getTree() {
const {data} = await treeList() const {data} = await treeList(this.sceneId)
console.log(data)
this.treeData = data this.treeData = data
}, },
treeClick(e) { treeClick(e) {
@ -145,21 +151,20 @@ export default {
} }
}, },
async getDevice(e) { async getDevice(e) {
const {data} = await selectDeviceByDeviceModeByMonitorUnitId({monitorUnitId: e}) const {data} = await selectDeviceByDeviceModeByMonitorUnitId(this.sceneId, e)
this.controlList = data.control this.controlList = data.control
this.acquisitionList = data.acquisition this.acquisitionList = data.acquisition
}, },
async getRightDevice(e) { async getRightDevice(e) {
const data = await selectDeviceModeFunctionByFunctionType({ const data = await selectDeviceModeFunctionByFunctionType({
"sceneId": 1, "sceneId": this.sceneId,
"deviceModeId": 1, "deviceModeId": 1,
"startTime": 1222222222222,
"offset": 0, "offset": 0,
"limit": 1 "limit": 1
}) })
}, },
async setMonitorById() { async setMonitorById() {
const {data} = await getMonitorById() const {data} = await getMonitorById(this.sceneId)
this.MonitorInfo = data this.MonitorInfo = data
} }
} }
@ -408,7 +413,7 @@ export default {
.btnC { .btnC {
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translate(-50%,50%); transform: translate(-50%, 50%);
} }
} }
} }

@ -1,7 +1,7 @@
<template> <template>
<div class="container"> <div class="container">
<div class="centerImg"></div> <div class="centerImg"></div>
<BoardTopNav nowMenu="3"></BoardTopNav> <BoardTopNav @sceneIdChange="sceneIdChange" nowMenu="3"></BoardTopNav>
<div class="leftMenu"> <div class="leftMenu">
<div v-for="i in deviceList" class="item"> <div v-for="i in deviceList" class="item">
<span>{{ i.deviceModeName }}</span> <span>{{ i.deviceModeName }}</span>
@ -96,16 +96,24 @@ export default {
}, },
maxHeight: 0, maxHeight: 0,
tableData: [], tableData: [],
deviceList:[] deviceList:[],
sceneId: 0,
} }
}, },
mounted() { mounted() {
this.maxHeight = this.$refs.right.clientHeight - this.$refs.search.clientHeight - this.$refs.pagination.clientHeight - 12 this.maxHeight = this.$refs.right.clientHeight - this.$refs.search.clientHeight - this.$refs.pagination.clientHeight - 12
this.tableShow = true this.tableShow = true
this.setSelectLatestDataByDeviceMode() t
this.setDeviceModesBySceneId()
}, },
methods: { methods: {
sceneIdChange(e){
this.sceneId = e
this.getData()
},
async getData() {
await this.setSelectLatestDataByDeviceMode()
await this.setDeviceModesBySceneId()
},
setStyle(e) { setStyle(e) {
if (e.rowIndex % 2 === 0) { if (e.rowIndex % 2 === 0) {
return {textAlign: 'center', backgroundColor: '#08406f', color: '#05aaba'} return {textAlign: 'center', backgroundColor: '#08406f', color: '#05aaba'}
@ -114,12 +122,20 @@ export default {
} }
}, },
async setSelectLatestDataByDeviceMode(){ async setSelectLatestDataByDeviceMode(){
const {data} = await selectLatestDataByDeviceMode() const {data} = await selectLatestDataByDeviceMode({
this.tableData = data.latestData.rows "sceneId": this.sceneId,
"deviceModeId": 1,
"startTime": 1222222222222,
"offset": 0,
"limit": 10
})
this.tableData = data.latestData?.rows || []
console.log(this.tableData) console.log(this.tableData)
}, },
async setDeviceModesBySceneId(){ async setDeviceModesBySceneId(){
const {data} = await getDeviceModesBySceneId() const {data} = await getDeviceModesBySceneId( {
"sceneId": this.sceneId,
})
this.deviceList = data this.deviceList = data
} }
} }

@ -1,16 +1,16 @@
<template> <template>
<div class="container"> <div class="container">
<div class="centerImg"></div> <div class="centerImg"></div>
<BoardTopNav nowMenu="4"></BoardTopNav> <BoardTopNav @sceneIdChange="sceneIdChange" nowMenu="4"></BoardTopNav>
<div class="collapse"> <div class="collapse">
<div style="margin-bottom: 24px"> <div style="margin-bottom: 24px">
<el-collapse v-model="activeName" accordion> <el-collapse accordion>
<el-collapse-item name="1"> <el-collapse-item name="1">
<template slot="title"> <template slot="title">
<div class="itemBg"> <div class="itemBg">
<div class="icon"></div> <div class="icon"></div>
<div class="icon1"></div> <div class="icon1"></div>
<div :style="'background-image: url('+topData.devicePic+')'" class="icon2"></div> <div :style="'background-image: url('+(topData&&topData.devicePic)+')'" class="icon2"></div>
<div class="title"> {{ topData.monitorUnitName }}</div> <div class="title"> {{ topData.monitorUnitName }}</div>
<div class="info"> <div class="info">
<div class="info1">所属区域</div> <div class="info1">所属区域</div>
@ -73,7 +73,7 @@
</el-collapse> </el-collapse>
</div> </div>
<el-collapse v-model="activeName" accordion> <el-collapse accordion>
<el-collapse-item v-for="i in bottomData"> <el-collapse-item v-for="i in bottomData">
<template slot="title"> <template slot="title">
<div class="itemBg"> <div class="itemBg">
@ -118,15 +118,22 @@ export default {
topData: {}, topData: {},
bottomData: [], bottomData: [],
radio: '日统计报表', radio: '日统计报表',
tableData: [] tableData: [],
sceneId:0
} }
}, },
mounted() { mounted() {
this.setDeviceInfo()
this.setHistoryData()
this.setLinkDevices()
}, },
methods: { methods: {
sceneIdChange(e){
this.sceneId = e
this.getData()
},
async getData() {
await this.setDeviceInfo()
await this.setLinkDevices()
await this.setHistoryData()
},
setStyle(e) { setStyle(e) {
if (e.rowIndex % 2 === 0) { if (e.rowIndex % 2 === 0) {
return {textAlign: 'center', backgroundColor: '#08406f', color: '#05aaba'} return {textAlign: 'center', backgroundColor: '#08406f', color: '#05aaba'}
@ -135,12 +142,18 @@ export default {
} }
}, },
async setDeviceInfo() { async setDeviceInfo() {
const {data} = await getDeviceInfo() const {data} = await getDeviceInfo(this.sceneId)
this.topData = data this.topData = data || {}
}, },
async setHistoryData() { async setHistoryData() {
const {data} = await getHistoryData() const {data} = await getHistoryData({
this.tableData = data.historyData.rows.map((e, i) => { "sceneId": this.sceneId,
"deviceId": 2,
"offset": 0,
"limit": 5,
"startTime": 1266666666666
})
this.tableData = (data?.historyData?.rows || []).map((e, i) => {
return { return {
...e, ...e,
...data.deviceDataColumns[i] ...data.deviceDataColumns[i]
@ -148,8 +161,7 @@ export default {
}) })
}, },
async setLinkDevices() { async setLinkDevices() {
const {data} = await getLinkDevices() const {data} = await getLinkDevices(this.sceneId)
console.log(data)
this.bottomData = data this.bottomData = data
} }
} }

@ -1,6 +1,6 @@
<template> <template>
<div class="container"> <div class="container">
<BoardTopNav nowMenu="2"></BoardTopNav> <BoardTopNav @sceneIdChange="sceneIdChange" nowMenu="2"></BoardTopNav>
<div class="num1">{{ num1 }}</div> <div class="num1">{{ num1 }}</div>
<div class="num2">{{ num2 }}</div> <div class="num2">{{ num2 }}</div>
<div class="title1">监控单元</div> <div class="title1">监控单元</div>
@ -121,23 +121,30 @@ export default {
singleWidth: 0, // (0) direction => 2/3 singleWidth: 0, // (0) direction => 2/3
waitTime: 0, waitTime: 0,
}, },
table1Data: [] table1Data: [],
sceneId:0
} }
}, },
mounted() { mounted() {
this.setAllNum()
this.setLimitSubMonitorUnit()
this.setAlarmCountGroupAlarmType()
this.setAlarmInfos()
}, },
methods: { methods: {
sceneIdChange(e){
this.sceneId = e
this.getData()
},
async getData() {
await this.setAllNum()
await this.setLimitSubMonitorUnit()
await this.setAlarmCountGroupAlarmType()
await this.setAlarmInfos()
},
async setAllNum() { async setAllNum() {
const {subSum, sum} = await sceneAllNums() const {subSum, sum} = await sceneAllNums(this.sceneId)
this.num1 = subSum this.num1 = subSum
this.num2 = sum this.num2 = sum
}, },
async setLimitSubMonitorUnit() { async setLimitSubMonitorUnit() {
const data = await getLimitSubMonitorUnit() const data = await getLimitSubMonitorUnit(this.sceneId)
this.LimitSubMonitorUnitList = data.rows this.LimitSubMonitorUnitList = data.rows
this.tableData = data.rows.slice(0, 4) this.tableData = data.rows.slice(0, 4)
this.total = data.total this.total = data.total
@ -146,7 +153,7 @@ export default {
this.tableData = this.LimitSubMonitorUnitList.slice(4 * (e - 1), 4 * (e - 1) + 4) this.tableData = this.LimitSubMonitorUnitList.slice(4 * (e - 1), 4 * (e - 1) + 4)
}, },
async setAlarmCountGroupAlarmType() { async setAlarmCountGroupAlarmType() {
let {data: data} = await getAlarmCountGroupAlarmType() let {data: data} = await getAlarmCountGroupAlarmType(this.sceneId)
data.sort((a, b) => { data.sort((a, b) => {
return b.alarmCount - a.alarmCount return b.alarmCount - a.alarmCount
}) })

Loading…
Cancel
Save