🍅 作者主页:Java李杨勇
🍅 简介:Java领域优质创作者🏆、Java李杨勇公号作者✌ 简历模板、学习资料、面试题库、技术互助【关注我,都给你】
🍅 欢迎点赞 👍 收藏 ⭐留言 📝
动图演示: 文末获取源码
数据表格
代码目录:
主要代码实现:
主页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> </td><td> </td><td> </td><td> </td><td> </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> </td><td> </td><td> </td><td> </td><td> </td></tr><tr class="aaa" style="font-size: 16px;" align="center" ><td> </td><td> </td><td> </td><td> </td><td> </td></tr><tr class="aaa" style="font-size: 16px;" align="center" ><td> </td><td> </td><td> </td><td> </td><td> </td></tr><tr class="aaa" style="font-size: 16px;" align="center" ><td> </td><td> </td><td> </td><td> </td><td> </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文件等需要引入进来
源码获取
大家点赞、收藏、关注、评论啦 、查看👇🏻👇🏻👇🏻微信公众号获取👇🏻👇🏻👇🏻
打卡 文章 更新 58/ 100天
专栏推荐阅读:
ECharts+HTML5大数据模板《100套》
HTML5大作业实战案例《100套》
Java毕设项目精品实战案例《100套》