Parcourir la Source

禅道bug修改

liuzhen il y a 5 ans
Parent
commit
214bb00bf4

+ 8 - 5
CallCenterWeb.UI/ReportForm/workOrderComplain.html

@@ -106,8 +106,11 @@
106 106
 				$(".search").click(function() {
107 107
 					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
108 108
 					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
109
-					partOne();
110
-					getDataList();
109
+					if(tabIndex==0){
110
+						partOne();
111
+					}else if(tabIndex==1){
112
+						getDataList();
113
+					}
111 114
 					//getTableDataList(); //获取表格数据
112 115
 				})
113 116
 				//导出
@@ -116,7 +119,7 @@
116 119
 					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
117 120
 					dcexcel(this);
118 121
 				});
119
-				
122
+				var tabIndex=0;
120 123
 				//tab切换
121 124
 				$('.hu-tab li').click(function() {
122 125
 					$(this).addClass('active')
@@ -124,12 +127,12 @@
124 127
 					tabIndex = $(this).index();
125 128
 					$('.hu-content >div').eq(tabIndex).show()
126 129
 						.siblings().hide();
127
-					loadDatas();	
130
+					loadDatas(tabIndex);	
128 131
 				});
129 132
 				
130 133
 
131 134
 			});
132
-			function loadDatas() {
135
+			function loadDatas(tabIndex) {
133 136
 				if(tabIndex == 0) {
134 137
 					//tu(); //加载图形
135 138
 				} else if(tabIndex == 1) {

+ 14 - 6
CallCenterWeb.UI/ReportForm/workOrderCustomer.html

@@ -265,8 +265,11 @@
265 265
 				}
266 266
 				/*搜索*/
267 267
 				$(".search").click(function() {
268
-					partThree(); //获取表格数据
269
-//					getDataList();
268
+					if(tabIndex==0){
269
+						partThree();
270
+					}else if(tabIndex==1){
271
+						getDataList();//获取表格数据
272
+					}
270 273
 				})
271 274
 				//导出
272 275
 				$('.export').click(function() {
@@ -282,6 +285,7 @@
282 285
 					+ "&city=" + $('.inps4').attr("index");									
283 286
 					obj.href = url;
284 287
 				}
288
+				var tabIndex=0;
285 289
 				//tab切换
286 290
 				$('.hu-tab li').click(function() {
287 291
 					$(this).addClass('active')
@@ -290,17 +294,21 @@
290 294
 					tabIndex = $(this).index();
291 295
 					$('.hu-content >div').eq(tabIndex).show()
292 296
 						.siblings().hide();
293
-					loadDatas();	
297
+					loadDatas(tabIndex);	
294 298
 				});
295
-				function loadDatas() {
299
+				function loadDatas(tabIndex) {
296 300
 					if(tabIndex == 0) {
297
-						//tu(); //加载图形
301
+						partThree(); //加载图形
298 302
 					} else if(tabIndex == 1) {
299 303
 						getDataList(); //加载表格
300 304
 					}
301 305
 				}
302 306
 			});
303 307
 			function getDataList() {
308
+				var type=$('.orderType2').find('option:selected').text();
309
+				if(type=='全部'){
310
+					type=''
311
+				}
304 312
 				var colsArr = [];
305 313
 				var dataArr = [];
306 314
 				var loadindex;
@@ -316,7 +324,7 @@
316 324
 						sdate: stime,
317 325
 						edate: endtime,
318 326
 						dpt: $('#bumen').val(),
319
-						type: $('.orderType2').val(),
327
+						type: type,
320 328
 						token: token,
321 329
 					},
322 330
 					success: function(data) {

+ 3 - 2
CallCenterWeb.UI/SystemManager/js/shuJuZiDian.js

@@ -135,8 +135,9 @@ $('.sure').click(function () {
135 135
                 layer.msg("删除成功!");
136 136
                 bs='';
137 137
 //              table.bootstrapTable('refresh');
138
-                initTable(token);
139
-                $('.addModel').css('display', 'none');
138
+//              initTable(token);
139
+                location=location;
140
+//              $('.addModel').css('display', 'none');
140 141
             }
141 142
         }
142 143
     });

+ 1 - 1
CallCenterWeb.UI/SystemManager/yongHuManger.html

@@ -266,7 +266,7 @@
266 266
 								<th style="color: darkred;">员工姓名:</th>
267 267
 								<td><input type="text" class="change_ygName" /></td>
268 268
 								<th style="color: darkred;">员工工号:</th>
269
-								<td><input type="text" class="change_ygCode" /></td>
269
+								<td><input type="text" class="change_ygCode" onkeyup="value=value.replace(/[^\d]/g,'')"/></td>
270 270
 							</tr>
271 271
 							<tr>
272 272
 								<th style="color: darkred;">所属角色:</th>

+ 5 - 4
CallCenterWeb.UI/js/Quality/zhibiaoguanli.js

@@ -229,10 +229,10 @@ $(".leftChange ").click(function() {
229 229
 })
230 230
 ///左边获取指标分类
231 231
 function GetIndexCategory(Left_Cids) {
232
-	if($('#Left_CategoryName').val()==''){
233
-		layer.msg('请输入分类名称!');
234
-		return
235
-	}
232
+//	if($('#Left_CategoryName').val()==''){
233
+//		layer.msg('请输入分类名称!');
234
+//		return
235
+//	}
236 236
 	$.ajax({
237 237
 		type: "get",
238 238
 		url: huayi.config.callcenter_url + "IndexCategory/GetIndexCategory",
@@ -247,6 +247,7 @@ function GetIndexCategory(Left_Cids) {
247 247
 			console.log(data);
248 248
 			//				IndexCategoryGe();
249 249
 			$("#Left_CategoryName").val(data.data.F_CategoryName);
250
+			Select();
250 251
 			$("#Left_Sort").val(data.data.F_Sort);
251 252
 			$("#Left_ParentId").val(data.data.F_ParentId);
252 253
 		}