|
@@ -425,7 +425,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
425
|
425
|
$scope.incident_allData = res.data[0].sum
|
426
|
426
|
})
|
427
|
427
|
}
|
428
|
|
- getIncident_allData({});
|
|
428
|
+ // getIncident_allData({});
|
429
|
429
|
// 结束
|
430
|
430
|
// 获取及时响应数据
|
431
|
431
|
// 开始
|
|
@@ -437,7 +437,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
437
|
437
|
$scope.incident_responseData = res.data[0].sum
|
438
|
438
|
})
|
439
|
439
|
}
|
440
|
|
- getIncident_responseData({})
|
|
440
|
+ // getIncident_responseData({})
|
441
|
441
|
// 结束
|
442
|
442
|
// 获取解决中数据
|
443
|
443
|
// 开始
|
|
@@ -449,7 +449,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
449
|
449
|
$scope.incident_solveNowData = res.data[0].sum
|
450
|
450
|
})
|
451
|
451
|
}
|
452
|
|
- getIncident_solveNowData({})
|
|
452
|
+ // getIncident_solveNowData({})
|
453
|
453
|
// // 结束
|
454
|
454
|
// // 获取已解决数据
|
455
|
455
|
// // 开始
|
|
@@ -460,7 +460,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
460
|
460
|
$scope.incident_solvedData = res.data[0].sum
|
461
|
461
|
})
|
462
|
462
|
}
|
463
|
|
- getIncident_solvedData({})
|
|
463
|
+ // getIncident_solvedData({})
|
464
|
464
|
// 结束
|
465
|
465
|
|
466
|
466
|
// // 获取近一年建单总数数据
|
|
@@ -472,10 +472,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
472
|
472
|
$scope.incident_total = res.data[0].sum
|
473
|
473
|
})
|
474
|
474
|
}
|
475
|
|
- getYear_incident_total({
|
476
|
|
- "start": lastYear + " 00:00:00",
|
477
|
|
- "end": yesterDay + " 23:59:59"
|
478
|
|
- })
|
|
475
|
+ // getYear_incident_total({
|
|
476
|
+ // "start": lastYear + " 00:00:00",
|
|
477
|
+ // "end": yesterDay + " 23:59:59"
|
|
478
|
+ // })
|
479
|
479
|
// 结束
|
480
|
480
|
|
481
|
481
|
|
|
@@ -488,10 +488,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
488
|
488
|
$scope.incident_total = res.data[0].sum
|
489
|
489
|
})
|
490
|
490
|
}
|
491
|
|
- getYear_incident_total_month({
|
492
|
|
- "start": lastMonth + " 00:00:00",
|
493
|
|
- "end": yesterDay + " 23:59:59"
|
494
|
|
- })
|
|
491
|
+ // getYear_incident_total_month({
|
|
492
|
+ // "start": lastMonth + " 00:00:00",
|
|
493
|
+ // "end": yesterDay + " 23:59:59"
|
|
494
|
+ // })
|
495
|
495
|
// 结束
|
496
|
496
|
|
497
|
497
|
|
|
@@ -504,10 +504,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
504
|
504
|
$scope.incident_solve_time = res.data[0].hour || 0
|
505
|
505
|
})
|
506
|
506
|
}
|
507
|
|
- getIncident_solve_time({
|
508
|
|
- "start": lastYear + " 00:00:00",
|
509
|
|
- "end": yesterDay + " 23:59:59"
|
510
|
|
- })
|
|
507
|
+ // getIncident_solve_time({
|
|
508
|
+ // "start": lastYear + " 00:00:00",
|
|
509
|
+ // "end": yesterDay + " 23:59:59"
|
|
510
|
+ // })
|
511
|
511
|
// 结束
|
512
|
512
|
|
513
|
513
|
// // 获取近一个月事件解决总时长数据
|
|
@@ -519,10 +519,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
519
|
519
|
$scope.incident_solve_time = res.data[0].hour || 0
|
520
|
520
|
})
|
521
|
521
|
}
|
522
|
|
- getIncident_solve_time_month({
|
523
|
|
- "start": lastMonth + " 00:00:00",
|
524
|
|
- "end": yesterDay + " 23:59:59"
|
525
|
|
- })
|
|
522
|
+ // getIncident_solve_time_month({
|
|
523
|
+ // "start": lastMonth + " 00:00:00",
|
|
524
|
+ // "end": yesterDay + " 23:59:59"
|
|
525
|
+ // })
|
526
|
526
|
// 结束
|
527
|
527
|
|
528
|
528
|
// // 获取近一年已解决工单数据
|
|
@@ -534,10 +534,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
534
|
534
|
$scope.incident_solve_total = res.data[0].sum
|
535
|
535
|
})
|
536
|
536
|
}
|
537
|
|
- getIncident_solve_total({
|
538
|
|
- "start": lastYear + " 00:00:00",
|
539
|
|
- "end": yesterDay + " 23:59:59"
|
540
|
|
- })
|
|
537
|
+ // getIncident_solve_total({
|
|
538
|
+ // "start": lastYear + " 00:00:00",
|
|
539
|
+ // "end": yesterDay + " 23:59:59"
|
|
540
|
+ // })
|
541
|
541
|
// 结束
|
542
|
542
|
|
543
|
543
|
|
|
@@ -550,10 +550,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
550
|
550
|
$scope.incident_solve_total = res.data[0].sum
|
551
|
551
|
})
|
552
|
552
|
}
|
553
|
|
- getIncident_solve_total_month({
|
554
|
|
- "start": lastMonth + " 00:00:00",
|
555
|
|
- "end": yesterDay + " 23:59:59"
|
556
|
|
- })
|
|
553
|
+ // getIncident_solve_total_month({
|
|
554
|
+ // "start": lastMonth + " 00:00:00",
|
|
555
|
+ // "end": yesterDay + " 23:59:59"
|
|
556
|
+ // })
|
557
|
557
|
// 结束
|
558
|
558
|
|
559
|
559
|
|
|
@@ -566,10 +566,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
566
|
566
|
$scope.incident_degree = res.data[0].degree || 0
|
567
|
567
|
})
|
568
|
568
|
}
|
569
|
|
- getIncident_degree({
|
570
|
|
- "start": lastYear + " 00:00:00",
|
571
|
|
- "end": yesterDay + " 23:59:59"
|
572
|
|
- })
|
|
569
|
+ // getIncident_degree({
|
|
570
|
+ // "start": lastYear + " 00:00:00",
|
|
571
|
+ // "end": yesterDay + " 23:59:59"
|
|
572
|
+ // })
|
573
|
573
|
// 结束
|
574
|
574
|
|
575
|
575
|
// // 获取近一个月满意度数据
|
|
@@ -581,10 +581,10 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
581
|
581
|
$scope.incident_degree = res.data[0].degree || 0
|
582
|
582
|
})
|
583
|
583
|
}
|
584
|
|
- getIncident_degree_month({
|
585
|
|
- "start": lastMonth + " 00:00:00",
|
586
|
|
- "end": yesterDay + " 23:59:59"
|
587
|
|
- })
|
|
584
|
+ // getIncident_degree_month({
|
|
585
|
+ // "start": lastMonth + " 00:00:00",
|
|
586
|
+ // "end": yesterDay + " 23:59:59"
|
|
587
|
+ // })
|
588
|
588
|
// 结束
|
589
|
589
|
|
590
|
590
|
// 获取呼叫中心来电趋势图数据
|
|
@@ -958,32 +958,32 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
958
|
958
|
// })
|
959
|
959
|
// }
|
960
|
960
|
|
961
|
|
- function getMonthMapData(time) {
|
962
|
|
- api_hkreport.incidentreport(time, 'large_screen_map_data').then(function (res) {
|
963
|
|
- $scope.monthMapDataList = res.data;
|
964
|
|
- })
|
965
|
|
- }
|
|
961
|
+ // function getMonthMapData(time) {
|
|
962
|
+ // api_hkreport.incidentreport(time, 'large_screen_map_data').then(function (res) {
|
|
963
|
+ // $scope.monthMapDataList = res.data;
|
|
964
|
+ // })
|
|
965
|
+ // }
|
966
|
966
|
|
967
|
|
- function getYearMapData(time) {
|
968
|
|
- api_hkreport.incidentreport(time, 'large_screen_map_data').then(function (res) {
|
969
|
|
- $scope.yearMapDataList = res.data;
|
970
|
|
- })
|
971
|
|
- }
|
|
967
|
+ // function getYearMapData(time) {
|
|
968
|
+ // api_hkreport.incidentreport(time, 'large_screen_map_data').then(function (res) {
|
|
969
|
+ // $scope.yearMapDataList = res.data;
|
|
970
|
+ // })
|
|
971
|
+ // }
|
972
|
972
|
// getMapData({
|
973
|
973
|
// sum: 100,
|
974
|
974
|
// "start": yesterDay + " 00:00:00",
|
975
|
975
|
// "end": yesterDay + " 23:59:59"
|
976
|
976
|
// })
|
977
|
|
- getMonthMapData({
|
978
|
|
- sum: 10,
|
979
|
|
- "start": lastMonth + " 00:00:00",
|
980
|
|
- "end": yesterDay + " 23:59:59"
|
981
|
|
- })
|
982
|
|
- getYearMapData({
|
983
|
|
- sum: 20,
|
984
|
|
- "start": lastYear + " 00:00:00",
|
985
|
|
- "end": yesterDay + " 23:59:59"
|
986
|
|
- })
|
|
977
|
+ // getMonthMapData({
|
|
978
|
+ // sum: 10,
|
|
979
|
+ // "start": lastMonth + " 00:00:00",
|
|
980
|
+ // "end": yesterDay + " 23:59:59"
|
|
981
|
+ // })
|
|
982
|
+ // getYearMapData({
|
|
983
|
+ // sum: 20,
|
|
984
|
+ // "start": lastYear + " 00:00:00",
|
|
985
|
+ // "end": yesterDay + " 23:59:59"
|
|
986
|
+ // })
|
987
|
987
|
|
988
|
988
|
|
989
|
989
|
|
|
@@ -1064,17 +1064,8 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1064
|
1064
|
if($scope.slideBoxLeft3 == 6){
|
1065
|
1065
|
$scope.slideBoxLeft3 = 0;
|
1066
|
1066
|
}
|
1067
|
|
- console.log($scope.slideBoxLeft3, '$scope.slideBoxLeft3')
|
1068
|
|
-
|
1069
|
|
- // 聚合点信息获取
|
1070
|
|
- $scope.incident_allData = '';
|
1071
|
|
- $scope.incident_responseData = '';
|
1072
|
|
- $scope.incident_solveNowData = '';
|
1073
|
|
- $scope.incident_solvedData = '';
|
1074
|
|
- $scope.incident_total = '';
|
1075
|
|
- $scope.incident_solve_time = '';
|
1076
|
|
- $scope.incident_solve_total = '';
|
1077
|
|
- $scope.incident_degree = '';
|
|
1067
|
+ console.log($scope.slideBoxLeft3, '$scope.slideBoxLeft3', moment(new Date()).format('YYYY-MM-DD HH:mm:ss'))
|
|
1068
|
+
|
1078
|
1069
|
// 实时信息
|
1079
|
1070
|
if($scope.slideBoxLeft3 == 0 || $scope.slideBoxLeft3 == 3){
|
1080
|
1071
|
map_time_area({
|
|
@@ -1252,9 +1243,9 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1252
|
1243
|
setInterval(() => {
|
1253
|
1244
|
move1()
|
1254
|
1245
|
}, 15000); //15秒
|
1255
|
|
- $scope.timer = setTimeout(() => {
|
1256
|
|
- move2()
|
1257
|
|
- }, 15000); //15秒
|
|
1246
|
+ // $scope.timer = setTimeout(() => {
|
|
1247
|
+ // move2()
|
|
1248
|
+ // }, 15000); //15秒
|
1258
|
1249
|
|
1259
|
1250
|
// 地图聚合点信息----------------------------------------start
|
1260
|
1251
|
// // 获取近一个月建单总数数据
|
|
@@ -1274,52 +1265,76 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1274
|
1265
|
|
1275
|
1266
|
// // 开始
|
1276
|
1267
|
function map_time_area(time, slideBoxLeft3) {
|
|
1268
|
+ var branch = undefined;
|
|
1269
|
+ if(slideBoxLeft3 == 0 || slideBoxLeft3 == 1 || slideBoxLeft3 == 2){
|
|
1270
|
+ branch = 1;
|
|
1271
|
+ }else if(slideBoxLeft3 == 3 || slideBoxLeft3 == 4 || slideBoxLeft3 == 5){
|
|
1272
|
+ branch = 2;
|
|
1273
|
+ }
|
1277
|
1274
|
// 右侧数据
|
|
1275
|
+ // 清空
|
|
1276
|
+ $scope.incident_allData = '';
|
|
1277
|
+ $scope.incident_responseData = '';
|
|
1278
|
+ $scope.incident_solveNowData = '';
|
|
1279
|
+ $scope.incident_solvedData = '';
|
|
1280
|
+ $scope.incident_total = '';
|
|
1281
|
+ $scope.incident_solve_time = '';
|
|
1282
|
+ $scope.incident_solve_total = '';
|
|
1283
|
+ $scope.incident_degree = '';
|
1278
|
1284
|
// 实时信息
|
1279
|
1285
|
if(slideBoxLeft3 == 0 || slideBoxLeft3 == 3){
|
1280
|
|
- getIncident_allData({});
|
1281
|
|
- getIncident_responseData({})
|
1282
|
|
- getIncident_solveNowData({})
|
1283
|
|
- getIncident_solvedData({})
|
|
1286
|
+ getIncident_allData({branch: branch});
|
|
1287
|
+ getIncident_responseData({branch: branch})
|
|
1288
|
+ getIncident_solveNowData({branch: branch})
|
|
1289
|
+ getIncident_solvedData({branch: branch})
|
1284
|
1290
|
}
|
1285
|
1291
|
// 30天信息
|
1286
|
1292
|
if(slideBoxLeft3 == 1 || slideBoxLeft3 == 4){
|
1287
|
1293
|
getYear_incident_total_month({
|
1288
|
1294
|
"start": lastMonth + " 00:00:00",
|
1289
|
|
- "end": yesterDay + " 23:59:59"
|
|
1295
|
+ "end": yesterDay + " 23:59:59",
|
|
1296
|
+ branch: branch
|
1290
|
1297
|
})
|
1291
|
1298
|
getIncident_solve_time_month({
|
1292
|
1299
|
"start": lastMonth + " 00:00:00",
|
1293
|
|
- "end": yesterDay + " 23:59:59"
|
|
1300
|
+ "end": yesterDay + " 23:59:59",
|
|
1301
|
+ branch: branch
|
1294
|
1302
|
})
|
1295
|
1303
|
getIncident_solve_total_month({
|
1296
|
1304
|
"start": lastMonth + " 00:00:00",
|
1297
|
|
- "end": yesterDay + " 23:59:59"
|
|
1305
|
+ "end": yesterDay + " 23:59:59",
|
|
1306
|
+ branch: branch
|
1298
|
1307
|
})
|
1299
|
1308
|
getIncident_degree_month({
|
1300
|
1309
|
"start": lastMonth + " 00:00:00",
|
1301
|
|
- "end": yesterDay + " 23:59:59"
|
|
1310
|
+ "end": yesterDay + " 23:59:59",
|
|
1311
|
+ branch: branch
|
1302
|
1312
|
})
|
1303
|
1313
|
}
|
1304
|
1314
|
// 一年信息
|
1305
|
1315
|
if(slideBoxLeft3 == 2 || slideBoxLeft3 == 5){
|
1306
|
1316
|
getYear_incident_total({
|
1307
|
1317
|
"start": lastYear + " 00:00:00",
|
1308
|
|
- "end": yesterDay + " 23:59:59"
|
|
1318
|
+ "end": yesterDay + " 23:59:59",
|
|
1319
|
+ branch: branch
|
1309
|
1320
|
})
|
1310
|
1321
|
getIncident_solve_time({
|
1311
|
1322
|
"start": lastYear + " 00:00:00",
|
1312
|
|
- "end": yesterDay + " 23:59:59"
|
|
1323
|
+ "end": yesterDay + " 23:59:59",
|
|
1324
|
+ branch: branch
|
1313
|
1325
|
})
|
1314
|
1326
|
getIncident_solve_total({
|
1315
|
1327
|
"start": lastYear + " 00:00:00",
|
1316
|
|
- "end": yesterDay + " 23:59:59"
|
|
1328
|
+ "end": yesterDay + " 23:59:59",
|
|
1329
|
+ branch: branch
|
1317
|
1330
|
})
|
1318
|
1331
|
getIncident_degree({
|
1319
|
1332
|
"start": lastYear + " 00:00:00",
|
1320
|
|
- "end": yesterDay + " 23:59:59"
|
|
1333
|
+ "end": yesterDay + " 23:59:59",
|
|
1334
|
+ branch: branch
|
1321
|
1335
|
})
|
1322
|
1336
|
}
|
|
1337
|
+ time.branch = branch;
|
1323
|
1338
|
api_newreport.fetchDataList('oneMapData', time).then(function (res) {
|
1324
|
1339
|
console.log(res)
|
1325
|
1340
|
if(res.status == 200){
|
|
@@ -1335,7 +1350,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1335
|
1350
|
|
1336
|
1351
|
// 地址切换
|
1337
|
1352
|
if(slideBoxLeft3 === 0 || slideBoxLeft3 === 1 || slideBoxLeft3 === 2){
|
1338
|
|
- $scope.cloudMap.goTo(114.41276, 30.51515, 1, 16);//主校区
|
|
1353
|
+ $scope.cloudMap && $scope.cloudMap.goTo(114.41276, 30.51515, 1, 16);//主校区
|
1339
|
1354
|
clearTimeout($scope.timer);
|
1340
|
1355
|
setTimeout(() => {
|
1341
|
1356
|
for (let name in res.data) {
|
|
@@ -1345,7 +1360,7 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1345
|
1360
|
}, 15000); //15秒
|
1346
|
1361
|
}
|
1347
|
1362
|
if(slideBoxLeft3 === 3 || slideBoxLeft3 === 4 || slideBoxLeft3 === 5){
|
1348
|
|
- $scope.cloudMap.goTo(114.254, 30.5855, 3, 16);//同济校区
|
|
1363
|
+ $scope.cloudMap && $scope.cloudMap.goTo(114.254, 30.5855, 3, 16);//同济校区
|
1349
|
1364
|
clearTimeout($scope.timer);
|
1350
|
1365
|
setTimeout(() => {
|
1351
|
1366
|
for (let name in res.data) {
|
|
@@ -1503,18 +1518,16 @@ app.controller('charts3Ctrl', ["$scope", "$rootScope", "$state", "$timeout", "$i
|
1503
|
1518
|
// );
|
1504
|
1519
|
});
|
1505
|
1520
|
|
1506
|
|
-
|
1507
|
|
-
|
1508
|
1521
|
function mapReady() {
|
1509
|
1522
|
$scope.cloudMap.changeLayerVisible('2.5D底图', false);
|
1510
|
1523
|
map_time_area({
|
1511
|
1524
|
"startTime": moment(new Date().getTime()).format("YYYY-MM-DD") + ' 00:00:00',
|
1512
|
1525
|
"endTime": moment(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
|
1513
|
|
- })
|
1514
|
|
- getIncident_allData({});
|
1515
|
|
- getIncident_responseData({})
|
1516
|
|
- getIncident_solveNowData({})
|
1517
|
|
- getIncident_solvedData({})
|
|
1526
|
+ }, $scope.slideBoxLeft3)
|
|
1527
|
+ // getIncident_allData({});
|
|
1528
|
+ // getIncident_responseData({})
|
|
1529
|
+ // getIncident_solveNowData({})
|
|
1530
|
+ // getIncident_solvedData({})
|
1518
|
1531
|
//cloudMap.changeLayerVisible('建筑物中心点', false);
|
1519
|
1532
|
//地图加载成功
|
1520
|
1533
|
// cloudMap.initLayerList("top-right"); //显示图层管理模块,位置top-right,top-left,bottom-right,bottom-right
|