???? 作者主页:​​Java李杨勇 ​

???? 简介:Java领域优质创作者????、Java李杨勇公号作者✌  简历模板、学习资料、面试题库、技术互助 



动图演示: 文末获取源码 

基于Echarts+HTML5可视化数据大屏展示—物联网平台数据统计平台_css

 数据表格

基于Echarts+HTML5可视化数据大屏展示—物联网平台数据统计平台_echarts_02



代码目录:


基于Echarts+HTML5可视化数据大屏展示—物联网平台数据统计平台_echarts_03


主要代码实现:


主页HTML布局: 

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>数据大屏</title>
<link rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
</head>
<body>
<header>
物联网平台数据统计
<span id=localtime style=" font-size:14px; position: absolute; right: 30px; top:-20px; "></span>
</header>
<div id="content">
<div class="content_left">
<div class="dtuplc">
<div class="dtu">
<div id="container" style="height: 100%;"></div>
</div>
<div class="plc">
<div id="container1" style="height: 100%"></div>
</div>
</div>
<!--
DTU和PLC完
-->
<div class="online">
<div class="title"><img src="images/icon01.png" /> 设备在线情况</div>
<div class="online_con" id="container2">

</div>
</div>
<div class="industry">
<div class="title"><img src="images/icon02.png" /> 接入工厂类型</div>
<div class="industry_con" id="container3"></div>
</div>
</div>
<div class="content_center">
<div class="center_top">
<div class="title"><img src="images/icon03.png" /> 平台数据分布</div>
<div class="center_top_con" id="distribution_map">
</div>
</div>
<div class="center_bot">
<table class="panel-table"bordercolor="#0d48e0" border="1">
<thead bgcolor="#0e4ae0" align="center" >
<tr height="40">
<th colspan="6"><img src="images/icon04.png" /> 监控列表</th>
</tr>
</thead>
<tbody>
<tr class="aaa" align="center">
<td v-for="item in factoryHeader" style="color: #00fcff; font-size: 18px; padding: 5px 0;">{{ item.categories }}</td>
</tr>
<tr v-for="y in factory.slice(0,6)" class="aaa" style="font-size: 16px;" align="center" >
<td>{{ y.company }}</td>
<td>{{ y.dtuCnt }}</td>
<td>{{ y.plcCnt }}</td>
<td>{{ y.dataCnt }}</td>
<td>{{ y.alarm }}</td>
<td width="250">
<button class="b1 click_pop">报警记录</button>
<button class="b2 click_pop2">历史数据</button>
<button class="b3 click_pop3">组态应用</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="content_right">
<div class="report">
<div class="report1">
<p>告警信息</p>
<small>{{alarm.alarm}}条</small>
</div>
<div class="report2">
<p>故障信息</p>
<small>{{alarm.fault}} 条</small>
</div>
</div>
<div class="news_report">
<div class="title"><img src="images/icon05.png" /> 报警记录</div>
<div class="news_list">
<ul>
<li v-for="item in almMsg.slice(0,3)" class="li02">
{{ item.msg }}
</li>
</ul>
</div>
</div>
<div class="data_box">
<div class="title"><img src="images/icon06.png" /> 数据记录</div>
<div class="data_con" id="container4">
</div>
</div>
</div>
</div>
<!--遮罩层-->
<div class="bgPop"></div>
<!--弹出框-->
<div class="pop">
<div class="pop-top">
报警记录
<span class="pop-close">X</span>
</div>
<div class="pop-content">
<table class="panel-table" bordercolor="#deefff" border="1">
<thead bgcolor="#971212" align="center" >
<tr height="38">
<th>字段</th>
<th>字段</th>
<th>字段</th>
<th>字段</th>
<th>字段</th>
</tr>
</thead>
<tbody>


<tr class="aaa" style="font-size: 16px;" align="center" >
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
<div class="pop-foot">
<input type="button" value="确定" class="pop-cancel pop-close">
</div>
</div>
<script>
$(document).ready(function () {
$('.pop-close').click(function () {
$('.bgPop,.pop').hide();
});
$('.click_pop').click(function () {
$('.bgPop,.pop').show();
});
})

</script>
<!--遮罩层-->
<div class="bgPop2"></div>
<!--弹出框-->
<div class="pop2">
<div class="pop-top">
历史记录
<span class="pop-close">X</span>
</div>
<div class="pop-content">
<table class="panel-table" bordercolor="#deefff" border="1">
<thead bgcolor="#10aaa5" align="center" >
<tr height="38">
<th>字段</th>
<th>字段</th>
<th>字段</th>
<th>字段</th>
<th>字段</th>
</tr>
</thead>
<tbody>
<tr class="aaa" style="font-size: 16px;" align="center" >
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="aaa" style="font-size: 16px;" align="center" >
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr class="aaa" style="font-size: 16px;" align="center" >
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

<tr class="aaa" style="font-size: 16px;" align="center" >
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
<div class="pop-foot">
<input type="button" value="确定" class="pop-cancel pop-close">
</div>
</div>


</body>
</html>

CSS样式文件

body {
margin: 0;
padding: 0;
height: 100%;
}

html {
font-family: "微软雅黑";
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

body {
background-color: #0b122e;
color: #fff;
position: relative;
font-family: "微软雅黑";
}
table
{
border-collapse:collapse;
}
img{vertical-align: middle;}
ul { margin: 0; padding: 0;}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}

.clearfix:after {
clear: both;
overflow: hidden;
}

.clearfix {
*zoom: 1;
}

作品来自于网络收集、侵权立删 

上面的图片文件以及js文件等需要引入进来