|
|
@@ -38,7 +38,7 @@ $('.close_icon').click(function () {
|
|
38
|
38
|
}
|
|
39
|
39
|
})
|
|
40
|
40
|
//关闭按钮退回工单列表
|
|
41
|
|
-$('.close_iconT').click(function () {
|
|
|
41
|
+$('.backProcedure').click(function () {
|
|
42
|
42
|
$('.workDetails').show();
|
|
43
|
43
|
$('.workDetails').siblings().hide()
|
|
44
|
44
|
})
|
|
|
@@ -47,11 +47,6 @@ $('.back_icon').click(function () {
|
|
47
|
47
|
if ($('.bulletFrameT').css('display') == 'none') {
|
|
48
|
48
|
$('.body').css('opacity', '1')
|
|
49
|
49
|
}
|
|
50
|
|
- if(keyidArr.length!=0){
|
|
51
|
|
- console.log('关键字')
|
|
52
|
|
- keyWordTable(keyidArr[0])
|
|
53
|
|
- $('.head_title').text('关键字数据分析')
|
|
54
|
|
- }
|
|
55
|
50
|
})
|
|
56
|
51
|
$('.closeMap_icon').click(function(){
|
|
57
|
52
|
$('.bulletFrame').hide();
|
|
|
@@ -492,7 +487,7 @@ function gettraffic() {
|
|
492
|
487
|
$('.daySeat').css('display', 'inline-block')
|
|
493
|
488
|
$('#traffic').css('display', 'block')
|
|
494
|
489
|
$('#timeTraffic').css('display', 'none')
|
|
495
|
|
- $('.call_situation h2').text('分时段话务量')
|
|
|
490
|
+ $('.call_situation h2').text('话务数据统计')
|
|
496
|
491
|
$('.act').html(`<label data-pos="1">
|
|
497
|
492
|
今日<span class="month active"></span>
|
|
498
|
493
|
</label><br>
|
|
|
@@ -990,7 +985,7 @@ function hotlineChart(datas) {
|
|
990
|
985
|
str = 96119;
|
|
991
|
986
|
return str + ':' + params.value
|
|
992
|
987
|
} else if (params.name == ' 人口和计生咨询举报电话') {
|
|
993
|
|
- str = 12349;
|
|
|
988
|
+ str = 12356;
|
|
994
|
989
|
return str + ':' + params.value
|
|
995
|
990
|
} else if (params.name == ' 全国统一自然资源违法举报电话') {
|
|
996
|
991
|
str = 12336;
|
|
|
@@ -1395,7 +1390,7 @@ function workOrderChart(workOrderData, workOrderName) {
|
|
1395
|
1390
|
for (var i = 0; i < workOrderData.length; i++) {
|
|
1396
|
1391
|
total += workOrderData[i].value;
|
|
1397
|
1392
|
}
|
|
1398
|
|
- percent = ((params.value / total) * 100).toFixed(0);
|
|
|
1393
|
+ percent = ((params.value / total) * 100).toFixed(2);
|
|
1399
|
1394
|
if (params.name !== '') {
|
|
1400
|
1395
|
return params.name + ':' + percent + '%';
|
|
1401
|
1396
|
} else {
|
|
|
@@ -1483,11 +1478,35 @@ function getNowFormatDate() {
|
|
1483
|
1478
|
var HMS = Hour + ':' + Minute + ':' + Second;
|
|
1484
|
1479
|
var temp_time = year + '-' + month + '-' + strDate + ' ' + HMS;
|
|
1485
|
1480
|
$('.dataTime').text(temp_time);
|
|
1486
|
|
- $('.statisticsTime').text(temp_time);
|
|
1487
|
|
- $('.nowTime li:nth-child(2)').text(temp_time);
|
|
|
1481
|
+ // $('.statisticsTime').text(temp_time);
|
|
|
1482
|
+ // $('.nowTime li:nth-child(2)').text(temp_time);
|
|
1488
|
1483
|
$('.secondLevel_map .time').text(year + '-' + month + '-' + strDate)
|
|
1489
|
1484
|
setInterval(getNowFormatDate, 1000);
|
|
1490
|
1485
|
}
|
|
|
1486
|
+function getTimes(dom){
|
|
|
1487
|
+ function p(s) {
|
|
|
1488
|
+ return s < 10 ? '0' + s : s;
|
|
|
1489
|
+ }
|
|
|
1490
|
+ var currentYear = new Date().getFullYear();
|
|
|
1491
|
+ var currentMonth = new Date().getMonth() + 1;
|
|
|
1492
|
+ var currentDate = new Date().getDate();
|
|
|
1493
|
+ var prevCurrentYear = 0;
|
|
|
1494
|
+ var prevCurrentMonth = 0;
|
|
|
1495
|
+ if(currentMonth == 1) {
|
|
|
1496
|
+ prevCurrentYear = currentYear - 1;
|
|
|
1497
|
+ prevCurrentMonth = 12;
|
|
|
1498
|
+ } else {
|
|
|
1499
|
+ prevCurrentYear = currentYear;
|
|
|
1500
|
+ prevCurrentMonth = currentMonth - 1;
|
|
|
1501
|
+ }
|
|
|
1502
|
+ let hh = new Date().getHours()
|
|
|
1503
|
+ let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
|
|
|
1504
|
+ let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
|
|
|
1505
|
+ var data=currentYear + "-" + p(currentMonth) + "-" + 01;
|
|
|
1506
|
+ var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate);
|
|
|
1507
|
+ // var a = getPreDatetime(3600 * 1000 * 24 * 30);
|
|
|
1508
|
+ $(dom).text(data + " ~ " + current)
|
|
|
1509
|
+}
|
|
1491
|
1510
|
function getNowTime(dom){
|
|
1492
|
1511
|
function p(s) {
|
|
1493
|
1512
|
return s < 10 ? '0' + s : s;
|
|
|
@@ -1507,9 +1526,10 @@ function getNowTime(dom){
|
|
1507
|
1526
|
let hh = new Date().getHours()
|
|
1508
|
1527
|
let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes():new Date().getMinutes()
|
|
1509
|
1528
|
let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds():new Date().getSeconds()
|
|
|
1529
|
+ var data=currentYear + "-" + p(currentMonth) + "-" + 01+' ' + 00 + ':' + 00 + ':' + 00;
|
|
1510
|
1530
|
var current = currentYear + "-" + p(currentMonth) + "-" + p(currentDate)+' ' + hh + ':' + mf + ':' + ss;
|
|
1511
|
|
- var a = getPreDatetime(3600 * 1000 * 24 * 30);
|
|
1512
|
|
- $(dom).val(getPreDatetime(3600 * 1000 * 24 * 30) + " ~ " + current)
|
|
|
1531
|
+ // var a = getPreDatetime(3600 * 1000 * 24 * 30);
|
|
|
1532
|
+ $(dom).val(data + " ~ " + current)
|
|
1513
|
1533
|
// //昨天的时间
|
|
1514
|
1534
|
// var date1 = new Date(new Date(new Date().toLocaleDateString()).getTime());
|
|
1515
|
1535
|
// var startTime = date1.getFullYear() +
|
|
|
@@ -1527,18 +1547,18 @@ function getNowTime(dom){
|
|
1527
|
1547
|
// var s2 = day2.getFullYear() + "-" + (day2.getMonth() + 1) + "-" + day2.getDate()+' ' + hh + ':' + mf + ':' + ss;
|
|
1528
|
1548
|
// $(dom).val(startTime + " ~ " + s2);
|
|
1529
|
1549
|
}
|
|
1530
|
|
-function getPreDatetime(pdate) {
|
|
1531
|
|
- var start = new Date()
|
|
1532
|
|
- start.setTime(start.getTime() - pdate)
|
|
1533
|
|
- start.getYear(); // 获取当前年份(2位)
|
|
1534
|
|
- var YY = start.getFullYear() // 获取完整的年份(4位,1970-????)
|
|
1535
|
|
- var MM = start.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
|
|
1536
|
|
- MM = MM > 9 ? MM : ('0' + MM);
|
|
1537
|
|
- var DD = start.getDate() // 获取当前日(1-31)
|
|
1538
|
|
- DD = DD > 9 ? DD : ('0' + DD)
|
|
1539
|
|
- var lastmonth = YY + '-' + MM + '-' + DD+' ' + 00 + ':' + 00 + ':' + 00;
|
|
1540
|
|
- return lastmonth;
|
|
1541
|
|
-}
|
|
|
1550
|
+// function getPreDatetime(pdate) {
|
|
|
1551
|
+// var start = new Date()
|
|
|
1552
|
+// start.setTime(start.getTime() - pdate)
|
|
|
1553
|
+// start.getYear(); // 获取当前年份(2位)
|
|
|
1554
|
+// var YY = start.getFullYear() // 获取完整的年份(4位,1970-????)
|
|
|
1555
|
+// var MM = start.getMonth() + 1 // 获取当前月份(0-11,0代表1月)
|
|
|
1556
|
+// MM = MM > 9 ? MM : ('0' + MM);
|
|
|
1557
|
+// var DD = start.getDate() // 获取当前日(1-31)
|
|
|
1558
|
+// DD = DD > 9 ? DD : ('0' + DD)
|
|
|
1559
|
+// var lastmonth = YY + '-' + MM + '-' + DD+' ' + 00 + ':' + 00 + ':' + 00;
|
|
|
1560
|
+// return lastmonth;
|
|
|
1561
|
+// }
|
|
1542
|
1562
|
//二级页面点击
|
|
1543
|
1563
|
//二级办理时长统计
|
|
1544
|
1564
|
$('.test_rank').click(function () {
|
|
|
@@ -1580,47 +1600,10 @@ $('.accept_statistics').click(function (e) {
|
|
1580
|
1600
|
},
|
|
1581
|
1601
|
callBack: function (res) {
|
|
1582
|
1602
|
res.data.forEach(function (v, n) {
|
|
1583
|
|
- if (v.name == ' 国家移民管理局咨询服务热线') {
|
|
1584
|
|
- secData.push({
|
|
1585
|
|
- level: 12367,
|
|
1586
|
|
- landArea: v.count
|
|
1587
|
|
- })
|
|
1588
|
|
- } else if (v.name == ' 为老服务热线') {
|
|
1589
|
|
- secData.push({
|
|
1590
|
|
- level: 12349,
|
|
1591
|
|
- landArea: v.count
|
|
1592
|
|
- })
|
|
1593
|
|
- } else if (v.name == ' 残疾人维权服务电话') {
|
|
1594
|
|
- secData.push({
|
|
1595
|
|
- level: 12385,
|
|
1596
|
|
- landArea: v.count
|
|
1597
|
|
- })
|
|
1598
|
|
- } else if (v.name == ' 火灾隐患举报投诉电话') {
|
|
1599
|
|
- secData.push({
|
|
1600
|
|
- level: 96119,
|
|
1601
|
|
- landArea: v.count
|
|
1602
|
|
- })
|
|
1603
|
|
- } else if (v.name == ' 人口和计生咨询举报电话') {
|
|
1604
|
|
- secData.push({
|
|
1605
|
|
- level: 12349,
|
|
1606
|
|
- landArea: v.count
|
|
1607
|
|
- })
|
|
1608
|
|
- } else if (v.name == ' 全国统一自然资源违法举报电话') {
|
|
1609
|
|
- secData.push({
|
|
1610
|
|
- level: 12336,
|
|
1611
|
|
- landArea: v.count
|
|
1612
|
|
- })
|
|
1613
|
|
- } else if (v.name == ' 商务领域咨询举报电话') {
|
|
1614
|
|
- secData.push({
|
|
1615
|
|
- level: 12312,
|
|
1616
|
|
- landArea: v.count
|
|
1617
|
|
- })
|
|
1618
|
|
- } else if (v.name == ' 文化市场举报电话') {
|
|
1619
|
|
- secData.push({
|
|
1620
|
|
- level: 12318,
|
|
1621
|
|
- landArea: v.count
|
|
1622
|
|
- })
|
|
1623
|
|
- }
|
|
|
1603
|
+ secData.push({
|
|
|
1604
|
+ level: v.value,
|
|
|
1605
|
+ landArea: v.count
|
|
|
1606
|
+ })
|
|
1624
|
1607
|
})
|
|
1625
|
1608
|
getHonelineChart2(secData, 'hotline2')
|
|
1626
|
1609
|
}
|
|
|
@@ -1761,11 +1744,16 @@ $('#traffic').click(function () {
|
|
1761
|
1744
|
$('.body').css('opacity', '0.4')
|
|
1762
|
1745
|
}
|
|
1763
|
1746
|
if (trafficState == 0) {
|
|
1764
|
|
- let phoneName = [];
|
|
1765
|
|
- let ldcount = [];
|
|
1766
|
|
- let jtcount = [];
|
|
1767
|
|
- let wjcount = [];
|
|
1768
|
|
- let fqcount = [];
|
|
|
1747
|
+ let qtphoneName = [];
|
|
|
1748
|
+ let qtldcount = [];
|
|
|
1749
|
+ let qtjtcount = [];
|
|
|
1750
|
+ let qtwjcount = [];
|
|
|
1751
|
+ let qtfqcount = [];
|
|
|
1752
|
+ let sphoneName = [];
|
|
|
1753
|
+ let sldcount = [];
|
|
|
1754
|
+ let sjtcount = [];
|
|
|
1755
|
+ let swjcount = [];
|
|
|
1756
|
+ let sfqcount = [];
|
|
1769
|
1757
|
$('.traffic2_wrap').show();
|
|
1770
|
1758
|
$('.traffic2_wrap').siblings().hide()
|
|
1771
|
1759
|
new doAjax({
|
|
|
@@ -1773,14 +1761,25 @@ $('#traffic').click(function () {
|
|
1773
|
1761
|
// url: "http://192.168.8.9:1042/InfoNew/GetDayparting",
|
|
1774
|
1762
|
data: {},
|
|
1775
|
1763
|
callBack: function (res) {
|
|
|
1764
|
+ console.log(res)
|
|
1776
|
1765
|
res.forEach(function (v, n) {
|
|
1777
|
|
- phoneName.push(v.name)
|
|
1778
|
|
- ldcount.push(v.ldcount)
|
|
1779
|
|
- jtcount.push(v.jtcount)
|
|
1780
|
|
- wjcount.push(v.wjtcount)
|
|
1781
|
|
- fqcount.push(v.zdfqcount);
|
|
|
1766
|
+ if(v.name!='12345'&&v.name!="归并热线小计"){
|
|
|
1767
|
+ qtphoneName.push(v.name)
|
|
|
1768
|
+ qtldcount.push(v.ldcount)
|
|
|
1769
|
+ qtjtcount.push(v.jtcount)
|
|
|
1770
|
+ qtwjcount.push(v.wjtcount)
|
|
|
1771
|
+ qtfqcount.push(v.zdfqcount);
|
|
|
1772
|
+ }else{
|
|
|
1773
|
+ sphoneName.push(v.name)
|
|
|
1774
|
+ sldcount.push(v.ldcount)
|
|
|
1775
|
+ sjtcount.push(v.jtcount)
|
|
|
1776
|
+ swjcount.push(v.wjtcount)
|
|
|
1777
|
+ sfqcount.push(v.zdfqcount);
|
|
|
1778
|
+ }
|
|
|
1779
|
+
|
|
1782
|
1780
|
})
|
|
1783
|
|
- trafficDayChart(phoneName, ldcount, jtcount, wjcount, fqcount);
|
|
|
1781
|
+ trafficDayChart(qtphoneName, qtldcount, qtjtcount, qtwjcount, qtfqcount);
|
|
|
1782
|
+ getS(sphoneName, sldcount,sjtcount, swjcount, sfqcount)
|
|
1784
|
1783
|
}
|
|
1785
|
1784
|
});
|
|
1786
|
1785
|
|
|
|
@@ -1825,15 +1824,6 @@ $('#timeTraffic').click(function (e) {
|
|
1825
|
1824
|
getRealTimeTraffi(res.data.hours, res.data.hrcount[0], res.data.hccount[0])
|
|
1826
|
1825
|
}
|
|
1827
|
1826
|
});
|
|
1828
|
|
- let disStr = ''
|
|
1829
|
|
- distributionData.forEach(function (v, n) {
|
|
1830
|
|
- disStr += '<li><label>' + v.name + '</label><span class="num_roll" id="">' + parseInt(v.value % 100000 / 10000) +
|
|
1831
|
|
- '</span><span class="num_roll" id="">' + parseInt(v.value % 10000 / 1000) +
|
|
1832
|
|
- '</span><span class="num_roll" id="">' + parseInt(v.value % 1000 / 100) +
|
|
1833
|
|
- '</span><span class="num_roll"id="">' + parseInt((v.value % 100) / 10) +
|
|
1834
|
|
- '</span><span class="num_roll" id="">' + parseInt(v.value % 10) + '</span></li>'
|
|
1835
|
|
- })
|
|
1836
|
|
- $('.callTraffic .data_info').html(disStr)
|
|
1837
|
1827
|
$('.star_btn').click(function (e) {
|
|
1838
|
1828
|
obj.AgentID = zxNum;
|
|
1839
|
1829
|
$(user).each(function (i, n) {
|