Browse Source

大屏演示修改

miaofuhao 6 years ago
parent
commit
486c74955c
2 changed files with 56 additions and 6 deletions
  1. 2 2
      WebChartBigNew/index.html
  2. 54 4
      WebChartBigNew/js/index.js

+ 2 - 2
WebChartBigNew/index.html

@@ -251,8 +251,8 @@
251 251
 					<img src="img/title.png"/>
252 252
 				</div>
253 253
 				<div class="btn-group" role="group" aria-label="...">
254
-					<button type="button" class="btn channel_btn btns active" index="0">今日</button>
255
-					<button type="button" class="btn channel_btn btns" index="2">本月</button>
254
+					<button type="button" class="btn channel_btn btns" index="0">今日</button>
255
+					<button type="button" class="btn channel_btn btns active" index="2">本月</button>
256 256
 					<button type="button" class="btn channel_btn btns" index="3">本年</button>
257 257
 				</div>
258 258
 				<div class="box4_top">

+ 54 - 4
WebChartBigNew/js/index.js

@@ -7,6 +7,56 @@ $(function () {
7 7
 		//Ajax1(index)
8 8
 		//alert(index)
9 9
 	});
10
+	$.ajax({
11
+		type: "get",
12
+		url: huayi.config.callcenter_url + "/info/GetAreaCountByDateNew",
13
+		async: true,
14
+		dataType: 'json',
15
+		data: {
16
+			start: "2019-07-01",
17
+			end: "2019-07-31",
18
+		},
19
+		success: function(data) {
20
+			if(data.state.toLowerCase() == 'success') {
21
+				var con = data.data;
22
+				$(con).each(function(i, n) {
23
+					if(n.AreaName.indexOf('睢阳区') != -1) {
24
+						$(".SYQ_num").html(n.SLCount)
25
+					}
26
+					if(n.AreaName.indexOf('梁园区') != -1) {
27
+						$(".LYQ_num").html(n.SLCount)
28
+					}
29
+					if(n.AreaName.indexOf('民权县') != -1) {
30
+						$(".MQ_num").html(n.SLCount)
31
+					}
32
+					if(n.AreaName.indexOf('睢县') != -1) {
33
+						$(".SX_num").html(n.SLCount)
34
+					}
35
+					if(n.AreaName.indexOf('宁陵县') != -1) {
36
+						$(".NL_num").html(n.SLCount)
37
+					}
38
+					if(n.AreaName.indexOf('柘城县') != -1) {
39
+						$(".ZC_num").html(n.SLCount)
40
+					}
41
+					if(n.AreaName.indexOf('虞城县') != -1) {
42
+						$(".YCX_num").text(n.SLCount)
43
+					}
44
+					if(n.AreaName.indexOf('夏邑县') != -1) {
45
+						$(".XYX_num").html(n.SLCount)
46
+					}
47
+					if(n.AreaName.indexOf('城乡一体化示范区') != -1) {
48
+						$(".KFQ_num").html(n.SLCount)
49
+					}
50
+					if(n.AreaName.indexOf('总计') != -1) {
51
+						$(".allSLCount").html(n.SLCount); //受理量
52
+						$(".allJACount").html(n.JACount); //结案量
53
+						$(".allJARate").html(n.JARate); //结案量
54
+						$(".allMYRate").html(n.MYRate); //满意度
55
+					}
56
+				})
57
+			}
58
+		}
59
+	});
10 60
 })
11 61
 keyWord()
12 62
 //	左侧关键词
@@ -17,8 +67,8 @@ function keyWord(sd, ed, areaTwoVal) {
17 67
 		async: true,
18 68
 		dataType: 'json',
19 69
 		data: {
20
-			start: sd,
21
-			end: ed,
70
+			start: "2019-07-01",
71
+			end: "2019-07-31",
22 72
 			branchcode: areaTwoVal
23 73
 		},
24 74
 		success: function(data) {
@@ -56,8 +106,8 @@ function keyWordDetail(sd, ed, areaTwoVal) {
56 106
 		async: true,
57 107
 		dataType: 'json',
58 108
 		data: {
59
-			start: sd,
60
-			end: ed,
109
+			start: "2019-07-01",
110
+			end: "2019-07-31",
61 111
 			branchcode: areaTwoVal,
62 112
 			deptid: $('.depart').val(),
63 113
 			keyid: $(".tagcloud_bjShine").eq(0).attr("index")