Browse Source

机构id已改

lipengtao 8 years ago
parent
commit
ada9f6369d
1 changed files with 19 additions and 0 deletions
  1. 19 0
      src/main/webapp/search.html

+ 19 - 0
src/main/webapp/search.html

@ -21,6 +21,18 @@
21 21
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
22 22
<script src="js/jquery.page.js"></script>
23 23
<script type="text/javascript">
24
var arr=[];
25
var arr1=[];
26
$.get("/ajax/org/qa",function($da) {
27
	    			if ($da.success) {
28
						var $info = $da.data;
29
						for(var i=0;i<$info.length;i++){
30
							arr.push($info[i].name);
31
							arr1.push($info[i].id);
32
						}
33
					}
34
	    });
35
						
24 36
	$(function(){
25 37
		loginStatus();
26 38

@ -55,6 +67,13 @@
55 67
									}
56 68
									dataHtml += ",";
57 69
									if(typeof($data.data.data[i].orgId) !== "undefined"){
70
										if(typeof($data.data.data[i].orgId) !== "undefined"){
71
										for(var j=0;j<arr1.length;j++){
72
											if($data.data.data[i].orgId==arr1[j]){
73
												$data.data.data[i].orgId=arr[j];
74
											}
75
										}
76
										
58 77
										dataHtml += $data.data.data[i].orgId;
59 78
									}
60 79
									dataHtml += "</div>";