miaofuhao лет назад: 6
Родитель
Сommit
c83531b867

+ 13 - 0
WebChart/js/TelephoneDetails.js

@@ -155,6 +155,12 @@
155 155
 	});
156 156
 
157 157
 	function partOne(starts, ends,areaOneVal) {
158
+		if(!starts){
159
+			starts="2019-11-01"
160
+		} 
161
+		if(!ends){
162
+			ends="2019-11-30"
163
+		}
158 164
 		$.ajax({
159 165
 			type: "get",
160 166
 			url: huayi.config.callcenter_url + "info/GetUserStateCount24ByDate",
@@ -260,6 +266,9 @@
260 266
 		//		var index = layer.load(1, {
261 267
 		//			shade: [0.5, '#030303'] //0.1透明度的白色背景
262 268
 		//		});
269
+		if(!dates){
270
+			dates="2019-11-01"
271
+		} 
263 272
 		$.ajax({
264 273
 			type: "get",
265 274
 			url: huayi.config.callcenter_url + "info/GetTelCount24ByDate",
@@ -404,6 +413,10 @@
404 413
 	});
405 414
 
406 415
 	function partThree(dates,areaOneVal) {
416
+		if(!dates){
417
+			dates="2019-11-01"
418
+		} 
419
+		
407 420
 		$.ajax({
408 421
 			type: "get",
409 422
 			url: huayi.config.callcenter_url + "info/GetTelCountByDate",

+ 13 - 0
WebChart/js/complaintsReport.js

@@ -164,6 +164,7 @@ function partOne(start, end,areaOneVal) {
164 164
 	//		var index = layer.load(1, {
165 165
 	//			shade: [0.5, '#030303'] //0.1透明度的白色背景
166 166
 	//		});
167
+	
167 168
 	$.ajax({
168 169
 		type: "get",
169 170
 		url: huayi.config.callcenter_url + "info/GetTypeCountMonthByDate",
@@ -209,6 +210,12 @@ function partOne(start, end,areaOneVal) {
209 210
 
210 211
 function partTwo(starts, ends, areaOneVal) {
211 212
 	var keyid=$('.keys').val()
213
+	if(!starts){
214
+		starts="2019-11-01"
215
+	} 
216
+	if(!ends){
217
+		ends="2019-11-30"
218
+	}
212 219
 	$.ajax({
213 220
 		type: "get",
214 221
 		url: huayi.config.callcenter_url + "Info/GetKeyCountByDateNew",
@@ -309,6 +316,12 @@ function partThree(start, end,areaOneVal) {
309 316
 	//		var index = layer.load(1, {
310 317
 	//			shade: [0.5, '#030303'] //0.1透明度的白色背景
311 318
 	//		});
319
+	if(!start){
320
+		start="2019-11-01"
321
+	} 
322
+	if(!end){
323
+		end="2019-11-30"
324
+	}
312 325
 	$.ajax({
313 326
 		type: "get",
314 327
 		url: huayi.config.callcenter_url + "info/GetTypeCountByDate",

+ 24 - 3
WebChart/js/index.js

@@ -1,4 +1,7 @@
1
+
2
+
1 3
 $(function() {
4
+	
2 5
 	var mySwiper = new Swiper('.swiper-container', {
3 6
 //		loop: true,
4 7
 //		autoplay: {
@@ -131,9 +134,12 @@ function turn(aa) {
131 134
 	})();
132 135
 	//第一屏幕 开始
133 136
 	function oneScreen(sd,ed) {
134
-		//			 	$('.gdmap-r ul').html('');
135
-		//			 		var index = layer.load(1, { shade: [0.5,'#030303'] //0.1透明度的白色背景
136
-		//			});
137
+		if(!sd){
138
+			sd="2019-11-01"
139
+		}
140
+		if(!ed){
141
+			ed="2019-11-30"
142
+		}
137 143
 		$.ajax({
138 144
 			type: "get",
139 145
 			url: huayi.config.callcenter_url + "/info/GetAreaCountByDateNew",
@@ -192,6 +198,12 @@ function turn(aa) {
192 198
 	if(!areaTwoVal) {
193 199
 		areaTwoVal = "sqs12345"
194 200
 	}
201
+	if(!start){
202
+		start="2019-11-01"
203
+	}
204
+	if(!end){
205
+		end="2019-11-30"
206
+	}
195 207
 	$.ajax({
196 208
 		type: "get",
197 209
 		url: huayi.config.callcenter_url + "info/GetSourceByDateNew",
@@ -240,6 +252,9 @@ function turn(aa) {
240 252
 
241 253
 	//第三屏
242 254
 	function threeScreen(sd,areaTwoVal) {
255
+		if(!sd){
256
+			sd="2019-11-01"
257
+		}
243 258
 		$.ajax({
244 259
 			type: "get",
245 260
 			url: huayi.config.callcenter_url + "Info/GetTypeCountNew",
@@ -297,6 +312,11 @@ function turn(aa) {
297 312
 	}
298 313
 	//第五屏js
299 314
 	function fiveScreen(sd,ed,areaTwoVal) {
315
+		if(!sd){
316
+			sd="2019-11-01"
317
+		}if(!ed){
318
+			ed="2019-11-30"
319
+		}
300 320
         keyWord(sd, ed,areaTwoVal);
301 321
 	} 
302 322
 	$(".depart").change(function() {
@@ -448,6 +468,7 @@ function keyWordDetail(sd, ed,areaTwoVal) {
448 468
         keyWordDetail($('#test6').val() && $('#test6').val().split(' ~ ')[0], $('#test6').val() && $('#test6').val().split(' ~ ')[1],$(".areaFive").val());
449 469
 	});
450 470
 	function Ajax() {
471
+		
451 472
 		oneScreen($('#time1').val() && $('#time1').val().split(' ~ ')[0], $('#time1').val() && $('#time1').val().split(' ~ ')[1])
452 473
 		twoScreen($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1])
453 474
 		satisfaction($('#time2').val() && $('#time2').val().split(' ~ ')[0], $('#time2').val() && $('#time2').val().split(' ~ ')[1])

+ 6 - 0
WebChart/js/pieChat.js

@@ -3,6 +3,12 @@ function satisfaction(start, end, areaTwoVal) {
3 3
 	if(!areaTwoVal) {
4 4
 		areaTwoVal = "sqs12345"
5 5
 	}
6
+	if(!start){
7
+		start="2019-11-01"
8
+	} 
9
+	if(!end){
10
+		end="2019-11-30"
11
+	}
6 12
 	$.ajax({
7 13
 		type: "get",
8 14
 		url: huayi.config.callcenter_url + '/info/GetSourceByDateNew',

+ 10 - 0
WebChart/js/receiptDepartment.js

@@ -189,6 +189,12 @@ function partOne(areaOneVal) {
189 189
 
190 190
 //part 2 //各部门工单情况
191 191
 function partTwo(starts, ends, areaOneVal) {
192
+	if(!starts){
193
+		starts="2019-11-01"
194
+	} 
195
+	if(!ends){
196
+		ends="2019-11-30"
197
+	}
192 198
 	$.ajax({
193 199
 		type: "get",
194 200
 		url: huayi.config.callcenter_url + "Info/GetDeptCountByDateNew",
@@ -320,6 +326,10 @@ sitProportion.setOption({
320 326
 });
321 327
 
322 328
 function partThree(dates,areaOneVal) {
329
+	if(!dates){
330
+		dates="2019-11-01"
331
+	} 
332
+	
323 333
 	$.ajax({
324 334
 		type: "get",
325 335
 		url: huayi.config.callcenter_url + "info/GetDealCount24ByDate",

+ 15 - 0
WebChart/js/sourceChannel.js

@@ -136,6 +136,9 @@ part_1.setOption({
136 136
 });
137 137
 
138 138
 function partOne(dates,areaOneVal) {
139
+	if(!dates){
140
+		dates="2019-11-01"
141
+	} 
139 142
 	$.ajax({
140 143
 		type: "get",
141 144
 		url: huayi.config.callcenter_url + "info/GetAreaCount24ByDate",
@@ -265,6 +268,12 @@ source.setOption({
265 268
 });
266 269
 
267 270
 function partTwo(start, end,areaOneVal) {
271
+	if(!start){
272
+		start="2019-11-01"
273
+	} 
274
+	if(!end){
275
+		end="2019-11-30"
276
+	}
268 277
 	$.ajax({
269 278
 		type: "get",
270 279
 		url: huayi.config.callcenter_url + "info/GetSourcePercentByDate",
@@ -373,6 +382,12 @@ function partThree(start, end,areaOneVal) {
373 382
 	//		var index = layer.load(1, {
374 383
 	//			shade: [0.5, '#030303'] //0.1透明度的白色背景
375 384
 	//		});
385
+	if(!start){
386
+		start="2019-11-01"
387
+	} 
388
+	if(!end){
389
+		end="2019-11-30"
390
+	}
376 391
 	$.ajax({
377 392
 		type: "get",
378 393
 		url: huayi.config.callcenter_url + "info/GetAreaCountByDate",