Browse Source

搜索条件回显

wangshan 5 years ago
parent
commit
d4bd89ccbd

+ 3 - 3
src/jfw/modules/app/src/web/templates/dataExport/dataExport.html

@@ -493,7 +493,7 @@
 			if(filter["region"]!=null&&filter["region"]!=""){
 				localStorage.areaHtml = filter["region"];
 			}else{
-				localStorage.areaHtml = localStorage.area;
+				localStorage.areaHtml =  filter["area"].join(',').replace(/,/g,"、");
 			}
 	        //行业
 			if(filter["industry"]!=null&&filter["industry"]!=""){
@@ -514,9 +514,9 @@
 			}
 	        //信息类型
 			if(filter["subtype"]!=null&&filter["subtype"]!=""){
-				localStorage.subType = filter["subtype"].replace(/,/g," ");
+				localStorage.subTypes = filter["subtype"].replace(/,/g," ");
 			}else{
-				localStorage.subType = "";
+				localStorage.subTypes = "";
 			}
 			//采购单位
 	        if(filter["buyer"]!=null&&filter["buyer"].length>0){

+ 3 - 3
src/web/templates/weixin/dataExport/dataExport.html

@@ -446,7 +446,7 @@
 			if(filter["region"]!=null&&filter["region"]!=""){
 				localStorage.areaHtml = filter["region"];
 			}else{
-				localStorage.areaHtml = localStorage.area;
+				localStorage.areaHtml = filter["area"].join(',').replace(/,/g,"、");
 			}
 	        //行业
 			if(filter["industry"]!=null&&filter["industry"]!=""){
@@ -467,9 +467,9 @@
 			}
 	        //信息类型
 			if(filter["subtype"]!=null&&filter["subtype"]!=""){
-				localStorage.subType = filter["subtype"].replace(/,/g," ");
+				localStorage.subTypes = filter["subtype"].replace(/,/g," ");
 			}else{
-				localStorage.subType = "";
+				localStorage.subTypes = "";
 			}
 			//采购单位
 	        if(filter["buyer"]!=null&&filter["buyer"].length>0){