|
@@ -1630,3 +1630,108 @@ var draw_all = function() {
|
|
|
d2oc += obj.d2oc;
|
|
|
d2ac += obj.d2ac;
|
|
|
d6 += obj.d6;
|
|
|
+ d6o += obj.d6o;
|
|
|
+ d6a += obj.d6a;
|
|
|
+ d6oc += obj.d6oc;
|
|
|
+ d6ac += obj.d6ac;
|
|
|
+ d7 += obj.d7;
|
|
|
+ d7o += obj.d7o;
|
|
|
+ d7a += obj.d7a;
|
|
|
+ d7oc += obj.d7oc;
|
|
|
+ d7ac += obj.d7ac;
|
|
|
+ if ((obj.lat > 30) && (obj.lat < 33) && (obj.lng > 120) && (obj.lng < 125)) {
|
|
|
+ totalLng += obj.lng;
|
|
|
+ totalLat += obj.lat;
|
|
|
+ latngCount++;
|
|
|
+ var marker = new AMap.Marker({
|
|
|
+ icon: new AMap.Icon({
|
|
|
+ size: new AMap.Size(iconWidth, iconHeight),
|
|
|
+ image: iconurl,
|
|
|
+ imageSize: new AMap.Size(iconWidth, iconHeight)
|
|
|
+ }),
|
|
|
+ position: new AMap.LngLat(obj.lng, obj.lat),
|
|
|
+ extData: {
|
|
|
+ icontype: 'company',
|
|
|
+ company_code: obj.company_code
|
|
|
+ },
|
|
|
+ offset: new AMap.Pixel(-(iconWidth / 2), -(iconHeight / 2)),
|
|
|
+ draggable: false,
|
|
|
+ raiseOnDrag: false,
|
|
|
+ autoRotation: false,
|
|
|
+ label: {
|
|
|
+ offset: new AMap.Pixel(-iconWidth - 5, -(iconHeight / 2) - 10),
|
|
|
+ content: "<div id='label_" + obj.company_code + "' class='info " + (LabelShow ? 'shown' : 'hiden') + "'>" + obj.company_name + "</div>",
|
|
|
+ direction: 'right'
|
|
|
+ }
|
|
|
+ });
|
|
|
+ AMap.event.addListener(marker, 'click', showBuilding, this);
|
|
|
+ AMap.event.addListener(marker, 'mouseover', showInfo, this);
|
|
|
+ if (!MapShow) {
|
|
|
+ marker.setMap(map);
|
|
|
+ markers.push(marker);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var sts = [{
|
|
|
+ url: baseUrl + 'res/img/icons/icon_juhe_grade1.png',
|
|
|
+ size: new AMap.Size(40, 40),
|
|
|
+ offset: new AMap.Pixel(-16, -16)
|
|
|
+ }, {
|
|
|
+ url: baseUrl + 'res/img/icons/icon_juhe_grade2.png',
|
|
|
+ size: new AMap.Size(40, 40),
|
|
|
+ offset: new AMap.Pixel(-16, -16)
|
|
|
+ }, {
|
|
|
+ url: baseUrl + 'res/img/icons/icon_juhe_grade3.png',
|
|
|
+ size: new AMap.Size(40, 40),
|
|
|
+ offset: new AMap.Pixel(-18, -18)
|
|
|
+ }];
|
|
|
+ if (!MapShow) {
|
|
|
+ MapShow = true;
|
|
|
+ // map.plugin(["AMap.MarkerClusterer"],function(){
|
|
|
+ // cluster = new AMap.MarkerClusterer(map, markers, {
|
|
|
+ // styles: sts,
|
|
|
+ // gridSize: 80,
|
|
|
+ // maxZoom:14
|
|
|
+ //// minClusterSize:3
|
|
|
+ //// renderClusterMarker:_renderClusterMarker
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ }
|
|
|
+ if ((latngCount > 0) && (firstDraw)) {
|
|
|
+ map.setCenter(new AMap.LngLat(totalLng / latngCount, totalLat / latngCount, true));
|
|
|
+ map.setFitView();
|
|
|
+ firstDraw = false;
|
|
|
+ }
|
|
|
+ $("#data_number_11").html(d1a);
|
|
|
+ $("#data_number_12").html(d1a - d1ac);
|
|
|
+ $("#data_number_21").html(d7a);
|
|
|
+ $("#data_number_22").html(d7a - d7ac);
|
|
|
+ $("#data_number_31").html(d2a);
|
|
|
+ $("#data_number_32").html(d2a - d2ac);
|
|
|
+ $("#data_number_31").html(d2a);
|
|
|
+ $("#data_number_32").html(d2a - d2ac);
|
|
|
+ draw_pie('data_pie_1', d1a, d1ac);
|
|
|
+ draw_pie('data_pie_2', d7a, d7ac);
|
|
|
+ draw_pie('data_pie_3', d2a, d2ac);
|
|
|
+ if (V_LOGINNAME == 'ypxy') {
|
|
|
+ var query = new Object();
|
|
|
+ query.V_LOGINNAME = V_LOGINNAME;
|
|
|
+ query.V_PASSWORD = V_PASSWORD;
|
|
|
+ query.dwtype = '2';
|
|
|
+ query.COMMSTATUS = 'NO';
|
|
|
+ if ((company_code != null) && (company_code != 'null') && (company_code.length > 0))
|
|
|
+ query.company_code = company_code;
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ url: baseUrl + "iot/alarm/view/getConfirmStatusByDays",
|
|
|
+ data: {
|
|
|
+ queryJson: Ext.JSON.encode(query)
|
|
|
+ },
|
|
|
+ success: function(result) {
|
|
|
+ var json = eval('(' + result + ')');
|
|
|
+ if (json.action == 'getConfirmStatusByDays') {
|
|
|
+ if (json.check == 'true') {
|
|
|
+ ConfirmStore = json.RESULT;
|
|
|
+ if (json.company_name != null)
|
|
|
+ companyName = json.company_name;
|
|
|
+ else
|