Ver Código Fonte

坐席监控只展示话务员

yangjunfeng 4 anos atrás
pai
commit
b92db90380
2 arquivos alterados com 10 adições e 2 exclusões
  1. 1 1
      WebChart/TelephoneDetails.html
  2. 9 1
      WebChart/js/TelephoneDetails.js

+ 1 - 1
WebChart/TelephoneDetails.html

304
 			height: 60px;
304
 			height: 60px;
305
 		}
305
 		}
306
 		.tx{ 
306
 		.tx{ 
307
-			width: 70%;
307
+			/* width: 70%; */
308
 			height: 60px;
308
 			height: 60px;
309
 		}
309
 		}
310
 		.person{
310
 		.person{

+ 9 - 1
WebChart/js/TelephoneDetails.js

327
 			success: function(data) {
327
 			success: function(data) {
328
 				if(data.state.toLowerCase() == 'success') {
328
 				if(data.state.toLowerCase() == 'success') {
329
 					// 	   			layer.close(index);
329
 					// 	   			layer.close(index);
330
+					var newdatas=[]
330
 					cons = data.data;
331
 					cons = data.data;
332
+					for(var i=0;i<cons.length;i++){
333
+						console.log(cons[i].F_RoleCode)
334
+						if(cons[i].F_RoleCode=="ZXHWY"){
335
+							newdatas.push(cons[i])
336
+						}
337
+					}
338
+					console.log(newdatas)
331
 					$(".users").html('')
339
 					$(".users").html('')
332
-					$(cons).each(function(i, n) {
340
+					$(newdatas).each(function(i, n) {
333
 						var str = ' <li class="touxiang"><ol class="tx"><li class="person"><span class="yuan_one ">' +
341
 						var str = ' <li class="touxiang"><ol class="tx"><li class="person"><span class="yuan_one ">' +
334
 							'</span><span class="yuan_two"></span></li><li class="userid">' +
342
 							'</span><span class="yuan_two"></span></li><li class="userid">' +
335
 							n.F_UserCode + '</li></ol></li>';
343
 							n.F_UserCode + '</li></ol></li>';