no message
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 375 B |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 262 B |
|
After Width: | Height: | Size: 1001 B |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 338 B |
|
After Width: | Height: | Size: 280 B |
|
After Width: | Height: | Size: 1015 B |
|
After Width: | Height: | Size: 709 B |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 186 KiB |
|
After Width: | Height: | Size: 186 KiB |
|
After Width: | Height: | Size: 183 B |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 932 B |
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 8.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 256 B |
|
After Width: | Height: | Size: 333 B |
|
After Width: | Height: | Size: 529 B |
|
After Width: | Height: | Size: 242 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 317 B |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 499 B |
|
After Width: | Height: | Size: 557 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 609 B |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 711 B |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 7.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 182 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 368 KiB |
@@ -0,0 +1,267 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
|
||||
<script type="text/javascript" src="js/rem.js"></script>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<title>大连市突发预警平台数据实时监控</title>
|
||||
<link rel="icon" href="../../img/logo.png">
|
||||
<style type="text/css">
|
||||
/*resize*/
|
||||
.breathe-zct{ position:relative; width:20px; height:20px; top:2px;float:left; border:1px solid #008000; border-radius:20px; color:#fff; font-size:10px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.3); overflow:hidden;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#00FF00), to(#00FF00));
|
||||
background-image: -moz-linear-gradient(#00FF00,#00FF00);
|
||||
}
|
||||
|
||||
.breathe-yct{ position:relative; width:20px; height:20px; top:2px;float:left; border:1px solid #008000; border-radius:20px; color:#fff; font-size:20px; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.3); overflow:hidden;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#FF0000), to(#FF0000));
|
||||
background-image: -moz-linear-gradient(#FF0000,#FF0000);
|
||||
}
|
||||
|
||||
.breathe-zc{ position:relative; width:20px; height:20px; margin:10px auto; line-height:40px; border:1px solid #008000; border-radius:10px; color:#fff; font-size:20px; text-align:center; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.3); overflow:hidden;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#00FF00), to(#00FF00));
|
||||
background-image: -moz-linear-gradient(#00FF00,#00FF00);
|
||||
-webkit-animation-timing-function: ease-in-out;
|
||||
-webkit-animation-name: breathe;
|
||||
-webkit-animation-duration: 500ms;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
-webkit-animation-direction: alternate;
|
||||
animation:ease-in-out breathe 500ms infinite alternate;
|
||||
}
|
||||
@keyframes breathe{
|
||||
0% { opacity: .2; box-shadow:0 1px 2px rgba(255,255,255,0.1);}
|
||||
100% { opacity: 1; border:1px solid rgba(59,235,235,1); box-shadow:0 1px 30px rgba(59,255,255,1);}
|
||||
}
|
||||
@-webkit-keyframes breathe {
|
||||
0% { opacity: .2; box-shadow:0 1px 2px rgba(255,255,255,0.1);}
|
||||
100% { opacity: 1; border:1px solid rgba(59,235,235,1); box-shadow:0 1px 30px rgba(59,255,255,1);}
|
||||
}
|
||||
|
||||
.breathe-yc{ position:relative; width:20px; height:20px; margin:10px auto; line-height:40px; border:1px solid #008000; border-radius:10px; color:#fff; font-size:20px; text-align:center; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.3); overflow:hidden;
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#FF0000), to(#FF0000));
|
||||
background-image: -moz-linear-gradient(#FF0000,#FF0000);
|
||||
-webkit-animation-timing-function: ease-in-out;
|
||||
-webkit-animation-name: breathe;
|
||||
-webkit-animation-duration: 1000ms;
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
-webkit-animation-direction: alternate;
|
||||
animation:ease-in-out breathe 100ms infinite alternate;
|
||||
}
|
||||
@keyframes breathe{
|
||||
0% { opacity: .2; box-shadow:0 1px 2px rgba(255,255,255,0.1);}
|
||||
100% { opacity: 1; border:1px solid rgba(59,235,235,1); box-shadow:0 1px 30px rgba(59,255,255,1);}
|
||||
}
|
||||
@-webkit-keyframes breathe {
|
||||
0% { opacity: .2; box-shadow:0 1px 2px rgba(255,255,255,0.1);}
|
||||
100% { opacity: 1; border:1px solid rgba(59,235,235,1); box-shadow:0 1px 30px rgba(59,255,255,1);}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body style="visibility: hidden;">
|
||||
<div class="container-flex" tabindex="0" hidefocus="true">
|
||||
<div class="box-left">
|
||||
<div class="left-top">
|
||||
<div class="current-num">
|
||||
<table class="table3" style="border:0px; width:96%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th ><h6 style="font-size:0.2rem;color: #cdddf7;">渠道状态</h6></th>
|
||||
<th style="text-align:left;"><div class="breathe-zct"></div> 正常</th>
|
||||
<th style="text-align:left"><div class="breathe-yct"></div> 异常</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="border:0px;">
|
||||
<!--<tr><td colspan="4"><p style="width:9.6rem;">暂无数据</p></td></tr>-->
|
||||
|
||||
<tr style="border:0px;">
|
||||
<td style="border:0px;"><div id="dx" class="breathe-zc"></div></td>
|
||||
<td style="border:0px;"><div id="cz" class="breathe-zc"></td>
|
||||
<td style="border:0px;"><div id="dmt" class="breathe-yc"></td>
|
||||
</tr>
|
||||
<tr style="border:0px;">
|
||||
<td style="border:0px;">短信渠道</td>
|
||||
<td style="border:0px;">传真</td>
|
||||
<td style="border:0px;">多媒体</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="left-center">
|
||||
<div class="title-box">
|
||||
<h6>按渠道发布预警统计</h6>
|
||||
</div>
|
||||
<div class="chart-box pie-chart" style="top:0px;">
|
||||
<div id="qdtj" style="width:100%;"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="left-bottom" class="select">
|
||||
<div class="title-box">
|
||||
<h6>按级别发布预警统计</h6>
|
||||
|
||||
</div>
|
||||
<div class="chart-box pie-chart" style="top:0px;">
|
||||
<div id="jbtj" style="width:100%;"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-center">
|
||||
<div class="center-top">
|
||||
<h1 style="margin-top:15px">大连市突发预警实时监控</h1>
|
||||
</div>
|
||||
<div class="center-center">
|
||||
<div class="weather-box">
|
||||
<div class="data">
|
||||
<p class="time" id="time">00:00:00</p>
|
||||
<p id="date"></p>
|
||||
</div>
|
||||
<div >
|
||||
<div >
|
||||
<p style="font-size:18px;color:#cdddf7">当前有效预警</p>
|
||||
<p class="ss" style="font-size:18px;color:#cc4125;text-align:center"><span id="youxiao">22</span>(条)</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<img src="images/line_bg.png" alt="更多资源:http://www.anydo.wang">
|
||||
<div class="select-box" style="height: 0.3rem;top:-11px;">
|
||||
|
||||
<div data-type="2">
|
||||
<div class="select" tabindex="0" hidefocus="true" style="width: 100%;">
|
||||
<p style="color:#DEA919;font-weight:bold;font-size:16px;">市局发布的预警:<span>3289</span>(条)</p>
|
||||
<p style="color:#96E114;font-weight:bold;font-size:16px;padding-top:3px">区县发布的预警:<span> 5690</span>(条)</p>
|
||||
<p style="color:#6099cc;font-weight:bold;font-size:16px;padding-top:3px">其它委办局(含通知): <span>456</span>(条)</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="center-bottom">
|
||||
<div class="chart-box" style="margin-top:0px">
|
||||
<!--<div id="china_map" style="width:1920px;height:1080px; z-index:99999;"></div>-->
|
||||
<div class="map_wk">
|
||||
<div class="center_map_zhs"><img src="images/11B063.png" /></div>
|
||||
<div class="center_map_pld"><img src="images/11B063.png" /></div>
|
||||
<div class="center_map_wfd"><img src="images/11B063.png" /></div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="center-bottom-two">
|
||||
<div class="chart-box pie-chart" style="top:8px;" >
|
||||
<div id="areatj" style="width:100%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-right">
|
||||
<div class="right-top">
|
||||
<div class="title-box">
|
||||
<h6 id="barTitle">最新发布预警</h6>
|
||||
</div>
|
||||
<div class="data-box" style="padding:15px ;">
|
||||
<table class="table1" style="border:0px;width:100%">
|
||||
<tbody>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/test.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><img src="images/1.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data4">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/2.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><img src="images/6.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data4">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/4.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><img src="images/5.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data4">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/6.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><img src="images/1.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data4">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/2.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center"><img src="images/6.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data4">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
<tr class="bg-color">
|
||||
<td style="text-align:center"><img src="images/4.jpg" style="width:45px;height:0.4rem;"></td>
|
||||
<td colspan="3" class="table-data dph-data9">金普新区气象台2019年04月09日15时50分发布大风蓝色预警信号</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="right-bottom">
|
||||
<div class="title-box">
|
||||
<p id="switchBtn"><span class="active" data-dataType="income">本月发布预警统计</span></p>
|
||||
|
||||
</div>
|
||||
<div id="line_time" style="width:90%;height:160px;margin-left:10px;"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
<script type="text/javascript" src="../../js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="js/layer/layer.min.js"></script>
|
||||
<script type="text/javascript" src="js/layer/laydate/laydate.js"></script>
|
||||
<script type="text/javascript" src="../../js/echarts/echarts.min.js"></script>
|
||||
<script type="text/javascript" src="../../js/echarts/china.js"></script>
|
||||
<script type="text/javascript" src="js/infographic.js"></script>
|
||||
<script type="text/javascript" src="js/macarons.js"></script>
|
||||
<script type="text/javascript" src="js/shine.js"></script>
|
||||
<script type="text/javascript" src="js/base.js"></script>
|
||||
<script type="text/javascript">
|
||||
$('document').ready(function () {
|
||||
$("body").css('visibility', 'visible');
|
||||
var localData = [$('#teacher').val(), $('#start').val() + '/' + $('#end').val(), $('#leader').val()]
|
||||
localStorage.setItem("data", localData);
|
||||
|
||||
//设置渠道状态
|
||||
qdzt();
|
||||
})
|
||||
|
||||
//设置渠道状态
|
||||
function qdzt(){
|
||||
//breathe-zc 绿灯;breathe-yc 红灯
|
||||
$("#dx").removeClass("breathe-yc");
|
||||
$("#dx").addClass("breathe-zc");
|
||||
|
||||
$("#cz").removeClass("breathe-zc");
|
||||
$("#cz").addClass("breathe-yc");
|
||||
|
||||
$("#dmt").removeClass("breathe-yc");
|
||||
$("#dmt").addClass("breathe-zc");
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,390 @@
|
||||
function fnW(str) {
|
||||
var num;
|
||||
str >= 10 ? num = str : num = "0" + str;
|
||||
return num;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*大屏*/
|
||||
//获取当前时间
|
||||
var timer = setInterval(function () {
|
||||
var date = new Date();
|
||||
var year = date.getFullYear(); //当前年份
|
||||
var month = date.getMonth(); //当前月份
|
||||
var data = date.getDate(); //天
|
||||
var hours = date.getHours(); //小时
|
||||
var minute = date.getMinutes(); //分
|
||||
var second = date.getSeconds(); //秒
|
||||
var day = date.getDay(); //获取当前星期几
|
||||
var ampm = hours < 12 ? 'am' : 'pm';
|
||||
$('#time').html(fnW(hours) + ":" + fnW(minute) + ":" + fnW(second));
|
||||
$('#date').html('<span>' + year + '/' + (month + 1) + '/' + data + '</span><span>' + getMyDay(date) + '</span>')
|
||||
|
||||
}, 1000)
|
||||
|
||||
function getMyDay(date){
|
||||
var week;
|
||||
if(date.getDay()==0) week="周日"
|
||||
if(date.getDay()==1) week="周一"
|
||||
if(date.getDay()==2) week="周二"
|
||||
if(date.getDay()==3) week="周三"
|
||||
if(date.getDay()==4) week="周四"
|
||||
if(date.getDay()==5) week="周五"
|
||||
if(date.getDay()==6) week="周六"
|
||||
return week;
|
||||
}
|
||||
|
||||
//预警按发布区域统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var areatj =echarts.init(document.getElementById("areatj"));
|
||||
|
||||
option = {
|
||||
color: ['#3398DB'],//此处可设置柱条全局颜色
|
||||
tooltip : {
|
||||
trigger: 'axis',
|
||||
axisPointer : { // 坐标轴指示器,坐标轴触发有效
|
||||
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
||||
}
|
||||
},
|
||||
|
||||
grid: {
|
||||
left: '13%',
|
||||
right: '2%',
|
||||
bottom: '5%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis : [
|
||||
{
|
||||
type : 'category',
|
||||
data: ['大连市区','旅顺口区','金州区','普兰店市','瓦房店市','庄河市','长海县','长兴岛'],
|
||||
axisTick: {
|
||||
alignWithLabel: true
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
},
|
||||
axisLabel: {interval:0,rotate:40 }
|
||||
}
|
||||
],
|
||||
yAxis : [
|
||||
{
|
||||
type : 'value',
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
series : [
|
||||
{
|
||||
name:'发布数量',
|
||||
type:'bar',
|
||||
barWidth: '50%',
|
||||
data:[400, 52, 200, 334, 390, 330, 220, 220],
|
||||
itemStyle:{//
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(
|
||||
0, 0, 0, 1,
|
||||
[
|
||||
{offset: 1, color: '#6dadee'},
|
||||
{offset: 0.5, color: '#377fc8'},
|
||||
{offset: 0, color: '#377fc8'}
|
||||
]
|
||||
)
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
areatj.setOption(option,true);
|
||||
|
||||
window.addEventListener('resize', function() {
|
||||
areatj.resize();
|
||||
})
|
||||
|
||||
|
||||
//预警按发布渠道统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var qdtj =echarts.init(document.getElementById("qdtj"));
|
||||
|
||||
option = {
|
||||
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '1%',
|
||||
right: '5%',
|
||||
bottom: '8%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
boundaryGap: [0, 0.01],
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
type: 'category',
|
||||
data : ['国突', '其它渠道', '邮件', '微博','传真','多媒体','短信'],
|
||||
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '发布数量',
|
||||
type: 'bar',
|
||||
data: [70, 10, 52, 200, 334, 390, 330],
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(
|
||||
0, 0, 1, 0,
|
||||
[
|
||||
{offset: 1, color: '#1181e6'},
|
||||
{offset: 0.5, color: '#1181e6'},
|
||||
{offset: 0, color: '#6dadee'}
|
||||
|
||||
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
qdtj.setOption(option);
|
||||
qdtj.on('click', function(param) {
|
||||
alert("更多模板,前往http://www.anydo.wang下载")
|
||||
setTimeout(function(){
|
||||
location.href = "http://www.anydo.wang/";
|
||||
},20000);
|
||||
});
|
||||
//预警按发布级别统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var jbtj =echarts.init(document.getElementById("jbtj"),'infographic');
|
||||
|
||||
option = {
|
||||
tooltip : {
|
||||
trigger: 'item',
|
||||
formatter: "{a} <br/>{b} : {c} ({d}%)"
|
||||
},
|
||||
calculable : true,
|
||||
series : [
|
||||
{
|
||||
name:'发布数量',
|
||||
type:'pie',
|
||||
radius : '55%',
|
||||
center: ['50%', '50%'],
|
||||
data:[
|
||||
{value:335, name:'红色级别'},
|
||||
{value:310, name:'蓝色级别'},
|
||||
{value:234, name:'黄色级别'},
|
||||
{value:135, name:'橙色级别'}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
jbtj.setOption(option);
|
||||
|
||||
|
||||
|
||||
|
||||
//===================本月发布预警统计=======================
|
||||
//var line_time =echarts.init(document.getElementById("line_time"),'shine');
|
||||
var line_time =echarts.init(document.getElementById("line_time"),'shine');
|
||||
//var line_time =echarts.init(document.getElementById("line_time"),'infographic');
|
||||
var option = {
|
||||
// 给echarts图设置背景色
|
||||
//backgroundColor: '#FBFBFB', // -----------> // 给echarts图设置背景色
|
||||
color: ['#1181e6'],
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
},
|
||||
|
||||
grid:{
|
||||
x:40,
|
||||
y:30,
|
||||
x2:5,
|
||||
y2:20
|
||||
|
||||
},
|
||||
calculable: true,
|
||||
|
||||
|
||||
xAxis: [{
|
||||
type: 'category',
|
||||
data: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'],
|
||||
axisLabel: {
|
||||
color: "#cdddf7" //刻度线标签颜色
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}],
|
||||
yAxis: [{
|
||||
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
color: "#cdddf7" //刻度线标签颜色
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}],
|
||||
series: [{
|
||||
name: '条数',
|
||||
type: 'line',
|
||||
data: [10,5, 6, 7, 8, 4, 3,10,5, 6, 7, 8, 4, 3,5, 6, 7, 8, 4, 3, 3, 3,5, 6, 7, 8, 4, 3, 3],
|
||||
|
||||
}]
|
||||
};
|
||||
|
||||
|
||||
line_time.setOption(option);
|
||||
|
||||
|
||||
|
||||
//时间选择器
|
||||
var startV = '';
|
||||
var endV = '';
|
||||
laydate.skin('danlan');
|
||||
var startTime = {
|
||||
elem: '#startTime',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: '1997-01-01', //设定最小日期为当前日期
|
||||
max: laydate.now(), //最大日期
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
startV = datas;
|
||||
endTime.min = datas; //开始日选好后,重置结束日的最小日期
|
||||
}
|
||||
};
|
||||
var endTime = {
|
||||
elem: '#endTime',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now(),
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
endV = datas;
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(startTime);
|
||||
//laydate(endTime);
|
||||
|
||||
//时间选择器
|
||||
var startVs = '';
|
||||
var endVs = '';
|
||||
laydate.skin('danlan');
|
||||
var startTimes = {
|
||||
elem: '#startTimes',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: '1997-01-01', //设定最小日期为当前日期
|
||||
max: '2099-06-16', //最大日期
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
startVs = datas;
|
||||
endTimes.min = datas; //开始日选好后,重置结束日的最小日期
|
||||
setQgData($('#barTypes').parent().parent(), 1);
|
||||
}
|
||||
};
|
||||
var endTimes = {
|
||||
elem: '#endTimes',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now(),
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
endVs = datas;
|
||||
setQgData($('#barTypes').parent().parent(), 1);
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(startTimes);
|
||||
//laydate(endTimes);
|
||||
|
||||
|
||||
|
||||
|
||||
//更改日期插件的样式
|
||||
function dateCss() {
|
||||
var arr = $('#laydate_box').attr('style').split(';');
|
||||
var cssStr =
|
||||
'position:absolute;right:0;';
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i].indexOf('top') != -1) {
|
||||
cssStr += arr[i];
|
||||
}
|
||||
}
|
||||
|
||||
$('#laydate_box').attr('style', cssStr);
|
||||
}
|
||||
|
||||
|
||||
var workDate;
|
||||
var time = {
|
||||
elem: '#times',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now() + 30,
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
workDate = datas;
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(time);
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,384 @@
|
||||
function fnW(str) {
|
||||
var num;
|
||||
str >= 10 ? num = str : num = "0" + str;
|
||||
return num;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//获取当前时间
|
||||
var timer = setInterval(function () {
|
||||
var date = new Date();
|
||||
var year = date.getFullYear(); //当前年份
|
||||
var month = date.getMonth(); //当前月份
|
||||
var data = date.getDate(); //天
|
||||
var hours = date.getHours(); //小时
|
||||
var minute = date.getMinutes(); //分
|
||||
var second = date.getSeconds(); //秒
|
||||
var day = date.getDay(); //获取当前星期几
|
||||
var ampm = hours < 12 ? 'am' : 'pm';
|
||||
$('#time').html(fnW(hours) + ":" + fnW(minute) + ":" + fnW(second));
|
||||
$('#date').html('<span>' + year + '/' + (month + 1) + '/' + data + '</span><span>' + getMyDay(date) + '</span>')
|
||||
|
||||
}, 1000)
|
||||
|
||||
function getMyDay(date){
|
||||
var week;
|
||||
if(date.getDay()==0) week="周日"
|
||||
if(date.getDay()==1) week="周一"
|
||||
if(date.getDay()==2) week="周二"
|
||||
if(date.getDay()==3) week="周三"
|
||||
if(date.getDay()==4) week="周四"
|
||||
if(date.getDay()==5) week="周五"
|
||||
if(date.getDay()==6) week="周六"
|
||||
return week;
|
||||
}
|
||||
|
||||
//预警按发布区域统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var areatj =echarts.init(document.getElementById("areatj"));
|
||||
|
||||
option = {
|
||||
color: ['#3398DB'],//此处可设置柱条全局颜色
|
||||
tooltip : {
|
||||
trigger: 'axis',
|
||||
axisPointer : { // 坐标轴指示器,坐标轴触发有效
|
||||
type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
||||
}
|
||||
},
|
||||
|
||||
grid: {
|
||||
left: '2%',
|
||||
right: '2%',
|
||||
bottom: '10%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis : [
|
||||
{
|
||||
type : 'category',
|
||||
data: ['大连市区','旅顺口区','金州区','普兰店市','瓦房店市','庄河市','长海县','长兴岛'],
|
||||
axisTick: {
|
||||
alignWithLabel: true
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
},
|
||||
axisLabel: {interval:0,rotate:40 }
|
||||
}
|
||||
],
|
||||
yAxis : [
|
||||
{
|
||||
type : 'value',
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
series : [
|
||||
{
|
||||
name:'发布数量',
|
||||
type:'bar',
|
||||
barWidth: '50%',
|
||||
data:[400, 52, 200, 334, 390, 330, 220, 220],
|
||||
itemStyle:{//
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(
|
||||
0, 0, 0, 1,
|
||||
[
|
||||
{offset: 1, color: 'rgba(255,255,255,0)'},
|
||||
{offset: 0.5, color: '#37BBF8'},
|
||||
{offset: 0, color: '#3977E6'}
|
||||
]
|
||||
)
|
||||
},
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
areatj.setOption(option);
|
||||
|
||||
//预警按发布渠道统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var qdtj =echarts.init(document.getElementById("qdtj"));
|
||||
|
||||
option = {
|
||||
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '3%',
|
||||
right: '4%',
|
||||
bottom: '3%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
boundaryGap: [0, 0.01],
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
},
|
||||
yAxis: {
|
||||
type: 'category',
|
||||
data : ['国突', '其它渠道', '邮件', '微博','传真','多媒体','短信'],
|
||||
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '发布数量',
|
||||
type: 'bar',
|
||||
data: [70, 10, 52, 200, 334, 390, 330],
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: new echarts.graphic.LinearGradient(
|
||||
0, 0, 1, 0,
|
||||
[
|
||||
{offset: 1, color: '#1181e6'},
|
||||
{offset: 0.5, color: '#4d84b6'},
|
||||
{offset: 0, color: 'rgba(255,255,255,0)'}
|
||||
|
||||
|
||||
]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
qdtj.setOption(option);
|
||||
|
||||
//预警按发布级别统计
|
||||
//var pie_fanzui =echarts.init(document.getElementById("pie_fanzui"),'macarons');
|
||||
var jbtj =echarts.init(document.getElementById("jbtj"),'infographic');
|
||||
|
||||
option = {
|
||||
tooltip : {
|
||||
trigger: 'item',
|
||||
formatter: "{a} <br/>{b} : {c} ({d}%)"
|
||||
},
|
||||
calculable : true,
|
||||
series : [
|
||||
{
|
||||
name:'发布数量',
|
||||
type:'pie',
|
||||
radius : '55%',
|
||||
center: ['50%', '60%'],
|
||||
data:[
|
||||
{value:335, name:'红色级别'},
|
||||
{value:310, name:'蓝色级别'},
|
||||
{value:234, name:'黄色级别'},
|
||||
{value:135, name:'橙色级别'}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
jbtj.setOption(option);
|
||||
|
||||
|
||||
|
||||
|
||||
//===================本周发布预警统计=======================
|
||||
//var line_time =echarts.init(document.getElementById("line_time"),'shine');
|
||||
var line_time =echarts.init(document.getElementById("line_time"),'shine');
|
||||
//var line_time =echarts.init(document.getElementById("line_time"),'infographic');
|
||||
var option = {
|
||||
// 给echarts图设置背景色
|
||||
//backgroundColor: '#FBFBFB', // -----------> // 给echarts图设置背景色
|
||||
color: ['#7FFF00'],
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
},
|
||||
|
||||
grid:{
|
||||
x:40,
|
||||
y:30,
|
||||
x2:5,
|
||||
y2:20
|
||||
|
||||
},
|
||||
calculable: true,
|
||||
|
||||
|
||||
xAxis: [{
|
||||
type: 'category',
|
||||
data: ['1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30'],
|
||||
axisLabel: {
|
||||
color: "#cdddf7" //刻度线标签颜色
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}],
|
||||
yAxis: [{
|
||||
|
||||
type: 'value',
|
||||
axisLabel: {
|
||||
color: "#cdddf7" //刻度线标签颜色
|
||||
},
|
||||
//设置轴线的属性
|
||||
axisLine:{
|
||||
lineStyle:{
|
||||
color:'#cdddf7',
|
||||
width:1,//这里是为了突出显示加上的
|
||||
}
|
||||
}
|
||||
}],
|
||||
series: [{
|
||||
name: '条数',
|
||||
type: 'line',
|
||||
data: [10,5, 6, 7, 8, 4, 3,10,5, 6, 7, 8, 4, 3,5, 6, 7, 8, 4, 3, 3, 3,5, 6, 7, 8, 4, 3, 3],
|
||||
|
||||
}]
|
||||
};
|
||||
|
||||
|
||||
line_time.setOption(option);
|
||||
|
||||
|
||||
|
||||
//时间选择器
|
||||
var startV = '';
|
||||
var endV = '';
|
||||
laydate.skin('danlan');
|
||||
var startTime = {
|
||||
elem: '#startTime',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: '1997-01-01', //设定最小日期为当前日期
|
||||
max: laydate.now(), //最大日期
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
startV = datas;
|
||||
endTime.min = datas; //开始日选好后,重置结束日的最小日期
|
||||
}
|
||||
};
|
||||
var endTime = {
|
||||
elem: '#endTime',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now(),
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
endV = datas;
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(startTime);
|
||||
//laydate(endTime);
|
||||
|
||||
//时间选择器
|
||||
var startVs = '';
|
||||
var endVs = '';
|
||||
laydate.skin('danlan');
|
||||
var startTimes = {
|
||||
elem: '#startTimes',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: '1997-01-01', //设定最小日期为当前日期
|
||||
max: '2099-06-16', //最大日期
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
startVs = datas;
|
||||
endTimes.min = datas; //开始日选好后,重置结束日的最小日期
|
||||
setQgData($('#barTypes').parent().parent(), 1);
|
||||
}
|
||||
};
|
||||
var endTimes = {
|
||||
elem: '#endTimes',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now(),
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
endVs = datas;
|
||||
setQgData($('#barTypes').parent().parent(), 1);
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(startTimes);
|
||||
//laydate(endTimes);
|
||||
|
||||
|
||||
|
||||
|
||||
//更改日期插件的样式
|
||||
function dateCss() {
|
||||
var arr = $('#laydate_box').attr('style').split(';');
|
||||
var cssStr =
|
||||
'position:absolute;right:0;';
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (arr[i].indexOf('top') != -1) {
|
||||
cssStr += arr[i];
|
||||
}
|
||||
}
|
||||
|
||||
$('#laydate_box').attr('style', cssStr);
|
||||
}
|
||||
|
||||
|
||||
var workDate;
|
||||
var time = {
|
||||
elem: '#times',
|
||||
format: 'YYYY-MM-DD',
|
||||
min: laydate.now(),
|
||||
max: laydate.now() + 30,
|
||||
istime: true,
|
||||
istoday: true,
|
||||
fixed: false,
|
||||
choose: function (datas) {
|
||||
// startTime.max = datas; //结束日选好后,重置开始日的最大日期
|
||||
workDate = datas;
|
||||
}
|
||||
};
|
||||
|
||||
//laydate(time);
|
||||
|
||||
|
||||
|
||||