前言
🚀 基于 Echarts 实现可视化数据大屏响应式展示效果的源码,,基于html+css+javascript+echarts制作, 可以在此基础上重新开发。
本项目中使用的是echarts图表库,ECharts 提供了常规的折线图、柱状图、散点图、饼图、K线图,用于统计的盒形图,用于地理数据可视化的地图、热力图、线图,用于关系数据可视化的关系图、treemap、旭日图,多维数据可视化的平行坐标,还有用于 BI 的漏斗图,仪表盘,并且支持图与图之间的混搭。
⚽精彩专栏推荐👇🏻👇🏻👇🏻
❤ 【作者主页——🔥获取更多优质源码】
❤ 【1000套 毕设项目精品实战案例】
❤ 【 20套 VUE+Echarts 大数据可视化源码】
❤ 【150套 HTML+ Echarts大数据可视化源码 】
文章目录
前言一、Echart是什么二、ECharts入门教程三、作品演示四、代码实现1.HTML2.CSS3.JavaScript五、更多干货一、Echart是什么
ECharts是一个使用 JavaScript 实现的开源可视化库,可以流畅的运行在 PC 和移动设备上,兼容当前绝大部分浏览器(IE8/9/10/11,Chrome,Firefox,Safari等),底层依赖矢量图形库 ZRender,提供直观,交互丰富,可高度个性化定制的数据可视化图表。
二、ECharts入门教程
5 分钟上手ECharts
三、作品演示
四、代码实现
1.HTML
<!DOCTYPE html><html lang="en"><head><link href="css/BigData.css" rel="stylesheet" type="text/css" /><link href="css/index.css" rel="stylesheet" type="text/css" /><link href="css/index01.css" rel="stylesheet" type="text/css" /><script src="/jquery/jquery-1.10.2.js"></script><link href="js/bstable/css/bootstrap.min.css" rel="stylesheet" type="text/css" /><link href="js/bstable/css/bootstrap-table.css" rel="stylesheet" type="text/css" /><link href="css/Security_operation.css" rel="stylesheet" type="text/css" /><link rel="stylesheet" href="js/artDialog/skins/default.css" type="text/css" /><script src="js/laydate.js"></script><script src="js/Home_page.js"></script><meta charset="UTF-8"><title>河长制监督系统</title><style>.aui_title {background-color: #407fff !important;height: 32px;line-height: 32px;font-weight: 700;font-size: 14px}</style></head><body><div class="data_bodey"><div class="index_nav"><ul style="height: 30px; margin-bottom: 0px;"><li class="l_left total_chose_fr" onclick="analysis()">实时监测</li><li class="l_left total_chose_pl" onclick="department()">生产分析</li><li class="l_left total_chose_pl">销售分析</li><li class="r_right total_chose_pl">安全分析</li><li class="r_right total_chose_pl">人员分析</li><li class="r_right total_chose_pl">管理分析</li></ul><div class="total_chose_box" style="display: none;"><div style="height: 32px;"></div><span class="chose_tltle">请选择年份:</span><select class="year_chose"><option></option><option></option><option></option><option></option><option></option><option></option></select><span class="chose_tltle">请输入月份:</span><input class="chose_text_in"><span class="chose_tltle">请选择区域:</span><select class="year_chose"><option> 成都市</option><option>自贡市</option><option>攀枝花市</option><option>泸州市</option><option>德阳市</option><option>绵阳市</option><option>广元市</option><option>遂宁市</option><option>内江市</option><option>乐山市</option><option>南充市</option><option>宜宾市</option><option>广安市</option><option>达州市</option><option>巴中市</option><option>雅安市</option><option>眉山市</option><option>资阳市</option><option>阿坝州</option><option>甘孜州</option><option>凉山州</option></select><button class="chose_enter">确定</button></div><div class="clear"></div></div><div class="index_tabs"><div class="inner" style="height: 109%;"><div class="left_cage"><div class="dataAllBorder01 cage_cl" style="!important; height: 24%;"><img src="video/1.jpg" class="dataAllBorder02 video_cage"></div><div class="dataAllBorder01 cage_cl" style="margin-top: 1.5% !important; height: 38%;"><div class="dataAllBorder02 video_cage"><img src="video/radi01.jpg" class="video_around video_around_chose"><img src="video/radi02.jpg" class="video_around video_around_chose"><img src="video/radi03.jpg" class="video_around video_around_chose"><img src="video/radi04.jpg" class="video_around video_around_chose"></div></div><div class="dataAllBorder01 cage_cl"style="margin-top: 1.5% !important; height: 32%; position: relative;"><div class="dataAllBorder02" style="padding: 1.2%; overflow: hidden"><div class="message_scroll_box"><div class="message_scroll"><div class="scroll_top"><span class="scroll_title">高锰酸盐超标警告</span><span class="scroll_level scroll_level01">一级</span><a class="localize"></a><span class="scroll_timer">17-09-13/9:52</span></div><div class="msg_cage"><a class="localize_title"><span><label>编号</label>:GH32101</span><spanclass="right"><label>监测值</label>:1.1(mg/Ls)</span></a></div><div class="msg_cage"><a class="localize_msg">xx阳市沱江一段21号排污口处</a></div></div><div class="message_scroll"><div class="scroll_top"><span class="scroll_title">总磷超标警告</span><span class="scroll_level scroll_level03">三级</span><a class="localize"></a><span class="scroll_timer">17-09-13/9:52</span></div><div class="msg_cage"><a class="localize_title"><span><label>编号</label>:GH32101</span><spanclass="right"><label>监测值</label>:1.1(mg/Ls)</span></a></div><div class="msg_cage"><a class="localize_msg">xx阳市沱江一段21号排污口处</a></div></div><div class="message_scroll"><div class="scroll_top"><span class="scroll_title">高锰酸盐超标警告</span><span class="scroll_level scroll_level02">二级</span><a class="localize"></a><span class="scroll_timer">17-09-13/9:52</span></div><div class="msg_cage"><a class="localize_title"><span><label>编号</label>:GH32101</span><spanclass="right"><label>监测值</label>:1.1(mg/Ls)</span></a></div><div class="msg_cage"><a class="localize_msg">xx阳市沱江一段21号排污口处。</a></div></div><div class="message_scroll"><div class="scroll_top"><span class="scroll_title">高锰酸盐超标警告</span><span class="scroll_level scroll_level01">一级</span><a class="localize"></a><span class="scroll_timer">17-09-13/9:52</span></div><div class="msg_cage"><a class="localize_title"><span><label>编号</label>:GH32101</span><spanclass="right"><label>监测值</label>:1.1(mg/Ls)</span></a></div><div class="msg_cage"><a class="localize_msg">xx阳市沱江一段21号排污口处</a></div></div></div></div><div class="scroll_tool_outbox"><div class="scroll_tool_box"><a class="scroll_tool" href="#">查看历史推送</a></div></div></div></div><div class="center_cage"><div class="dataAllBorder01 cage_cl" style="!important; height: 62.7%; position: relative;"><div class="dataAllBorder02" style="position: relative; overflow: hidden;"><div class="map_title_box" style="height: 6%"><div class="map_title_innerbox"><div class="map_title">XX实时监测地图</div></div></div><div class="map" id="divMap"></div><div class="display_type_box display_box" style="display: none;overflow:auto"><div class="display_type_center_box"><ul class="display_type_inner_box" id="layerList"><li class="display_type_msg"><input id="zt_4" type="checkbox"class="display_type_chose" /> XX监测</li><li class="display_type_msg"><input id="zt_1" type="checkbox"class="display_type_chose" />流量监测</li><li class="display_type_msg"><input id="zt_5" type="checkbox"class="display_type_chose" />水位监测</li><li class="display_type_msg"><input id="zt_6" type="checkbox"class="display_type_chose" />视频</li><li class="display_type_msg"><input id="zt_2" type="checkbox"class="display_type_chose" />车辆监测</li></ul></div><div class="display_type_funct_box"><span class="display_type_funct display_type_funct_sure">确定</span></div></div><div class="city_chose_box display_box" style="display: none"><div class="display_type_center_box"><ul class="display_type_inner_box" id="ulCity"><li class="display_type_msg"> 成都市</li><li class="display_type_msg">自贡市</li><li class="display_type_msg">攀枝花市</li><li class="display_type_msg">泸州市</li><li class="display_type_msg">德阳市</li><li class="display_type_msg">绵阳市</li><li class="display_type_msg">广元市</li><li class="display_type_msg">遂宁市</li><li class="display_type_msg">内江市</li><li class="display_type_msg">乐山市</li><li class="display_type_msg">南充市</li><li class="display_type_msg">宜宾市</li><li class="display_type_msg">广安市</li><li class="display_type_msg">达州市</li><li class="display_type_msg">巴中市</li><li class="display_type_msg">雅安市</li><li class="display_type_msg">眉山市</li><li class="display_type_msg">资阳市</li><li class="display_type_msg">阿坝州</li><li class="display_type_msg">甘孜州</li><li class="display_type_msg">凉山州</li></ul></div><div class="display_type_funct_box"><span class="display_type_funct display_type_funct_sure">确定</span></div></div><div class="trajectory_box" style="display: none" id="divRouteReview"><input class="trajectory" id="start" placeholder="开始时间"><input class="trajectory" id="end" placeholder="结束时间"><select class="ratio"><option>1倍</option><option>2倍</option><option>3倍</option></select><button class="playback" onClick="run()">回放</button><button class="playback close_playback">关闭</button></div><div class="trajectory_box" style="display: none" id="divBufferSetting"><button class="playback" style="width:60px" onClick="setBufferCenter()">设置点</button><input class="trajectory" id="txtBufferX" placeholder="坐标X"><input class="trajectory" id="txtBufferY" placeholder="坐标Y"><input value="10" class="trajectory" id="txtBufferDis" placeholder="缓冲距离"><select class="ratio"><option>米</option><option>千米</option></select><button class="playback" onclick="executeBuffer();edit()" style="width:60px">分析</button><button class="playback close_playback">关闭</button></div><div class="map_tool_outbox"><span class="map_tool" onClick="zoomFull()"><a class="map_tool_inner" title="全图"></a></span><span class="map_tool" onClick="zoomOut()"><a class="map_tool_inner" title="放大" style="background-position-x:-36px"></a></span><span class="map_tool" onClick="zoomIn()"><a class="map_tool_inner" title="缩小" style="background-position-x:-72px"></a></span><span class="map_tool" onClick="showHeatMap()"><a class="map_tool_inner" title="倒退视图" style="background-position-x:-108px"></a></span><span class="map_tool"><a class="map_tool_inner" title="前进视图" style="background-position-x:-144px"></a></span><span class="map_tool"><a class="map_tool_inner display_type_btn" title="专题地图"style="background-position-x:-180px"></a></span><span class="map_tool"><a class="map_tool_inner city_chose_btn" title="城市定位"style="background-position-x:-432px"></a></span><span class="map_tool" id="btnBuffer"><a class="map_tool_inner" title="缓冲区分析" style="background-position-x:-216px"></a></span><span class="map_tool"><a class="map_tool_inner addition_check_btn check_btn" title="水质监测设备检索"style="background-position-x:-252px"></a></span><span class="map_tool"><a class="map_tool_inner chemistry_check_btn check_btn" onClick="chemistryCheck()"title="流量监测设备检索" style="background-position-x:-288px"></a></span><span class="map_tool"><a class="map_tool_inner enterprise_check_btn check_btn" onClick="enterpriseCheck()"title="水位监测设备检索" style="background-position-x:-324px"></a></span><span class="map_tool"><a class="map_tool_inner car_check_btn check_btn" onClick="carCheck()"title="车辆监测设备检索" style="background-position-x:-360px"></a></span><span class="map_tool"><a class="map_tool_inner" onClick="Search()" title="视频设备检索"style="background-position-x:-468px"></a></span><span class="map_tool"><a class="map_tool_inner" onClick="cancel()" id="fresh_tool" title="清空"style="background-position-x:-396px"></a></span><span class="map_tool"><input type="text" id="txtCoord" style="width:150px;visibility:hidden" /></span></div></div></div><div class="dataAllBorder01 cage_cl" style="margin-top: 0.6% !important; height: 32.1%;"><div class="dataAllBorder02" id="map_title_innerbox"><div class="map_title_box"><div class="map_title_innerbox"><div class="map_titl">空间分析数据</div></div><div><select id="selLayer" style="width:100px;"><option value="">水质点位</option></select></div></div><table id="table" style="width: 100%"></table></div><div class="dataAllBorder02" id="map_title_innerbox1"style="display: none; position: relative;"><div class="map_title_box"><div class="map_title_innerbox"><div class="map_title" style="background-image: url(img/second_title.png);">警告周边污染条件扫描</div></div></div><ul class="tab_msg_box"><li class="tab_msg tab_msg01 tab_msg_current">附近污染源</li><li class="tab_msg tab_msg02">临近商户</li></ul><div class="table1"><table id="table1" style="width: 100%"></table></div><div class="table2" style=" display: none;"><table id="table2" style="width: 100%;"></table></div></div></div></div><div class="right_cage"><div class="dataAllBorder01 cage_cl" style="!important; height: 24%"><div class="dataAllBorder02" id="cage_cl"><div class="analysis">监测设备数量:</div><ul class="data_show_box"><li class="data_cage">0</li><li class="data_cage">0</li><li class="data_cage" style="background-image: none;">,</li><li class="data_cage funct_number">1</li><li class="data_cage funct_number">5</li><li class="data_cage funct_number">2</li></ul><div class="depart_number_box"><ul class="depart_number_cage"><li class="depart_name">水质监测类:</li><li class="depart_number">3,238</li></ul><ul class="depart_number_cage"><li class="depart_name">流量监测类:</li><li class="depart_number">1,630</li></ul><ul class="depart_number_cage" style="margin-bottom: 0px;"><li class="depart_name">水位测量类:</li><li class="depart_number">4,251</li></ul><ul class="depart_number_cage" style="margin-bottom: 0px;"><li class="depart_name">车辆监测类:</li><li class="depart_number">24</li></ul></div></div><div class="dataAllBorder02 over_hide" id="cage_cl1" style="display: none"><div class="analysis">点位基础信息:</div><ul class="location_msg_box"><li class="location_msg01 location_single">事件级别:<a href="#"style="color: #dc0000;">一级</a></li><li class="location_msg02 location_single">事件级别:水质高猛酸盐超标</a></li><li class="location_msg02 location_double">监测时间:<a href="#"style="color: #cdd6db;">-09-10<br>11:40</a></li><li class="location_msg01 location_double">地址:沱江xx段31号</a></li></ul></div></div><div class="dataAllBorder01 cage_cl check_increase" style=" margin-top: 1.5% !important;"><div class="dataAllBorder02 over_hide dataAllBorder20" id="over_hide"><table class="table table-bordered"><thead><tr><th style="width: 18%">点位名称</th><th>高锰酸盐</th><th>总磷</th><th>氨氮</th></tr></thead><tbody><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr><tr><td>点位监测一</td><td>1.1m/L</td><td>0.3m/L</td><td>1.3m/L</td></tr></tbody></table><table class="table table-bordered"><thead><tr><th style="width: 18%">类目</th><th>归属</th><th>程度</th><th>范围(r=?)</th></tr></thead><tbody><tr><td>保安</td><td>地点分配</td><td>综合治理</td><td>全城</td></tr><tr><td>流动人口</td><td>危化品...</td><td>潜伏性威胁</td><td>车站</td></tr><tr><td>典当</td><td>居民盗窃</td><td>财产维护</td><td>-</td></tr></tbody></table></div><div class="dataAllBorder02 over_hide dataAllBorder20" id="over_hide1" style="display: none"><table class="table table-bordered"><thead><tr><th style="width: 18%">类目</th><th>危险级别</th><th>储量</th><th>范围(r=?)</th></tr></thead><tbody><tr><td>过氧化钾</td><td>三级</td><td>5t</td><td>200m-5km</td></tr><tr><td>高锰酸钾</td><td>三级...</td><td>3t</td><td>4km-80km</td></tr><tr><td>硫化氢</td><td>一级</td><td>20t</td><td>400m-2km</td></tr><tr><td>浓硫酸</td><td>一级</td><td>10t</td><td>1km</td></tr><tr><td>王水</td><td>一级</td><td>4t</td><td>2km</td></tr><tr><td>石油原油</td><td>一级</td><td>3t</td><td>500m-2km</td></tr><tr><td>天然气</td><td>一级</td><td>10M2</td><td>500m-10km</td></tr><tr><td>三硝基甲苯</td><td>一级</td><td>5t</td><td>200m-5km</td></tr><tr><td>醛类催化品</td><td>一级</td><td>6t</td><td>4km-80km</td></tr><tr><td>煤炭</td><td>一级</td><td>11t</td><td>400m-2km</td></tr></tbody></table></div><div class="dataAllBorder02 addition_check_in" style="display: none;position: relative"><div class="analysis" style="height: 34px;%">水质监测设备检索:</div><div class="search_plate_box"><ul class="search_separate"><li class="search_title">设备类型:</li><select class="search_input_box search_chose_box"><option>全部</option></select></ul><ul class="search_separate"><li class="search_title">点位名称:</li><li class="search_input_box"><input class="search_input" type="text"></li></ul><button class="search_btn">开始检索</button></div><div class="search_sesult_box"><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">XZ-0168 68水质检测仪</li><li class="danger_level level03">在线自动</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">上海海恒机电仪表有限公司</li></ul></div><div class="tcdPageCode"></div></div><div class="dataAllBorder02 chemistry_check_in" id="chemistry_check_in"style="display: none;position: relative"><div class="analysis" style="height: 34px;">流量监测设备检索:</div><div class="search_plate_box"><ul class="search_separate"><li class="search_title">设备类型:</li><select class="search_input_box search_chose_box"><option>全部</option></select></ul><ul class="search_separate"><li class="search_title">输入点位:</li><li class="search_input_box"><input class="search_input" type="text"></li></ul><button class="search_btn">开始检索</button></div><div class="search_sesult_box"><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul><ul class="search_result"><li class="search_result_add danger_result">LDG-MK卫生型电磁流量计</li><li class="danger_level level03">电磁流量计</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">浙江米科电子设备厂</li></ul></div><div class="chemistry_tcdPageCode"></div></div><div class="dataAllBorder02 enterprise_check_in" id="enterprise_check_in"style="display: none;position: relative"><div class="analysis" style="height: 34px;">水位监测设备检索:</div><div class="search_plate_box"><ul class="search_separate"><li class="search_title">设备类型:</li><select class="search_input_box search_chose_box"><option>全部</option></select></ul><ul class="search_separate"><li class="search_title">点位名称:</li><li class="search_input_box"><input class="search_input" type="text"></li></ul><button class="search_btn">开始检索</button></div><div class="search_sesult_box"><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul><ul class="search_result"><li class="search_result_add danger_result">PK150防雷水位监测</li><li class="danger_level level03">无线</li><li class="search_location" title="定位"></li><li class="search_eddit" title="生命周期" onClick="showLife()"></li><li class="search_result_car car_personal">VDSA52336</li><li class="search_result_car car_time">优科自动设备有限公司</li></ul></div><div class="enterprise_tcdPageCode"></div></div><div class="dataAllBorder02" id="car_check_in" style="display: none;position: relative"><div class="analysis" style="height: 34px;">车辆检索:</div><div class="search_plate_box"><ul class="search_separate"><li class="search_title">车牌号码:</li><li class="search_input_box"><input class="search_input" type="text"></li></ul><ul class="search_separate"><li class="search_title">车主姓名:</li><li class="search_input_box"><input class="search_input" type="text"></li></ul><button class="search_btn">检索</button></div><div class="search_sesult_box"><ul class="search_result"><li class="search_result_add">川A·K5H12(陈浩)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">福特(福克斯两厢)</li><li class="search_result_car car_time">乘用车(5座)</li></ul><ul class="search_result"><li class="search_result_add">川A·14AG2(张正涛)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">福特(金牛座)</li><li class="search_result_car car_time">乘用车(5座)</li></ul><ul class="search_result"><li class="search_result_add">川B·2563K(李雪)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">上海大众(迈腾)</li><li class="search_result_car car_time">乘用车(5座)</li></ul><ul class="search_result"><li class="search_result_add">川A·SH273(刘红)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">菲亚特(菲翔)</li><li class="search_result_car car_time">乘用车(5座)</li></ul><ul class="search_result"><li class="search_result_add">川A·K5H12(陈浩)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">奔驰(C200)</li><li class="search_result_car car_time">乘用车(5座)</li></ul><ul class="search_result"><li class="search_result_add">川A·K5H12(张起国)</li><li class="search_location" title="定位"></li><li class="search_guiji" title="轨迹回放"></li><li class="search_result_car car_personal">东风商用车(天龙)</li><li class="search_result_car car_time">载货卡车(100t)</li></ul></div><div class="car_tcdPageCode"></div></div></div><div class="dataAllBorder01 cage_cl check_decrease"style="margin-top: 1.5% !important; height: 32%; position: relative;"><div class="dataAllBorder02 over_hide" style="padding: 1.2%;"><div class="analysis">xx市水质分类占比:</div><div class="danger_contain_box"><div id="container_huan" style="height: 90%;width: 100%"></div></div><div class="danger_depart_box"><ul class="danger_depart"><li class="danger_ico"style="background-image: url(img/images/pic_ico_01.png); background-position-x: 0px"></li><li class="data_name">一类水质</li><li class="data data01">652</li><li class="data data02">↑  1.2%</li></ul><ul class="danger_depart"><li class="danger_ico"style="background-image: url(img/images/pic_ico_02.png); background-position-x: 0px"></li><li class="data_name">二类水质</li><li class="data data01">97</li><li class="data data02" style="color: #ff2865;">↓  0.3%</li></ul><ul class="danger_depart danger_depart01"><li class="danger_ico"style="background-image: url(img/images/pic_ico_03.png); background-position-x: 0px"></li><li class="data_name">三类水质</li><li class="data data01">423</li><li class="data data02">↑  1%</li></ul><ul class="danger_depart danger_depart01"><li class="danger_ico"style="background-image: url(img/images/pic_ico_01.png); background-position-x: 0px"></li><li class="data_name">四类水质</li><li class="data data01">218</li><li class="data data02">↑  0.3%</li></ul></div></div></div></div></div></div></div><script src="/jquery/echarts-4.2.1.min.js"></script><script src="js/index.js"></script><script src="js/bstable/js/bootstrap.min.js"></script><script src="/ajax/libs/bootstrap-table/1.16.0/bootstrap-table.js"></script><script type="text/javascript" src="js/jquery.pagination.js"></script><script src="js/bstable/js/bootstrap-table-zh-CN.min.js"></script><script src="js/Home_page.js"></script><script src="js/artDialog/artDialog.js"></script><script src="js/artDialog/plugins/iframeTools.source.js"></script><script type="text/javascript" src="https://api./api?v=2.0&ak=5ieMMexWmzB9jivTq6oCRX9j&callback"></script><script src="js/mapNew.js"></script><script>var number;$(function () {if (window.screen.height <= 768) {number = 4;} else if (window.screen.height > 768 && window.screen.height <= 900) {number = 6} else if (window.screen.height > 1080) {number = 8}});function people() {art.dialog.open('people_page.html', {title: '详情信息',width: '60%',height: '60%',shade: 0.5,mask: true});}function Search() {art.dialog.open('search_page.html', {title: '查询表格页',width: '60%',height: '60%',shade: 0.5,mask: true});}function Search1() {art.dialog.open('history_page.html', {title: '历史记录',width: '60%',height: '60%',shade: 0.5,mask: true});}function analysis() {art.dialog.open('analysis.html', {title: '统计分析页',width: '900px',height: '60%',shade: 0.5,mask: true});}function department() {art.dialog.open('department.html', {title: '统计分析页',width: '60%',height: '60%',shade: 0.5,mask: true});}function showCompanyDetai() {window.open('http://123.146.170.78:8888/conmpanyTail.html');}function showWHPDetai() {window.open('http://123.146.170.78:8888/goodsTail.html');}function showCarDetai() {window.open('http://123.146.170.78:8888/carTail.html');}// 翻页模块$(".tcdPageCode").createPage({pageCount: 5,current: 1,backFn: function (p) {}});$(".chemistry_tcdPageCode").createPage({pageCount: 4,current: 1,backFn: function (p) {}});$(".enterprise_tcdPageCode").createPage({pageCount: 4,current: 1,backFn: function (p) {}});$(".car_tcdPageCode").createPage({pageCount: 4,current: 1,backFn: function (p) {}});$(function () {$(".tit02Diva a").each(function (index) {$(this).on("click", function () {$(".data_map").eq(index).fadeIn().siblings(".data_map").stop().hide();$(this).prev('i').removeClass('i_crlieAction');$(this).siblings('a').prev('i').addClass('i_crlieAction');})});BootstrapTable();Echarts();$("#fresh_tool").click(function (event) {event.stopPropagation();cancel();})});function EventClick() {$(".check_increase").removeClass("check_increase_act");$("#over_hide1").show().siblings().hide();$(".check_decrease").show();$("#cage_cl").hide();$("#map_title_innerbox").hide();$("#cage_cl1").show();// $("#over_hide").show();$("#map_title_innerbox1").show();$(".addition_check_in").hide();$("#car_check_in").hide();BootstrapTable();}function cancel(e) {$(".check_increase").removeClass("check_increase_act");$("#over_hide").show().siblings().hide();$(".check_decrease").show();$("#cage_cl").show();$("#cage_cl1").hide();// $("#cage_cl").show();// $("#over_hide1").show();// $("#map_title_innerbox").show();BootstrapTable();}// 地址检索$(".addition_check_btn").click(function () {$(".check_increase").addClass("check_increase_act");$(".check_decrease").hide()$(".addition_check_in").show().siblings().hide()});// 危化品检索function chemistryCheck() {$(".check_increase").addClass("check_increase_act");$(".check_decrease").hide()$("#chemistry_check_in").show().siblings().hide()}// 企业检索function enterpriseCheck() {$(".check_increase").addClass("check_increase_act");$(".check_decrease").hide()$("#enterprise_check_in").show().siblings().hide()}// 车辆检索function carCheck() {$(".check_increase").addClass("check_increase_act");$(".check_decrease").hide()$("#car_check_in").show().siblings().hide()}function BootstrapTable() {$('#table').bootstrapTable({method: "get",striped: true,singleSelect: false,url: "json/DGCar.json",dataType: "json",pagination: true, //分页pageSize: number,pageNumber: 1,search: false, //显示搜索框contentType: "application/x-www-form-urlencoded",queryParams: null,columns: [//{//title: "车辆编号",//field: 'id',//width:80,//align: 'center',//valign: 'middle'//},{title: '点位编号',field: 'carno',width: 80,align: 'center',valign: 'middle'},//{//title: '所属区域',//field: 'company',//align: 'center',//valign: 'middle'//},{title: '位置',field: 'content',align: 'center'},{title: '实时数据',field: 'speed',width: 80,align: 'center'},{title: '操作',field: 'load',align: 'center',formatter: function (value, row) {var e ='<a href="javascript:void(0)" title="" οnclick="Search1()">历史记录</a> ';var d = '<a href="javascript:void(0)" title="" οnclick="addLocal(\'' + row.id + '\')">定位</a> ';return e + d;}}]});$('#table1').bootstrapTable({method: "get",striped: true,singleSelect: false,url: "json/note1.json",dataType: "json",pagination: true, //分页pageSize: number,pageNumber: 1,search: false, //显示搜索框contentType: "application/x-www-form-urlencoded",queryParams: null,columns: [{title: "污染源",field: 'id',align: 'center',valign: 'middle'},{title: '辐射距离',field: 'title',align: 'center',valign: 'middle'},{title: '污染范围',field: 'type',align: 'center',valign: 'middle'},{title: '污染类型',field: 'person',align: 'center'}]});$('#table2').bootstrapTable({method: "get",striped: true,singleSelect: false,url: "json/note2.json",dataType: "json",pagination: true, //分页pageSize: number,pageNumber: 1,search: false, //显示搜索框contentType: "application/x-www-form-urlencoded",queryParams: null,columns: [{title: "污染源",field: 'id',align: 'center',valign: 'middle'},{title: '辐射距离',field: 'title',align: 'center',valign: 'middle'},{title: '污染范围',field: 'type',align: 'center',valign: 'middle'},{title: '污染类型',field: 'person',align: 'center'}]});}function Echarts() {var myChart = echarts.init($("#container_huan")[0]);var option = {tooltip: {trigger: 'item',formatter: "{a} <br/>{b}: {c} ({d}%)"},legend: {orient: 'vertical',x: 'left',data: ['一类水质', '二类水质', '三类水质', '四类水质', '五类水质'],textStyle: {color: "#e9ebee"}},series: [{name: '行业数据',type: 'pie',center: ['80%', '50%'],radius: ['50%', '80%'],avoidLabelOverlap: false,label: {normal: {show: false,position: 'center'},emphasis: {show: true,textStyle: {fontSize: '30',fontWeight: 'bold'}}},itemStyle: {normal: {label: {show: false},labelLine: {show: false}}},data: [{value: 335,name: '一类水质'},{value: 310,name: '二类水质'},{value: 234,name: '三类水质'},{value: 135,name: '四类水质'},{value: 1548,name: '五类水质'}]}]};myChart.setOption(option);}function TimeControl() {$(".message_scroll_box").animate({marginTop: 96}, 800,function () {$(".message_scroll_box").css({marginTop: 0}); //把顶部的边界清零$(".message_scroll_box .message_scroll:first").before($(".message_scroll_box .message_scroll:last")); //在第一个新闻后面插入最后一个新闻});}var T = setInterval(TimeControl, 2300); //开始定时$(".message_scroll_box").mouseenter(function () {clearInterval(T); //停止定时}).mouseleave(function () {T = setInterval(TimeControl, 2500); //再次定时})</script><script>! function () {laydate.skin('danlan'); //切换皮肤,请查看skins下面皮肤库laydate({elem: '#demo'});laydate({elem: '#demo1'}); //绑定元素}();//日期范围限制var start = {elem: '#start',format: 'YYYY-MM-DD',min: laydate.now(), //设定最小日期为当前日期max: '2099-06-16', //最大日期istime: true,istoday: false,choose: function (datas) {end.min = datas; //开始日选好后,重置结束日的最小日期end.start = datas //将结束日的初始值设定为开始日}};var end = {elem: '#end',format: 'YYYY-MM-DD',min: laydate.now(),max: '2099-06-16',istime: true,istoday: false,choose: function (datas) {start.max = datas; //结束日选好后,充值开始日的最大日期}};laydate(start);laydate(end);function edit() {layer.open({type: 2,title: '存储详情',shade: 0.5,skin: 'layui-layer-rim',area: ['700px', '400px'],shadeClose: true,closeBtn: 1,content: 'saveFindTail.html'});}//生命周期function listCrile() {art.dialog.open('analysis.html', {title: '统计分析页',width: '60%',height: '60%',shade: 0.5,mask: true});}$(".search_eddit").click(function () {listCrile();})</script></body></html>
2.CSS
* {margin: 0;padding: 0;}p {margin: 0 !important;}html {min-width: 1440px;min-height: 700px;}body {width: 100%;height: 100%;font-size: 100%;overflow: auto;}.data_bodey {width: 100%;height: 100%;background-size: 100% 100%;position: absolute;background-color: #1D2362;}.index_tabs {width: 100%;height: 88%;position: absolute;}.dataLeft01 {float: left;background-color: rgba(2, 8, 23, 0.54);padding: 1px;border-radius: 10px;width: 99%;height: 40%;margin-left: 0.5%;margin-top: 3%;}.dataLeft02 {float: left;background-color: rgba(17, 25, 69, 0.54);padding: 1px;border-radius: 10px;width: 44%;height: 53%;margin-left: 0.5%;margin-top: 0.2%;}.dataLeft03 {float: left;background-color: rgba(2, 8, 23, 0.54);padding: 1px;border-radius: 10px;width: 54.5%;height: 53%;margin-left: 0.5%;margin-top: 0.2%;}.dataLeft03_up {float: left;background-color: rgba(17, 25, 69, 0.54);padding: 1px;border-radius: 10px;width: 100%;height: 49.5%;}.dataLeft03_upVideo {width: 33%;height: 98%;float: left;margin-top: 0.5%;}.dataLeft03_down01 {float: left;background-color: rgba(17, 25, 69, 0.54);padding: 1px;border-radius: 10px;width: 33%;height: 49.5%;}.data_con01 {width: 100%;height: 100%;box-sizing: border-box;border: 1px solid #016ae0;border-radius: 10px;padding: 1px;}.data_con02 {width: 100%;height: 100%;box-sizing: border-box;border: 2px solid #016ae0;border-radius: 10px;}.dataLeft01Conent {width: 33%;height: 99%;float: left;margin-top: -1%;margin-right: 0.3%;}.dataLeft01Conent01 {width: 33%;height: 92%;float: left;margin-right: 0.3%;background-image: url("../img/con_bg.png");background-repeat: no-repeat;background-size: 100% 100%;}.dataLeft01Conent02 {width: 33%;height: 92%;float: left;margin-right: 0.3%;}.dataLeft01Conent01Up {width: 90%;height: 37%;float: left;margin-left: 5%;}.dataLeft01Conent01Up ul {list-style: none;text-align: center;color: #ff3552;font-size: 2.2em;}.dataLeft01Conent01Up ul li {padding-left: 2%;padding-right: 2%;padding-top: 2%;padding-bottom: 2%;display: inline-block;text-align: center;}.li_bg {background-image: url("../img/data_bg.png");background-size: 100% 100%;background-repeat: no-repeat;}.dataLeft01Conent01Down {width: 90%;height: 58%;float: left;margin-left: 5%;}.dataLeft01Conent01DownLeft {width: 55%;height: 100%;float: left;}.dataLeft01Conent01DownLeft p {padding-top: 5%;padding-bottom: 15%;}.dataLeft01Conent01DownRight {width: 44%;height: 100%;float: right;}.dataLeft01Conent01DownRight p {padding-top: 8%;}.dataLeft01Conent01DownRight ul {list-style: none;text-align: center;}.dataLeft01Conent01DownRight ul li {width: 30%;display: inline-block;text-align: center;}#pieChart {width: 100%;height: 88%;margin-top: -3%;}.h3_color {font-size: 1.35em;color: #11f6e2;}.pLeftSpan {float: left;}.a_colo01 {color: #ffffff;}.a_colo01:hover {text-decoration: none;color: #ffffff;}.a_colo02 {color: #fe6d3a;font-size: 1.2em;font-weight: bold;}.a_colo02:hover {text-decoration: none;color: #fe6d3a;}.pRightSpan {float: right;}.p_color01 {color: #ffffff;padding-top: 2%;padding-bottom: 2%;font-weight: bold;}.dataLeft01Conentup01 {width: 54%;height: 30%;float: left;}.dataLeft01Conentup02 {width: 45%;height: 35%;float: right;}.dataLeft01Conentdown {width: 98%;height: 50%;float: left;}.dataLeft01Conentup01Left {width: 98%;height: 100%;margin-right: 0.5%;}.dataLeft01Conentup01LeftMes {width: 48%;height: 47%;background-image: url("../img/leftbg01.png");background-size: 100% 100%;background-repeat: no-repeat;float: left;margin-left: 2%;margin-top: 3%;}.mesSpanLeft {width: 26%;height: 78%;float: left;margin-top: 3%;margin-left: 3%;display: inline-block;}.mesSpanRight {width: 69%;height: 78%;float: right;margin-right: 0.5%;display: inline-block;}.mesP01 {width: 100%;text-align: center;font-size: 0.5em;color: #eeeeee;padding-top: 5% !important;}.mesP02 {padding-top: 0.5%;}.mesP02SpanR {float: right;padding-right: 2%;}.mesP02SpanR a {color: #00ffd2;}.mesP02SpanR a:hover {text-decoration: none;color: #00ffd2;}.a_red {color: red !important;}.a_red:hover {color: red;text-decoration: none;}.color01 {font-size: 0.5em;color: #d1cf16;font-weight: bold;}.mesSpanLeft img {width: 100%;height: 100%;}.data_tit01 {width: 18.84%;height: 6.6%;background-image: url("../img/tit01.png");background-size: 100% 100%;background-repeat: no-repeat;margin: 0 auto;}.data_tit02 {width: 100%;height: 5.3%;}.data_tit02_img {width: 38.31%;height: 100%;background-image: url("../img/tit02.png");background-size: 100% 100%;background-repeat: no-repeat;margin: 0 auto;}.data_map {width: 100%;height: 85%;background-image: url("../img/map.png");background-size: 100% 100%;background-repeat: no-repeat;display: none;}.data_tool {width: 100%;height: 9.7%;background-image: url("../img/tool_bg.png");background-size: 100% 100%;background-repeat: no-repeat;}.data_tool ul {margin: 0;padding: 0;list-style: none;width: 100%;text-align: center;}.data_tool ul li {float: left;width: 7%;text-align: center;height: 100%;}.data_tool ul li a {height: 100%;display: block;}.data_tool ul li a:hover {background-color: #05121e;padding: 2%;}.data_tool ul li img {/*margin-top: 20%;*/padding-top: 20%;padding-bottom: 18%;}.clear {clear: both;}.li_img01 {width: 40%;height: 58%;}.li_img02 {width: 52%;height: 43%;}.li_img03 {width: 48.2%;height: 50%;}.li_img04 {width: 48.2%;height: 58%;}.li_img05 {width: 48.2%;height: 46%;}.li_img06 {width: 44.8%;height: 51.9%;}.li_img07 {width: 44.8%;height: 53.8%;}.li_img08 {width: 46.5%;height: 55.7%;}.li_img09 {width: 55.1%;height: 46%;}.li_img10 {width: 56.9%;height: 58%;}.li_img11 {width: 56.9%;height: 51.9%;}.tit02Diva {position: absolute;width: 30%;}.tit02Diva a {text-decoration: none;font-size: 0.5em;color: #ffffff;padding-right: 2%;padding-left: 2%;text-align: center;}.tit02Diva a:hover {text-decoration: none;color: #ffffff;}.tit02Diva a:active {text-decoration: none;color: #ffffff;}.tit02Diva a:visited {text-decoration: none;color: #ffffff;}.i_crlie {width: 12px;height: 12px;background-image: url("../img/i01.png");background-size: 100% 100%;background-repeat: no-repeat;display: inline-block;margin-left: 2%;}.i_crlieAction {background-image: url("../img/i02.png");}.titP {text-align: center;color: #ffffff;font-size: 0.5em;width: 100%;float: left;}.iframe {background-color: transparent !important;}.weher01 {font-size: 22px;color: #76cdff;margin-top: 3% !important;float: left;margin-right: 2%;}.weberImg {width: 14%;height: 13%;float: left;margin-right: 1%;}.webber02 {font-size: 2.5em;color: #ffffff;font-weight: 800;float: left;margin-right: 2%;}.weher03 {font-size: 22px;color: #76cdff;margin-top: 3% !important;float: right;}.weherChart {width: 98%;height: 65%;float: left;margin-left: 1%;margin-top: 5%;}
3.JavaScript
/*** Created by Administrator on /10/26.*/// Xabin//应急事件处置$(".message_scroll").click(function() {EventClick();eventHandle();});// 地图切换buttn-start$(".map_change").click(function() {$(this).addClass("map_change_chose");$(this).siblings().removeClass("map_change_chose")$(this).show()$(this).siblings().hide()})$(".map_change_box").mouseenter(function() {$(".map_change").show()}).mouseleave(function() {$(".map_change_chose").show()$(".map_change_chose").siblings().hide()})// 地图切换buttn-end$(".tab_msg").click(function() {$(this).addClass("tab_msg_current");$(this).siblings().removeClass("tab_msg_current")})$(".tab_msg01").click(function() {$(".table1").show()$(".table2").hide()})$(".tab_msg02").click(function() {$(".table2").show()$(".table1").hide()})$(".video_around").click(function() {$(this).siblings().removeClass("video_around_chose")$(this).addClass("video_around_chose")})$(".display_type_funct_sure").click(function() {$(".display_box").hide()})$(".display_type_btn").click(function() {$(".display_type_box").show()$(".city_chose_box").hide()})$(".city_chose_btn").click(function() {$(".city_chose_box").show()$(".display_type_box").hide()})//轮播推送隐藏功能$(".scroll_tool_outbox").mouseenter(function() {$(".scroll_tool_outbox").addClass("scroll_tool_outbox_current")});$(".scroll_tool_outbox").mouseleave(function() {$(".scroll_tool_outbox").removeClass("scroll_tool_outbox_current")})//轨迹回放功能激活$(".search_guiji").click(function() {$("#divRouteReview").show();});$(".close_playback").click(function() {$(".trajectory_box").hide();});$("#btnBuffer").click(function() {$("#divBufferSetting").show();});$(".total_chose_pl").click(function() {$(".total_chose_box").show()})$(".total_chose_fr").click(function() {$(".total_chose_box").hide()})// Xabin_end
五、更多干货
1.如果我的博客对你有帮助、如果你喜欢我的博客内容,请 “👍点赞” “✍️评论” “💙收藏”
一键三连哦!
2.【👇🏻👇🏻👇🏻关注我| 获取更多源码 | 优质文章】
带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、Echarts大数据可视化, 等! 「一起探讨 web前端 ,Node ,Java 知识,互相学习」!
3.以上内容技术相关问题😈欢迎一起交流学习👇🏻👇🏻👇🏻🔥