pull/660/head
唐嗣成 2022-11-04 17:35:43 +08:00
parent fb1d9ca50a
commit 0815b8e130
1 changed files with 4 additions and 4 deletions

View File

@ -1,28 +1,28 @@
<template > <template >
<div id="consoleResource" style="width: 100%; height: 100%; background: #FFFFFF; text-align: center"> <div id="consoleResource" style="width: 100%; height: 100%; background: #FFFFFF; text-align: center">
<div style="width: 50%;height: 50%; float:left; "> <div style="width: 50%;height: 50%; float:left; ">
<el-progress :width="100" :stroke-width="8" type="circle" :percentage="deviceInfo.online/deviceInfo.total*100" style="margin-top: 20px; font-size: 18px"></el-progress> <el-progress :width="100" :stroke-width="8" type="circle" :percentage="Math.floor(deviceInfo.online/deviceInfo.total*100)" style="margin-top: 20px; font-size: 18px"></el-progress>
<div class="resourceInfo"> <div class="resourceInfo">
设备总数:{{deviceInfo.total}}<br/> 设备总数:{{deviceInfo.total}}<br/>
在线数:{{deviceInfo.online}} 在线数:{{deviceInfo.online}}
</div> </div>
</div> </div>
<div style="width: 50%;height: 50%; float:left; "> <div style="width: 50%;height: 50%; float:left; ">
<el-progress :width="100" :stroke-width="10" type="circle" :percentage="channelInfo.online/channelInfo.total*100" style="margin-top: 20px"></el-progress> <el-progress :width="100" :stroke-width="10" type="circle" :percentage="Math.floor(channelInfo.online/channelInfo.total*100)" style="margin-top: 20px"></el-progress>
<div class="resourceInfo"> <div class="resourceInfo">
通道总数:{{channelInfo.total}}<br/> 通道总数:{{channelInfo.total}}<br/>
在线数:{{channelInfo.online}} 在线数:{{channelInfo.online}}
</div> </div>
</div> </div>
<div style="width: 50%;height: 50%; float:left; "> <div style="width: 50%;height: 50%; float:left; ">
<el-progress :width="100" :stroke-width="10" type="circle" :percentage="pushInfo.online/pushInfo.total*100" style="margin-top: 20px"></el-progress> <el-progress :width="100" :stroke-width="10" type="circle" :percentage="Math.floor(pushInfo.online/pushInfo.total*100)" style="margin-top: 20px"></el-progress>
<div class="resourceInfo"> <div class="resourceInfo">
推流总数:{{pushInfo.total}}<br/> 推流总数:{{pushInfo.total}}<br/>
在线数:{{pushInfo.online}} 在线数:{{pushInfo.online}}
</div> </div>
</div> </div>
<div style="width: 50%;height: 50%; float:left; "> <div style="width: 50%;height: 50%; float:left; ">
<el-progress :width="100" :stroke-width="10" type="circle" :percentage="proxyInfo.online/proxyInfo.total*100" style="margin-top: 20px"></el-progress> <el-progress :width="100" :stroke-width="10" type="circle" :percentage="Math.floor(proxyInfo.online/proxyInfo.total*100)" style="margin-top: 20px"></el-progress>
<div class="resourceInfo"> <div class="resourceInfo">
拉流代理总数:{{proxyInfo.total}}<br/> 拉流代理总数:{{proxyInfo.total}}<br/>
在线数:{{proxyInfo.online}} 在线数:{{proxyInfo.online}}