Commit 4cca41e5 authored by yaqizhang's avatar yaqizhang

不合理样式优化

parent 8019c493
...@@ -243,6 +243,21 @@ ...@@ -243,6 +243,21 @@
</a> </a>
</div> --> </div> -->
<div class="alarm" id="alarm"> <div class="alarm" id="alarm">
<div class="itemh2">
预警监控
<img src="images/vector12.png" alt="" style="width: 14px;margin-right: 10px;">
</div>
<div class="itemout">
<div class="item">
<div class="itemTitle">预警总数</div><div class="num">0</div>
</div>
<div class="item">
<div class="itemTitle">已处理</div><div class="num">0</div>
</div>
<div class="item">
<div class="itemTitle">未处理</div><div class="num">0</div>
</div>
</div>
</div> </div>
<div style="background: linear-gradient(to left,#111a2e,#64FEFF,#111a2e);height:1px;margin-top: 20px;margin-bottom: 20px;margin-left: 20px;width: 90%;"></div> <div style="background: linear-gradient(to left,#111a2e,#64FEFF,#111a2e);height:1px;margin-top: 20px;margin-bottom: 20px;margin-left: 20px;width: 90%;"></div>
<div id="" class="leftBar-legend"> <div id="" class="leftBar-legend">
......
...@@ -437,7 +437,7 @@ $(function () { ...@@ -437,7 +437,7 @@ $(function () {
currEventsArr = [...getCurrEventsArr, ...socketCurrEventsArr]; currEventsArr = [...getCurrEventsArr, ...socketCurrEventsArr];
$(".currEvNum").html(currEventsArr.length); $(".currEvNum").html(currEventsArr.length);
if (getCurrEventsArr.length > 0) if (getCurrEventsArr.length > 0)
$(".escbox-txt").html('<font style="color:red">有待处理事件</font>'); $(".escbox-txt").html('<font style="color:red">有待处理事件!</font>');
if (socketCurrEventsArr.length > 0) if (socketCurrEventsArr.length > 0)
$(".escbox-txt").html('<font style="color:red">发生事件!</font>'); $(".escbox-txt").html('<font style="color:red">发生事件!</font>');
layTable.render({ layTable.render({
...@@ -1150,15 +1150,15 @@ $(function () { ...@@ -1150,15 +1150,15 @@ $(function () {
function defalutMApP() { function defalutMApP() {
cont = 0; cont = 0;
map.clearMap(); map.clearMap();
district.search("新乐市", function (status, result) { district.search("赞皇", function (status, result) {
var bounds = result.districtList[0].boundaries; var bounds = result.districtList[0].boundaries;
var mask = []; // var mask = [];
for (var i = 0; i < bounds.length; i += 1) { // for (var i = 0; i < bounds.length; i += 1) {
mask.push([bounds[i]]); // mask.push([bounds[i]]);
} // }
var defaultCenter = [114.72995, 38.37417]; var defaultCenter = [114.391885,37.672925];
map = new AMap.Map("container", { map = new AMap.Map("container", {
mask: mask, // mask: mask,
center: defaultCenter, center: defaultCenter,
// resizeEnable: true, // resizeEnable: true,
disableSocket: true, disableSocket: true,
...@@ -1166,7 +1166,7 @@ $(function () { ...@@ -1166,7 +1166,7 @@ $(function () {
showLabel: true, showLabel: true,
// labelzIndex: 110, // labelzIndex: 110,
pitch: 8, pitch: 8,
zoom: 11.5, zoom: 12.5,
// mapStyle: 'amap://styles/darkblue', // mapStyle: 'amap://styles/darkblue',
mapStyle: "amap://styles/3b679a15f448a4740ba2ff7524e1a4ae", mapStyle: "amap://styles/3b679a15f448a4740ba2ff7524e1a4ae",
}); });
......
...@@ -1334,28 +1334,28 @@ function queryGisTrails(memId, startTime, endTime) { ...@@ -1334,28 +1334,28 @@ function queryGisTrails(memId, startTime, endTime) {
} }
// 语音呼叫 // 语音呼叫
function makeCall(callee) { // function makeCall(callee) {
var opts = { // var opts = {
url: apis.scooper.makeCall, // url: apis.scooper.makeCall,
type: 'post', // type: 'post',
data: { // data: {
token: token, // token: token,
caller: '8001', // caller: '8001',
callee: callee, // callee: callee,
businessId: '998', // businessId: '998',
isRecord: 1, // isRecord: 1,
}, // },
contentType: 'application/x-www-form-urlencoded', // contentType: 'application/x-www-form-urlencoded',
success: function (res) { // success: function (res) {
if (res.code == 0) { // if (res.code == 0) {
console.log(res); // console.log(res);
} else { // } else {
alert('呼叫失败:' + data.message); // alert('呼叫失败:' + data.message);
} // }
}, // },
}; // };
jQueryAjax(opts); // jQueryAjax(opts);
} // }
// 视频呼叫 // 视频呼叫
function makeVideoCall(callee, callback) { function makeVideoCall(callee, callback) {
...@@ -1466,7 +1466,7 @@ function getDutyInfo() { ...@@ -1466,7 +1466,7 @@ function getDutyInfo() {
for(var a =0;a<duteManInfo.length;a++){ for(var a =0;a<duteManInfo.length;a++){
if(a==2){ if(a==2){
var phone = "'"+duteManInfo[a]+"'"; var phone = "'"+duteManInfo[a]+"'";
html+= '<dd><button class="layui-btn layui-btn-xs" onclick="makeCall('+phone+')">'+duteManInfo[a]+'</button></dd>'; html+= '<dd>'+duteManInfo[a]+'</dd>';
}else{ }else{
html+= "<dd>"+duteManInfo[a]+"</dd>"; html+= "<dd>"+duteManInfo[a]+"</dd>";
} }
......
...@@ -782,7 +782,7 @@ table.layui-table th { ...@@ -782,7 +782,7 @@ table.layui-table th {
line-height: 70px; line-height: 70px;
display: inline; display: inline;
float: left; float: left;
margin-left: 10px; margin-left: 5px;
} }
.escbox-bottom .escbox-top { .escbox-bottom .escbox-top {
height: auto; height: auto;
......
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