大数据页面
This commit is contained in:
parent
5deadc329f
commit
ba85e37057
@ -23,7 +23,7 @@ public class WeatherUtil {
|
|||||||
return weather.get(id + "_" + date);
|
return weather.get(id + "_" + date);
|
||||||
}
|
}
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("key", "Sk1Gt66B1Z-ZsEJP5");
|
params.put("key", "SVDDjcHSNQMU_3CRt");
|
||||||
params.put("location", id);
|
params.put("location", id);
|
||||||
params.put("language", "zh-Hans");
|
params.put("language", "zh-Hans");
|
||||||
params.put("unit", "c");
|
params.put("unit", "c");
|
||||||
@ -49,7 +49,7 @@ public class WeatherUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
WeatherUtil.getWeather("WRR2Q2Z7CXWM");
|
WeatherUtil.getWeather("cangzhou");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -952,7 +952,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
||||||
var inspectionUrl = "http://106.12.218.237:8001/inspection/"
|
var inspectionUrl = "http://106.12.218.237:8001/inspection/"
|
||||||
/* var inspectionUrl = "http://192.168.0.120/inspection/"*/
|
//var inspectionUrl = "http://192.168.0.120/inspection/"
|
||||||
var globalData = {
|
var globalData = {
|
||||||
W0001_0:{
|
W0001_0:{
|
||||||
loopInterval:null, linkParams:{},
|
loopInterval:null, linkParams:{},
|
||||||
|
@ -713,7 +713,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
||||||
var pollutantUrl = 'http://106.12.218.237:8001/pollutant/';
|
var pollutantUrl = 'http://106.12.218.237:8001/pollutant/';
|
||||||
/* var pollutantUrl = 'http://192.168.0.120/pollutant/';*/
|
//var pollutantUrl = 'http://192.168.0.120/pollutant/';
|
||||||
var globalData = {
|
var globalData = {
|
||||||
W0001_0:{
|
W0001_0:{
|
||||||
loopInterval:null, linkParams:{},
|
loopInterval:null, linkParams:{},
|
||||||
|
@ -779,7 +779,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
var systemUrl = 'http://117.161.31.148:8098/dataview';
|
||||||
var inspectionPath = "http://106.12.218.237:8001/inspection/"
|
var inspectionPath = "http://106.12.218.237:8001/inspection/"
|
||||||
/*var inspectionPath = "http://192.168.0.120/inspection/"*/
|
//var inspectionPath = "http://192.168.0.120/inspection/"
|
||||||
var globalData = {
|
var globalData = {
|
||||||
C0001_0:{
|
C0001_0:{
|
||||||
loopInterval:null, linkParams:{},
|
loopInterval:null, linkParams:{},
|
||||||
|
@ -50,6 +50,8 @@
|
|||||||
background:url('http://106.12.218.237:8001/servicecity/assets/images/city/icon-department.png') no-repeat !important;
|
background:url('http://106.12.218.237:8001/servicecity/assets/images/city/icon-department.png') no-repeat !important;
|
||||||
background-size: 16px !important;
|
background-size: 16px !important;
|
||||||
}
|
}
|
||||||
|
.shadows{background-color: transparent !important;box-shadow: 0 0 0 rgba(0,0,0,0) !important;}
|
||||||
|
.anchorBL{display:none} /** 去除百度地图Logo */
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -185,17 +187,12 @@
|
|||||||
self.map.setCenterAndZoom({
|
self.map.setCenterAndZoom({
|
||||||
lng: data.mapLng,
|
lng: data.mapLng,
|
||||||
lat: data.mapLat
|
lat: data.mapLat
|
||||||
}, 13);
|
}, 11);
|
||||||
var mapTypeControl = new BMap.MapTypeControl({
|
var mapTypeControl = new BMap.MapTypeControl({
|
||||||
mapTypes: [BMAP_NORMAL_MAP, BMAP_SATELLITE_MAP, BMAP_HYBRID_MAP],
|
mapTypes: [BMAP_NORMAL_MAP, BMAP_SATELLITE_MAP, BMAP_HYBRID_MAP],
|
||||||
});
|
});
|
||||||
self.map.getMap().addControl(mapTypeControl);
|
self.map.getMap().addControl(mapTypeControl);
|
||||||
var areaBounds = new BMap.Bounds(new BMap.Point(109.591583, 40.458812),new BMap.Point(110.505699, 40.826688));
|
//var areaBounds = new BMap.Bounds(new BMap.Point(109.591583, 40.458812),new BMap.Point(110.505699, 40.826688));
|
||||||
try {
|
|
||||||
BMapLib.AreaRestriction.setBounds(self.map.getMap(), areaBounds);
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e);
|
|
||||||
}
|
|
||||||
// 必须
|
// 必须
|
||||||
self.map.setDefaultConfig();
|
self.map.setDefaultConfig();
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
@ -372,7 +369,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoadSuccess: function() {
|
onLoadSuccess: function() {
|
||||||
var node = $('#areaTree').tree('find', 'areaLevel3');
|
var node = $('#areaTree').tree('find', 'areaLevel1');
|
||||||
$('#areaTree').tree('select', node.target);
|
$('#areaTree').tree('select', node.target);
|
||||||
$("#areaTree").tree("collapseAll");
|
$("#areaTree").tree("collapseAll");
|
||||||
}
|
}
|
||||||
@ -617,7 +614,7 @@
|
|||||||
$('.menu-content').removeClass('content-active');
|
$('.menu-content').removeClass('content-active');
|
||||||
$('#'+ this.id +'Content').addClass('content-active');
|
$('#'+ this.id +'Content').addClass('content-active');
|
||||||
if(this.id == 'menuBtn1') {
|
if(this.id == 'menuBtn1') {
|
||||||
var node = $('#areaTree').tree('find', 'areaLevel3');
|
var node = $('#areaTree').tree('find', 'areaLevel1');
|
||||||
$('#areaTree').tree('select', node.target);
|
$('#areaTree').tree('select', node.target);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<div class="layui-card-body">
|
<div class="layui-card-body">
|
||||||
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
|
<div class="test-table-reload-btn" style="margin-bottom: 10px;">
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="keywords" class="layui-input search-item search-item-width-100" placeholder="输入关键字">
|
<input type="text" id="keywords" class="layui-input search-item search-item-width-200" placeholder="输入污染因子、采集器名称">
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-inline">
|
<div class="layui-inline">
|
||||||
<input type="text" id="startTime" class="layui-input search-item search-item-width-100" placeholder="开始时间" readonly>
|
<input type="text" id="startTime" class="layui-input search-item search-item-width-100" placeholder="开始时间" readonly>
|
||||||
@ -77,16 +77,25 @@
|
|||||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||||
return '-';
|
return '-';
|
||||||
}
|
}
|
||||||
return rowData;
|
return '<span style="color: green">'+rowData+'</span>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'alarmValue', width: 100, title: '报警值', align:'center', fixed: 'left',
|
{field: 'alarmValue', width: 100, title: '默认报警值', align:'center', fixed: 'left',
|
||||||
templet: function(row) {
|
templet: function(row) {
|
||||||
var rowData = row[this.field];
|
var rowData = row[this.field];
|
||||||
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||||
return '-';
|
return '-';
|
||||||
}
|
}
|
||||||
return rowData;
|
return '<span style="color: red">'+rowData+'</span>';
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{field: 'enterprisePollBeyond', width: 100, title: '企业报警值', align:'center', fixed: 'left',
|
||||||
|
templet: function(row) {
|
||||||
|
var rowData = row[this.field];
|
||||||
|
if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') {
|
||||||
|
return '-';
|
||||||
|
}
|
||||||
|
return '<span style="color: red">'+rowData+'</span>';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'pollId', width: 180, title: '污染因子编码', align:'center',
|
{field: 'pollId', width: 180, title: '污染因子编码', align:'center',
|
||||||
|
Loading…
Reference in New Issue
Block a user