Browse Source

咨询空数据Bug修复

dell 8 years ago
parent
commit
8ffc96acdf
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/main/webapp/js/consult.js

+ 8 - 2
src/main/webapp/js/consult.js

@ -37,6 +37,10 @@ function handleData(data,attrParams,btnCls){
37 37
			text = "";
38 38
			state = "";
39 39
		}
40
		//数据为空时
41
		if(data[i]["professor"] == undefined || data[i]["professor"] == null){
42
			return ;
43
		}
40 44
		
41 45
		if(data[i]["professor"]["title"] == undefined){
42 46
			data[i]["professor"]["title"] = '';
@ -278,8 +282,9 @@ var getMyData = function (pageSize,pageNo,isbind,status,timeType,sortType){
278 282
		dataType: "json",
279 283
		contentType: "application/x-www-form-urlencoded",
280 284
		success:function(response){
285
			//数据为空时
281 286
			if(response["data"]["data"] == null || response["data"]["data"] == undefined || response["data"]["data"] == ""){
282
				return false;
287
				return ;
283 288
			}
284 289
			else{
285 290
				//拿到收到回复数据
@ -336,8 +341,9 @@ var getConsultData = function (pageSize,pageNo,isbind,status,timeType,sortType){
336 341
		dataType: "json",
337 342
		contentType: "application/x-www-form-urlencoded",
338 343
		success:function(response){
344
			//数据为空时
339 345
			if(response["data"]["data"] == null || response["data"]["data"] == undefined || response["data"]["data"] == ""){
340
				return false;
346
				return ;
341 347
			}
342 348
			else{
343 349
				var consultStr;