Commit 7ed67863 by 张杰

111

1 parent 7dde06cb
......@@ -51,7 +51,7 @@
<div class="title">{{staticInfo.allActiveNumber}}</div>
<div id="activedChart" class="c_canvas"></div>
<div class="footer">
今日绑定数:{{staticInfo.activeNumForToday}}
今日激活数:{{staticInfo.activeNumForToday}}
</div>
</div>
<!-- 数据 end -->
......@@ -65,9 +65,19 @@
<span>设备在线数</span>
<el-tooltip class="item" effect="dark" placement="right-start">
<div slot="content">
<p>总激活数:统计该账号权限下,有线设备和无线设备的激活数之和;</p>
<p>趋势图:统计该账号权限下,最近30天的日激活数趋势;</p>
<p>今日激活数:统计该账号权限下,今日有线设备和无线设备的激活数之和;</p>
<p>在线数 = 有线设备在线数 + 无线设备在线数</p>
<p>有线设备在线数:</p>
<p>
统计该账号权限下,在统计当日所有设备在线率情况,
<span>3天内(72小时内)</span>连接服务器即认为在线;
</p>
<p>无线设备在线数:</p>
<p>
统计该账号权限下,在统计当日所有设备在线率情况,
<span>3天内(72小时内)</span>连接服务器即认为在线;
</p>
<p>在线率 = 在线数 / 总激活数;</p>
<p>在线率只保留整数,四舍五入</p>
</div>
<i class="el-icon-question"></i>
</el-tooltip>
......@@ -207,7 +217,7 @@ export default {
{ name: "上月", id: 6 },
{ name: "近30日", id: 11 },
],
active: 2,
active: 1,
staticInfo: {},
alarmInfo: {},
isZhongli: false,
......@@ -237,15 +247,15 @@ export default {
// 在线率
let m = [];
m.push({ value: obj.onlineRate, name: "" });
m.push({ value: 1 - obj.onlineRate, name: "" });
m.push({ value: obj.onlineRate, name: "" });
this.createBindChart("onlineChart", m);
// 离线率
let n = [];
n.push({ value: obj.offlineRate, name: "" });
n.push({ value: 1 - obj.offlineRate, name: "" });
n.push({ value: obj.offlineRate, name: "" });
this.createBindChart("offlineChart", n);
});
......@@ -283,6 +293,9 @@ export default {
});
var aChart = echarts.init(document.getElementById("activedChartBox"));
aChart.setOption({
tooltip: {
trigger: "axis",
},
xAxis: {
type: "category",
boundaryGap: false,
......@@ -293,6 +306,7 @@ export default {
},
yAxis: {
type: "value",
minInterval:1
},
series: [
{
......@@ -314,6 +328,7 @@ export default {
show: false,
},
legendHoverLink: false,
color:['#c0c0c0', '#0096fa', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc'],
series: [
{
type: "pie",
......@@ -329,8 +344,8 @@ export default {
// 页面跳转
linkToPage(path) {
let row = {'alarmStatus':1}
history.pushState(row, '', path);
let row = { alarmStatus: 1 };
history.pushState(row, "", path);
},
// 获取总绑定数报表
......@@ -351,6 +366,9 @@ export default {
createLineChart(id, xDate, yDate) {
var aChart = echarts.init(document.getElementById(id));
aChart.setOption({
tooltip: {
trigger: "axis",
},
xAxis: {
show: false,
type: "category",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!