Commit 1d071742 authored by yaqizhang's avatar yaqizhang

改版

parent 20ace91e
......@@ -22,11 +22,8 @@
</div>
<div id="mainTitle">
<img src="images/top-banner01.png" alt="">
<!-- <img src="images/top-banner01.png" alt=""> -->
</div>
<div id="weather">
<iframe frameborder="0" scrolling="no" seamless="seamless" src="./weather.html"></iframe>
</div>
<!-- <div id="topBg"></div> -->
<!-- <div class="videoWindows" style="position: absolute; z-index: 100; width: 100%; height: 500px; bottom: 0; left: 0;">
......@@ -97,19 +94,12 @@
</div>
<div id="escbox">
<div class="escbox-tip">
<div class="escbox-tip-a escbox-tip-b" style="width: 100%;height: 90px;">
<div class="loadingio-spinner-ripple-h9py4n9xxvv" style="display: inline">
<div class="escbox-tip-a escbox-tip-b" style="width: 100%;height: 70px;">
<div class="ldio-2q89h75hfq5">
<div class="radar"><img src="images/out.png" ></div>
<img src="images/vector9.png" style="width: 50px;height: 50px;margin-top: 10px;">
</div>
</div>
<!-- <img src="images/u517.gif" alt="" /> -->
<span class="escbox-txt item">事件接报中.....</span>
<span class="escbox-txt item">实时预警</span>
</div>
<!-- <div class="escbox-tip-b alarm" style="clear: both">
<div class="item"><span class="num currEvNum">0</span><span class="itemTitle">当前事件</span></div>
<div class="item"><span class="num hisEvNum">0</span><span class="itemTitle">历史事件</span></div>
</div> -->
</div>
<div class="escbox-top">
<div class="escbox-tit">应急事件</div>
......@@ -186,109 +176,197 @@
</div>
</div>
</div>
<div class="mapbanner" style="position: fixed;top: 0;width: 100%;height: auto;z-index: 10;">
<div style="width: 100%;height: auto;line-height: 60px;">
<div class="weather" style="float: left;margin-top: 10px;margin-left: 50px;">
<iframe scrolling="no" src="https://tianqiapi.com/api.php?style=tb&skin=pitaya&color=0A9DCC" frameborder="0" width="350" height="24" allowtransparency="true"></iframe>
</div>
<div class="righttime" style="float: right;margin-right: 50px;">
<div id="top-right">
<div id="item">
<p id="itemone" style="color: #0A9DCC;"></p>
<!-- <p id="itemtwo"></p> -->
</div>
<div id="item item1">
<div id="he-plugin-standard"></div>
</div>
</div>
</div>
</div>
<div style="width: 50%;text-align: center;margin-left: 25%;
background-image:-webkit-linear-gradient(bottom,#FFFFFF,#0A9DCC);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;font-size: 30px;margin-top: 40px;font-family: PangMenZhengDao-Regular, PangMenZhengDao;font-weight: 400;">应急可视化智慧调度系统</div>
</div>
<div id="border"></div>
<div id="leftBar">
<div id="bottomMenu">
<a href="#" class="btn span1">
<div>态势分析</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span2">
<div>值守通讯</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span3">
<div>事件回顾</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span4">
<div>综合保障</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span5">
<div>应急预案</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
</div>
<div class="alarm" id="alarm">
</div>
<div id="" class="leftBar-legend">
<div class="leftlegend">
应急资源监控
</div>
<div class="echarts categoryAlarmNum" id="categoryAlarmNum" style="width: 430px;height: 260px;padding-left: 5px !important;padding-top: 3px !important;"></div>
<div style="background:linear-gradient(to left,#FFFFFF,#458dde,#FFFFFF);height:1px;"></div>
<ul id="legend">
</ul>
</div>
<!-- <div id="bottomMenu">
<a href="#" class="btn span1">
<div>态势分析</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span2">
<div>值守通讯</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span3">
<div>事件回顾</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span4">
<div>综合保障</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
<a href="#" class="btn span5">
<div>应急预案</div>
<span></span>
<span></span>
<span></span>
<span></span>
</a>
</div> -->
<div class="alarm" id="alarm">
</div>
<div id="" class="leftBar-legend">
<div class="leftlegend">
事件类型统计
<img src="images/vector8.png" alt="" style="width: 14px;margin-right: 10px;">
</div>
<div class="echarts deviceNumPie" id="deviceNumPie"></div>
<div id="alarmList" class="right-alarm">
<div class="leftlegend">安全生产实时预警数据
<img src="images/vector10.png" alt="" style="width: 14px;margin-right: 10px;">
</div>
<div class="listTitle">
<div style="width: 20%; overflow: hidden">所属单位</div>
<div style="width: 15%; overflow: hidden">设备类型</div>
<div style="width: 20%; overflow: hidden">预警信息</div>
<div style="width: 30%; overflow: hidden">预警时间</div>
<div style="width: 10%; overflow: hidden">状态</div>
</div>
<div class="listContent"></div>
</div>
<div style="background:linear-gradient(to left,#FFFFFF,#458dde,#FFFFFF);height:1px;"></div>
<ul id="legend">
</ul>
</div>
</div>
<div id="rightBar">
<!-- <div class="echarts deviceNumBar" id="deviceNumBar"></div> -->
<div class="deviceNumPieout">
<div class="leftlegend">
事件类型统计
</div>
<div class="echarts deviceNumPie" id="deviceNumPie"></div>
</div>
<div class="right-bar">
<div class="rightlegend">
<img src="images/vector2.png" alt="" style="width: 14px;margin-left: 10px;">
应急资源监控
</div>
<div style="width: 100%;height: auto;">
<div style="float: left;width: 48%;height: auto;">
<div class="echarts categoryAlarmNum" id="categoryAlarmNum" style="width: 100%;height: 220px;padding-left: 5px !important;padding-top: 3px !important;"></div>
<div class="inyuan">
<p style="letter-spacing: 2px;margin-top: 30px;">设备总数</p>
<span class="wu"
style="
font-family: 'arialbd';
letter-spacing: 2px;
color: #00ffff;
font-size: 20px;
"
></span
>
</div>
</div>
<div class="usernum">
<div class="usernumin">
<span class=" in1"> ● 安全生产企业 </span>
<p class="p1" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
<div class="usernumin">
<span class=" in2"> ● 视频监控 </span>
<p class="p2" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
<div class="usernumin">
<span class=" in3"> ● 移动设备 </span>
<p class="p3" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
<div class="usernumin">
<span class=" in4"> ● 应急保障 </span>
<p class="p4" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
<div class="usernumin">
<span class=" in5"> ● 应急物资 </span>
<p class="p5" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
<div class="usernumin">
<span class=" in6"> ● 自然灾害 </span>
<p class="p6" style="font-family: 'arialbd';color: #cddbe4; letter-spacing: 2px">
</p
>
</div>
</div>
</div>
</div>
<div class="deviceNumLineout">
<div class="leftlegend">
<div class="rightlegend">
<img src="images/vector11.png" alt="" style="width: 14px;height: 14px;margin-left: 10px;">
预警数量
</div>
<div class="Linebutton">
<button type="button" class="linebtn active"></button>
<button type="button" class="linebtn"></button>
</div>
<div class="Linebutton">
<button type="button" class="linebtn active"></button>
<button type="button" class="linebtn"></button>
</div>
<!-- 折线图 -->
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<div class="echarts deviceNumLine deviceNumLineday show" id="deviceNumLineday" style="width: 430px;height: 190px;margin-top: 50px;"></div>
<div class="echarts deviceNumLine deviceNumLinemouth" id="deviceNumLinemouth" style="width: 430px;height: 190px;margin-top: 50px;"></div>
<div class="echarts deviceNumLine deviceNumLineday show" id="deviceNumLineday" style="width: 370px;height: 200px;margin-top: 50px;"></div>
<div class="echarts deviceNumLine deviceNumLinemouth" id="deviceNumLinemouth" style="width: 370px;height: 200px;margin-top: 50px;"></div>
</div>
<div id="alarmList" class="right-alarm">
<div class="mktit">安全生产实时预警数据</div>
<div class="listTitle">
<div style="width: 20%; overflow: hidden">所属单位</div>
<div style="width: 15%; overflow: hidden">设备类型</div>
<div style="width: 20%; overflow: hidden">预警信息</div>
<div style="width: 30%; overflow: hidden">预警时间</div>
<div style="width: 10%; overflow: hidden">状态</div>
</div>
<div class="listContent"></div>
</div>
<!-- 值班信息 -->
<div class="msgWrap">
<div class="msgWraplegend">
当前值班信息
</div>
<div class="dutyinfo" id="tbmsg"style="overflow-y: auto;height:130px;">
<dl>
<dt>部门</dt>
<dt>当班人员</dt>
<dt>电话</dt>
</dl>
<div class="rightlegend">
<img src="images/vector7.png" alt="" style="width: 14px;margin-left: 10px;">
当前值班信息
</div>
<div class="dutyinfo" id="tbmsg"style="overflow-y: auto;height:130px;">
<dl>
<dt>部门</dt>
<dt>当班人员</dt>
<dt>电话</dt>
</dl>
</div>
</div>
</div>
<div class="hide videoHome">
......@@ -376,6 +454,10 @@
<script src="./js/app.js"></script>
<script>
// var legenditem=document.getElementById(".legendItem");
// var legendchild=document.getElementById(".legendchild");
setInterval("document.getElementById('itemone').innerHTML=new Date().toLocaleString();",1000);
// document.getElementById("itemtwo").innerHTML = "星期"+"日一二三四五六".charAt(new Date().getDay());
$(".saveImage").click(function () {
html2canvas(jQuery(".amap-layer")[0], {
......@@ -549,79 +631,9 @@
bottom:100%;
}
}
.radar {
/* background: -webkit-radial-gradient(center, rgba(32, 255, 77, 0.3) 0%, rgba(32, 255, 77, 0) 75%), -webkit-repeating-radial-gradient(rgba(32, 255, 77, 0) 5.8%, rgba(32, 255, 77, 0) 18%, #20ff4d 18.6%, rgba(32, 255, 77, 0) 18.9%), -webkit-linear-gradient(90deg, rgba(32, 255, 77, 0) 49.5%, #20ff4d 50%, #20ff4d 50%, rgba(32, 255, 77, 0) 50.2%), -webkit-linear-gradient(0deg, rgba(32, 255, 77, 0) 49.5%, #20ff4d 50%, #20ff4d 50%, rgba(32, 255, 77, 0) 50.2%);
background */: radial-gradient(center, rgba(32, 255, 77, 0.3) 0%, rgba(32, 255, 77, 0) 75%), repeating-radial-gradient(rgba(32, 255, 77, 0) 5.8%, rgba(32, 255, 77, 0) 18%, #20ff4d 18.6%, rgba(32, 255, 77, 0) 18.9%), linear-gradient(90deg, rgba(32, 255, 77, 0) 49.5%, #20ff4d 50%, #20ff4d 50%, rgba(32, 255, 77, 0) 50.2%), linear-gradient(0deg, rgba(32, 255, 77, 0) 49.5%, #20ff4d 50%, #20ff4d 50%, rgba(32, 255, 77, 0) 50.2%);
width: 80px;
height: 80px;
position: relative;
left: 48%;
top: 45%;
padding: 1px;
transform: translate(-50%, -50%);
/* border-radius: 50%;
border: 0.2rem solid */#20ff4d;
overflow: hidden;
}
.radar img{
width: 100%;
height: 100%;
}
.radar:before {
content: ' ';
display: block;
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
animation: blips 5s infinite;
animation-timing-function: linear;
animation-delay: 1.4s;
}
.radar:after {
content: ' ';
display: block;
background-image: linear-gradient(44deg, rgba(0, 255, 51, 0) 50%, #00ff33 100%);
width: 50%;
height: 50%;
position: absolute;
top: 0;
left: 0;
animation: radar-beam 5s infinite;
animation-timing-function: linear;
transform-origin: bottom right;
border-radius: 100% 0 0 0;
}
@keyframes radar-beam {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes blips {
14% {
background: radial-gradient(2vmin circle at 75% 70%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%);
}
14.0002% {
background: radial-gradient(2vmin circle at 75% 70%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 63% 72%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%);
}
25% {
background: radial-gradient(2vmin circle at 75% 70%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 63% 72%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 56% 86%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%);
}
26% {
background: radial-gradient(2vmin circle at 75% 70%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 63% 72%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 56% 86%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%);
opacity: 1;
}
100% {
background: radial-gradient(2vmin circle at 75% 70%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 63% 72%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%), radial-gradient(2vmin circle at 56% 86%, #ffffff 10%, #20ff4d 30%, rgba(255, 255, 255, 0) 100%);
opacity: 0;
}
}
.Linebutton{
width: 50%;
width: 60%;
float: right;
}
.linebtn{
......@@ -645,6 +657,53 @@
display:block;
}
.inyuan {
width: 120px;
height: 120px;
border-radius: 50%;
/* border: 2px solid #125c9b; */
position: fixed;
margin-bottom: 10px;
margin-top: -170px;
margin-left: 41px;
font-size: 15px;
color: #cddbe4;
text-align: center;
line-height: 35px;
/* padding: 28px 0px 0px 0px; */
background-image: linear-gradient(to left, #112238, #003e8d, #112238);
}
.usernum {
float: left;
width: 52%;
text-align: center;
height: auto;
margin-top: 35px;
}
.usernumin {
float: left;
width: 50%;
height: 50px;
font-size: 15px;
}
.in1 {
color: #FDF070;
}
.in2 {
color: #50B06B;
}
.in3 {
color: #E8F2EE;
}
.in4 {
color: #F18231;
}
.in5 {
color: #009CF3;
}
.in6 {
color: #76D5F4;
}
</style>
</body>
</html>
......@@ -11,15 +11,15 @@ var MTOOL;
// function renderMap() {
// 渲染地图
district.search('河北省', function (status, result) {
district.search('赞皇', function (status, result) {
var bounds = result.districtList[0].boundaries;
var mask = [];
for (var i = 0; i < bounds.length; i += 1) {
mask.push([bounds[i]]);
}
// var mask = [];
// for (var i = 0; i < bounds.length; i += 1) {
// mask.push([bounds[i]]);
// }
var defaultCenter = [114.72995, 38.37417];
map = new AMap.Map('container', {
mask: mask,
// mask: mask,
center: defaultCenter,
// resizeEnable: true,
disableSocket: true,
......@@ -81,7 +81,7 @@ district.search('河北省', function (status, result) {
// // })
// }),
// );
map.addControl(new AMap.MapType({defaultType: 1 ,showroad: true }));
map.addControl(new AMap.MapType({defaultType: 0 ,showroad: true }));
map.addControl(new AMap.Scale({ visible: true }));
map.addControl(new AMap.ToolBar({ position: 'LT', ruler: false, direction: false }));
});
......
......@@ -188,12 +188,13 @@ function createBarChart(options) {
createEchart(option);
}
// 生成不同类型设备报警数量图
// 生成不同类型设备报警数量图 应急资源监控
function createDeviceAlarmNumBarChart(options) {
var option = {
name: options.name,
eleId: options.eleId,
opts: {
color: ["#FDF070", "#E8F2EE", "#50B06B","#F18231", "#009CF3", "#76D5F4"],
title: {
left: 'left',
textStyle: {
......@@ -202,53 +203,76 @@ function createDeviceAlarmNumBarChart(options) {
lineHeight: '36',
},
},
grid: {
top: 35,
left: 30,
bottom: 80,
right: 10,
},
xAxis: {
type: 'category',
data: options.xAxisData,
axisLabel: {
textStyle: {
color: '#ddd',
},
interval: 0,
rotate: 60,
},
},
yAxis: {
type: 'value',
show: false,
},
// tooltip: {
// trigger: 'item'
// },
toolbox: {
show: true,
feature: {
mark: { show: true },
// dataView: { show: true, readOnly: false },
// restore: { show: true },
// saveAsImage: { show: true }
}
},
series: [
{
type: 'bar',
label: {
show: true,
position: 'inside',
},
barWidth: 20,
name: 'Access From',
type: 'pie',
radius: ["75%", "65%"],
// center: ["50%", "50%"],
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#83bff6' },
{ offset: 0.5, color: '#188df0' },
{ offset: 1, color: '#188df0' },
]),
borderRadius: 20,
},
emphasis: {
itemStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#2378f7' },
{ offset: 0.7, color: '#2378f7' },
{ offset: 1, color: '#83bff6' },
]),
label: {
normal: {
show: false,
textStyle: {
fontSize: 13,
},
position: "outside",
},
emphasis: {
show: false,
},
},
labelLine: {
normal: {
show: false,
length: 20,
length2: 35,
},
emphasis: {
show: true,
},
},
data: options.seriesData,
},
// {
// name: "外边框",
// type: "pie",
// clockWise: false, //顺时加载
// hoverAnimation: false, //鼠标移入变大
// center: ["50%", "50%"],
// radius: ["80%", "80%"],
// label: {
// normal: {
// show: false,
// },
// },
// data: [
// {
// value: 9,
// name: "",
// itemStyle: {
// normal: {
// borderWidth: 2,
// borderColor: "#61bad3",
// },
// },
// },
// ],
// },
],
},
};
......@@ -270,33 +294,9 @@ function createPieChart(options) {
lineHeight: '36',
},
},
// legend: {
// top: 'bottom'
// orient: 'vertical',
// top: 35,
// left: 6,
// formatter: function (name) {
// var index = 0;
// var clientlabels = options.legendData;
// var clientcounts = options.seriesData;
// for (var i = 0; i < clientlabels.length; ++i) {
// if (clientlabels[i] == name) {
// index = i;
// }
// }
// return '[ ' + clientcounts[index].value + ' ] ' + name;
// },
// textStyle: {
// color: '#ddd',
// fontSize: 14,
// lineHeight: 12,
// },
// inactiveColor: '#555',
// itemWidth: 12,
// itemHeight: 12,
// itemGap: 9,
// data: options.legendData,
// },
// tooltip: {
// trigger: 'item'
// },
toolbox: {
show: true,
feature: {
......@@ -308,25 +308,24 @@ function createPieChart(options) {
},
series: [
{
name: 'Nightingale Chart',
// name: 'Nightingale Chart',
type: 'pie',
radius: [15, 80],
center: ['50%', '50%'],
// radius: [15, 80],
center: ['50%', '50%'],
label : {
    normal : {
      formatter: '{b} {c}',
      textStyle : {
        fontWeight : 'normal',
        fontSize : 14
      }
    }
  },
roseType: 'area',
itemStyle: {
borderRadius: 8
},
data: options.seriesData,
//[
// { value: 40, name: 'rose 1' },
// { value: 38, name: 'rose 2' },
// { value: 32, name: 'rose 3' },
// { value: 30, name: 'rose 4' },
// { value: 28, name: 'rose 5' },
// { value: 26, name: 'rose 6' },
// { value: 22, name: 'rose 7' },
// { value: 18, name: 'rose 8' }
// ]
}
],
......@@ -346,32 +345,56 @@ function createLineChartday(options) {
y:10,
x2:20,
y2:60,
borderWidth:1,
bottom:'40%'
borderWidth:1,
top: '15%',
bottom:'15%'
},
xAxis: {
type: 'category',
data: options.xAxisData,
axisLabel: {
textStyle: {
color: '#ddd',
},
rotate: 60,
},
},
yAxis: {
type: 'value',
axisLabel: {
textStyle: {
color: '#ddd',
fontSize:'14',
},
},
// data: options.xAxisData,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLabel: {
textStyle: {
color: '#ddd',
},
rotate: 60,
},
},
yAxis: {
type: 'value',
axisLabel: {
textStyle: {
color: '#ddd',
fontSize:'14',
},
},
},
series: [
{
data: options.seriesData,
type: 'line'
// data: options.seriesData,
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar',
barWidth: 12, //柱图宽度
itemStyle: {
normal: {
label: {
show: true, //开启显示
position: "top", //在上方显示
textStyle: {
//数值样式
color: "#688AB6",
fontSize: 12,
},
},
barBorderRadius: [5, 5, 0, 0],
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#DFB73E' },
{ offset: 0.5, color: '#DFB73E' },
{ offset: 1, color: '#141f364d' }
])
},
},
}
]
},
......@@ -390,11 +413,12 @@ function createLineChartmouth(options) {
x2:20,
y2:40,
borderWidth:1,
bottom:'40%'
bottom:'15%'
},
xAxis: {
type: 'category',
data: options.xAxisData,
// data: options.xAxisData,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
axisLabel: {
textStyle: {
color: '#ddd',
......@@ -413,8 +437,9 @@ function createLineChartmouth(options) {
},
series: [
{
data: options.seriesData,
type: 'line'
// data: options.seriesData,
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}
]
},
......@@ -558,11 +583,11 @@ function createLegendList() {
tmpLi +=
'<li data-id="' +
items[i].id +
'" class="legendItem"><div><img class="legendPic" style="padding: 7px;" src="./images/legend/' +
'" class="legendItem "><div><img class="legendPic" style="padding: 7px 0;" src="./images/legend/' +
items[i].legendCode +
'.png" alt=""/><p class="legendTitle">' +
'.png" alt=""/><span class="legendTitle">' +
items[i].legendName +
'</p></div><div>';
'</span></div><div class="legendchild">';
var children = items[i].childList;
for (var j = 0; j < children.length; ++j) {
tmpLi += '<a data-id="' + children[j].id + '" href="#" title="' + children[j].legendName + '">' + children[j].legendName + '</a>';
......@@ -571,12 +596,39 @@ function createLegendList() {
}
$('#legend').html(tmpLi);
var legenditem=document.getElementsByClassName("legendItem");
var legendchild=document.getElementsByClassName("legendchild");
for (var i=0; i<legenditem.length;i++){
legenditem[i].index = i;
legenditem[i].onclick = function(){
// alert()
var lc = this.lastChild;
if(lc.style.display = "none"){
lc.style.display = "block";
}else{
aa.style.display = "none";
}
          //对当前点击的按钮赋予active类名及显示当前按钮对应的内容
// for(var j=0;j<legenditem.length;j++){
// // console.log(legenditem[j],"fasdfdsaffdsfdsfdsafds",legenditem[j].className)
// // legenditem[j].className = legenditem[j].className.replace(' active', '').trim();
// console.log(legenditem[j])
// var aa =
// }
// this.className = this.className + ' active';
// legendchild[this.index].className = legendchild[this.index].className + ' show';
};
}
// 默认显示视频监控设备
// $('.legendItem').eq(0).click();
} else {
layLayer.alert('数据为空');
}
}
},
};
jQueryAjax(opts);
......@@ -878,8 +930,9 @@ function createDeviceNumPieChart(eleId) {
options.seriesData.push({
// name: res.data[i].typeName,
// value: res.data[i].deviceNum,
name: res.data[i].eventType,
value: res.data[i].eventNum,
name: res.data[i].eventType,
value: res.data[i].eventNum,
});
options.series.push({
name: res.data[i].key,
......@@ -1013,6 +1066,14 @@ function renderLegendTypeNum(eleId) {
var opts = {
url: apis.getLegendTypeNum,
success: function (res) {
console.log("333333333",res.data)
$('.wu').append(res.data[0].num + res.data[1].num + res.data[2].num + res.data[3].num + res.data[4].num + res.data[5].num);
$('.p1').append(res.data[0].num);
$('.p2').append(res.data[1].num);
$('.p3').append(res.data[2].num);
$('.p4').append(res.data[3].num);
$('.p5').append(res.data[4].num);
$('.p6').append(res.data[5].num);
if (res.code === 0) {
var options = {
eleId: eleId,
......@@ -1022,17 +1083,22 @@ function renderLegendTypeNum(eleId) {
seriesData: [],
};
for (var i in res.data) {
options.xAxisData.push(res.data[i].legendName);
options.seriesData.push(res.data[i].num);
// options.series.push({
// name: res.data[i].key,
// type: 'bar',
// stack: 'all',
// label: {
// show: true
// },
// data: [res.data[i].value]
// })
// options.xAxisData.push(res.data[i].legendName);
// options.seriesData.push(res.data[i].num);
// options.legendData.push(res.data[i].typeName);
options.seriesData.push({
// name: res.data[i].typeName,
// value: res.data[i].deviceNum,
name: res.data[i].legendName,
value: res.data[i].num,
});
options.series.push({
name: res.data[i].key,
type: 'bar',
stack: 'all',
data: [res.data[i].value],
});
}
createDeviceAlarmNumBarChart(options);
// createBarChart(options);
......@@ -1050,13 +1116,13 @@ function renderAlarmList(obj) {
</div>
<div class="itemout">
<div class="item">
<span class="num">${obj.totalNum}</span><span class="itemTitle">预警总数</span>
<div class="itemTitle">预警总数</div><div class="num">${obj.totalNum}</div>
</div>
<div class="item">
<span class="num">${obj.handledNum}</span><span class="itemTitle">已处理</span>
<div class="itemTitle">已处理</div><div class="num">${obj.handledNum}</div>
</div>
<div class="item">
<span class="num">${obj.noHandeldNum}</span><span class="itemTitle">未处理</span>
<div class="itemTitle">未处理</div><div class="num">${obj.noHandeldNum}</div>
</div>
</div>
`;
......
......@@ -168,34 +168,22 @@ table.layui-table th {
/* 报警数量 */
.alarm {
/* display: flex; */
/* width: 100%; */
width: 100%;
height: auto !important;
padding: 10px;
margin-top: 80px;
margin-left: 5px;
width: 454px;
background: rgba(21,34,60,0.8);
overflow: hidden;
box-sizing: border-box;
/* justify-content: space-between; */
border-right: 2px solid ;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#123c7f,#00F7DE,#123c7f,#00F7DE) 30 30;
border-image: -moz-linear-gradient(#123c7f,#00F7DE,#123c7f,#00F7DE) 30 30;
border-image: linear-gradient(#123c7f,#00F7DE,#123c7f,#00F7DE) 30 30;
}
.alarm .itemout{
display: flex;
justify-content: space-between;
}
.alarm .item {
width: auto;
height: 55px;
background: url(../images/one1.png) no-repeat;
width: 33%;
height: 100px;
background-size: 100% 100%;
position: relative;
overflow: hidden;
/* padding: 0 16px; */
padding: 0px 20px;
......@@ -204,24 +192,26 @@ table.layui-table th {
}
.alarm .num {
color: #0cb0ef;
font-size: 1.6rem;
font-family: 'LED';
text-align: right;
width: auto;
display: inline-block;
background-image:-webkit-linear-gradient(bottom,#DFB73E,#FFFFFF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.alarm .itemh2 {
width: 100%;
height: 30px;
font-size: 18px;
font-size: 15px;
text-align: right;
line-height: 30px;
color: #03ffff;
padding-left: 10px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%) 50%, rgb(0 247 222 / 40%));
color: #fff;
background-image: linear-gradient(to right,rgb(21 34 60 / 50%), rgb(29 45 78 / 70%) 50%);
}
.alarm .itemTitle {
color: #d8d8d8;
color: #64FEFF;
font-size: 12px;
}
......@@ -272,68 +262,69 @@ table.layui-table th {
/* 图表样式 */
.echarts,
#alarmList {
width: 445px;
width: 100%;
height: 240px;
background-size: 100% 100%;
position: relative;
/* margin-top: -20px; */
}
#alarmList {
/* #alarmList {
padding: 25px 10px 0px 10px;
}
} */
.deviceNumBar {
height: 70px;
}
/* 天气样式 */
#weather {
margin: 10px auto 0;
position: fixed;
top: 0;
right: 0;
margin-top: 30px;
z-index: 999;
}
#weather,
iframe {
height: 50px;
width: 480px;
}
/* 图例 */
#legend {
overflow: hidden;
margin: 0;
width: 94%;
margin-left: 3%;
width: 200%;
margin-left: 650px;
position: absolute;
bottom: 0;
margin-bottom: -35px;
color: #ddd;
}
#legend a {
display: inline-block;
text-align: center;
color: #ccc;
padding: 3px 6px;
margin: 5px;
background-size: 100% 100%;
border-radius: 5px;
border: 1px solid #00F7DE;
display: inline-block;
text-align: center;
color: #ccc;
padding: 3px 6px;
margin: 5px;
background-size: 100% 100%;
border-radius: 5px;
border: 1px solid #00F7DE;
}
#legend div {
float: left;
clear: both;
width: 100%;
}
.legendItem {
margin: 3px 0;
background-size: 100% 100%;
overflow: hidden;
border-bottom: 1px solid #33faf7;
cursor: pointer;
float: left;
background: url(../images/vector5.png);
background-size: 100% 100%;
background-repeat: no-repeat;
padding: 0 5px;
margin-left: 10px;
}
.legendchild{
display: none;
width: auto;
position: fixed;
bottom: 85px;
}
/* .legendItem:active + .legendchild{
display: block;
} */
.legendItem:last-child{
border-bottom: 0;
}
......@@ -346,17 +337,16 @@ iframe {
}
.legendPic {
width: 24px;
height: 24px;
width: 20px;
height: 20px;
float: left;
overflow: hidden;
}
.legendTitle {
width: calc(100% - 70px);
/* width: calc(100% - 70px); */
float: left;
line-height: 35px;
margin-left: 10px;
font-size: 14px;
color: #fefefe;
}
......@@ -453,113 +443,109 @@ iframe {
left: 828px;
/* top: 7px; */
}
#leftBar,
#rightBar {
width: 450px;
height: 99.9%;
#border{
width: 100%;
height: 100%;
z-index: 2;
min-width: 1000px;
background: url(../images/mapbg6.png) no-repeat;
background-size: 100% 100%;
position: absolute;
right: 0;
top: 0;
}
#leftBar{
/* background: url(../images/mapleft1.png); */
background-repeat: no-repeat;
background-size: 100%;
width: 22%;
height: 87%;
position: fixed;
left: 0;
top: 0;
bottom: 0;
z-index: 2;
background-size: 100%;
background-size: 100% 100%;
margin-top: 3%;
margin-left: 2%;
}
.msgWraplegend{
width: 100%;
height: 30px;
font-size: 18px;
line-height: 30px;
color: #03ffff;
padding-left: 10px;
margin: 10px 0 0 0px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%) 50%, rgb(0 247 222 / 40%));
#rightBar{
/* background: url(../images/mapright1.png); */
background-repeat: no-repeat;
background-size: 100%;
width: 22%;
height: 87%;
position: fixed;
right: 0;
top: 0;
bottom: 0;
z-index: 2;
background-size: 100% 100%;
margin-top: 3%;
margin-right: 3%;
}
#leftBar {
left: 0;
width: 450px;
height: 99.9%;
right: auto;
.right-bar{
width: 100%;
height: auto !important;
padding: 10px;
margin-right: 5px;
margin-top: 80px;
overflow: hidden;
box-sizing: border-box;
}
.leftBar-legend{
left: 0;
width: 100%;
height: auto;
right: auto;
margin-top: 10px;
margin-left: 5px;
padding-bottom: 10px;
background: rgba(21,34,60,0.8);
border-right: 2px solid ;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
height: auto !important;
padding: 10px;
margin-left: 5px;
overflow: hidden;
box-sizing: border-box;
}
.leftlegend{
width: 95%;
width: 100%;
height: 30px;
font-size: 18px;
font-size: 15px;
text-align: right;
line-height: 30px;
color: #03ffff;
padding-left: 10px;
margin: 10px 0 0 10px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%) 50%, rgb(0 247 222 / 40%));
color: #fff;
background-image: linear-gradient(to right,rgb(21 34 60 / 50%), rgb(29 45 78 / 70%) 50%);;
}
.rightlegend{
width: 100%;
height: 30px;
font-size: 15px;
line-height: 30px;
color: #fff;
text-align: left;
margin-left: 10px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%), rgb(29 45 78 / 70%) 50%);
}
.deviceNumPieout{
width: 440px;
width: 100%;
height: 240px;
margin-top: 80px;
-webkit-tap-highlight-color: transparent;
background: rgba(21,34,60,0.8);
border-right: 2px solid;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
user-select: none;
}
.deviceNumLineout{
width: 440px;
height: 280px;
margin-top: 10px;
-webkit-tap-highlight-color: transparent;
background: rgba(21,34,60,0.8);
border-right: 2px solid;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
user-select: none;
width: 100%;
height: auto !important;
padding: 10px;
margin-right: 5px;
overflow: hidden;
box-sizing: border-box;
}
.deviceNumPie{
width: 436px;
height: 190px;
width: 100%;
height: 250px;
}
.right-alarm{
width: 100%;
height: 270px;
background-size: 100% 100%;
position: relative;
margin-top: 10px;
background: rgba(21,34,60,0.8);
border-right: 2px solid;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
height: auto !important;
overflow: hidden;
box-sizing: border-box;
}
/* 云台 */
.controlBtn {
display: flex;
display: none;
flex-wrap: wrap;
}
......@@ -746,20 +732,13 @@ iframe {
border-top-right-radius: 5px;
/* background-image: url('../images/one11.png'); */
max-height: calc(100vh - 100px);
background: rgba(21,34,60,0.8);
border-right: 2px solid ;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
z-index: 3;
}
.escbox-txt {
line-height: 90px;
line-height: 70px;
display: inline;
/* margin-left: 120px; */
float: left;
margin-left: 10px;
}
.escbox-bottom .escbox-top {
height: auto;
......@@ -999,20 +978,12 @@ iframe {
line-height: 2;
}
.msgWrap {
width: 99%;
width: 100%;
height: auto;
margin-top: 10px;
padding: 0px 10px 10px 10px;
overflow: hidden;
box-sizing: border-box;
background: rgba(21,34,60,0.8);
border-right: 2px solid;
border-left: 2px solid;
border-top: 2px solid;
border-bottom: 2px solid;
border-image: -webkit-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: -moz-linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
border-image: linear-gradient(#4987de,#00F7DE,#4987de) 30 30;
}
.msgWrap .dutyinfo {
background: transparent;
......@@ -1076,18 +1047,13 @@ iframe {
outline: none;
}
.mktit {
color: #03ffff;
font-size: 18px;
text-align: left;
margin-top: 10px;
width: 95%;
height: 30px;
line-height: 30px;
overflow: hidden;
position: absolute;
top: 0;
padding-left: 10px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%) 50%, rgb(0 247 222 / 40%));
width: 100%;
height: 30px;
font-size: 18px;
line-height: 30px;
color: #03ffff;
padding-left: 10px;
background-image: linear-gradient(to left,rgb(21 34 60 / 50%) 50%, rgb(0 247 222 / 40%));
}
#map-styles{
width: auto;
......@@ -1285,11 +1251,15 @@ iframe {
color: #fff;
}
.escbox-tip {
width: 180px;
background: rgba(24, 35, 62, 0.7);
position: fixed;
bottom: 0;
color: #0ff;
/* padding: 10px 0; */
padding: 0px 10px;
/* border-radius: 10px; */
margin: 10px;
margin-bottom: 40px;
margin-left: 30px;
border: 1px solid #183158;
}
.escbox-tip-a {
......@@ -1306,7 +1276,6 @@ iframe {
display: flex;
justify-content: space-around;
cursor: pointer;
padding: 15px 0;
border-top: 1px solid rgba(0, 0, 0, 0.2);
}
/* .escbox-tip-b .item {
......@@ -1476,8 +1445,6 @@ div[lay-id='members'] thead tr:nth-child(1) {
background: rgba(NaN, NaN, NaN, 0);
}
.ldio-2q89h75hfq5 {
width: 100%;
height: 100%;
position: relative;
transform: translateZ(0) scale(1);
backface-visibility: hidden;
......
......@@ -157,8 +157,8 @@
key: '61b7aa520cb34e62a9eee4644a689fcf',
},
};
setInterval("document.getElementById('itemone').innerHTML=new Date().toLocaleString();",1000);
document.getElementById("itemtwo").innerHTML = "星期"+"日一二三四五六".charAt(new Date().getDay());
// setInterval("document.getElementById('itemone').innerHTML=new Date().toLocaleString();",1000);
// document.getElementById("itemtwo").innerHTML = "星期"+"日一二三四五六".charAt(new Date().getDay());
</script>
<script src="https://widget.heweather.net/standard/static/js/he-standard-common.js?v=1.1"></script>
<!-- <div id="he-plugin-standard"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment