Browse Source

倒序排序

zhangyanfang 4 years ago
parent
commit
64f5fa072c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      html/informationSearch/js/reportList.js

+ 4 - 1
html/informationSearch/js/reportList.js

@ -106,7 +106,10 @@ var iscrollState='';//判断滑动方向
			        			data.cdrq=new Date(data.cdrq).Format("yyyy-MM-dd HH:mm:ss")
			        		}
			        		return data
			        	})
						})
						vm.dataList=_.sortBy(vm.dataList,function(o){
							return -new Date(o.cdrq).getTime()
						})
			        	vm.length = vm.dataList.length
			        }else{
			            dialog({contentType:'tipsbox',bottom:true, skin:'bk-popup' , content:'数据获取失败'}).show();