| 
					
				 | 
			
			
				@@ -161,11 +161,6 @@ async function handleImportClick(libID, type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// 点击导出按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function handleExportClick(libID) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    window.location.href = '/priceInfo/export?libID=' + libID; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 导入确认 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function handleImportConfirm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $.bootstrapLoading.start(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -225,6 +220,31 @@ function handleImportConfirm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 点击导出按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+async function handleExportClick(libID) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        setCurLib(libID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        $('#export').modal('show'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        const areaMap = await getAreaMap(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        setAreaOption($('#export-parent-area'), $('#export-sub-area'), areaMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } catch (error) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        alert(error.message); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 导出确认 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function handleExportConfirm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    debugger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const areaID = getAreaIDByOption($('#export-parent-area'), $('#export-sub-area')); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!areaID) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        alert('请选择地区!'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $('#export').modal('hide'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    window.location.href = `/priceInfo/export?libID=${curLib.id}&areaID=${areaID}`; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const { ProcessStatus, CRAWL_LOG_KEY } = window.PRICE_INFO_CONST; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const CHECKING_TIME = 5000; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -331,6 +351,8 @@ $(document).ready(function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $('#delete').click(handleDeleteConfirm); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 爬取数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $('#crawl-confirm').click(throttle(handleCrawlConfirm, throttleTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 导出excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $('#export-confirm').click(throttle(handleExportConfirm, throttleTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 导入excel 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $('#import-confirm').click(throttle(handleImportConfirm, throttleTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |