From 074c18d94fbf1764c646e7ec9ccd59ec5f60d3ab Mon Sep 17 00:00:00 2001
From: bhq@iemsoft.cn <bhq@iemsoft.cn>
Date: Wed, 16 Jan 2019 11:49:07 +0800
Subject: [PATCH] jsp部分导入

---
 report-console/src/main/resources/report-asserts/js/preview.bundle.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/report-console/src/main/resources/report-asserts/js/preview.bundle.js b/report-console/src/main/resources/report-asserts/js/preview.bundle.js
index bebb7dc..7e9abce 100644
--- a/report-console/src/main/resources/report-asserts/js/preview.bundle.js
+++ b/report-console/src/main/resources/report-asserts/js/preview.bundle.js
@@ -44,19 +44,19 @@
 /* 0 */
 /***/ (function(module, exports, __webpack_require__) {
 
-	'use strict';__webpack_require__(556);var _chart=__webpack_require__(54);var _chart2=_interopRequireDefault(_chart);__webpack_require__(16);__webpack_require__(31);__webpack_require__(35);__webpack_require__(882);__webpack_require__(884);var _Utils=__webpack_require__(47);var _MsgBox=__webpack_require__(45);var _PDFPrintDialog=__webpack_require__(886);var _PDFPrintDialog2=_interopRequireDefault(_PDFPrintDialog);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}$(document).ready(function(){// 下拉树相关函数=========start
+	'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/**
+	 * Created by Jacky.Gao on 2017-03-17.
+	 */__webpack_require__(556);var _chart=__webpack_require__(54);var _chart2=_interopRequireDefault(_chart);__webpack_require__(16);__webpack_require__(31);__webpack_require__(35);__webpack_require__(882);__webpack_require__(884);var _Utils=__webpack_require__(47);var _MsgBox=__webpack_require__(45);var _PDFPrintDialog=__webpack_require__(886);var _PDFPrintDialog2=_interopRequireDefault(_PDFPrintDialog);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}$(document).ready(function(){// 下拉树相关函数=========start
 	$(document).on("click",".treeObjListWrap",function(){$(this).find("div").stop().slideDown();return false;});$(document).on("click",function(){$(".treeObjListWrap").find("div").stop().slideUp();});$('.ureport-print').click(function(){console.log(111);if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){var urlParameters=window.buildLocationSearchParameters("","json");var url=window._server+'/preview/loadPrintPages';(0,_Utils.showLoading)();$.ajax({url:url,type:'POST',data:urlParameters,success:function success(result){(0,_Utils.overtimeLogin)(result);$.post(window._server+'/preview/loadPagePaper',urlParameters,function(paper){(0,_Utils.hideLoading)();var html=result.html;var iFrame=window.frames['_print_frame'];var styles='<style type="text/css">';styles+=buildPrintStyle(paper);styles+=$('#_ureport_table_style').html();styles+='@page {size: auto;margin: 0mm;}';styles+='</style>';$(iFrame.document.body).html(styles+html);iFrame.window.focus();iFrame.window.print();});},error:function error(response){(0,_Utils.hideLoading)();if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)("服务端出错!");}}});}else{console.log(2222);var _urlParameters=window.buildLocationSearchParameters("","json");var _url=window._server+'/preview/loadPrintPages';(0,_Utils.showLoading)();$.ajax({type:"POST",data:_urlParameters,url:_url,success:function success(result){(0,_Utils.overtimeLogin)(result);$.ajax({type:"POST",data:_urlParameters,url:window._server+'/preview/loadPagePaper',success:function success(paper){(0,_Utils.hideLoading)();var html=result.html;var iFrame=window.frames['_print_frame'];var styles='<style type="text/css">';styles+=buildPrintStyle(paper);styles+=$('#_ureport_table_style').html();styles+='@page {size: auto;margin: 0mm;}';styles+='</style>';$(iFrame.document.body).html(styles+html);iFrame.window.focus();iFrame.window.print();}});// $.post(window._server+'/preview/loadPagePaper',urlParameters,function(paper){
 	// });
 	},error:function error(response){(0,_Utils.hideLoading)();if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)("服务端出错!");}}});}});var directPrintPdf=false,index=0;var pdfPrintDialog=new _PDFPrintDialog2.default();$('.ureport-pdf-print').click(function(){var urlParameters=window.buildLocationSearchParameters();$.post(window._server+'/preview/loadPagePaper'+urlParameters,function(paper){pdfPrintDialog.show(paper);});});$('.ureport-pdf-direct-print').click(function(){(0,_Utils.showLoading)();var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/pdf/show'+urlParameters+('&_i='+index++);var iframe=window.frames['_print_pdf_frame'];if(!directPrintPdf){directPrintPdf=true;$("iframe[name='_print_pdf_frame']").on("load",function(){(0,_Utils.hideLoading)();iframe.window.focus();iframe.window.print();});}iframe.window.focus();iframe.location.href=url;});$('.ureport-export-pdf').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/pdf'+urlParameters;window.open(url,'_blank');});$('.ureport-export-word').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/word'+urlParameters;window.open(url,'_blank');});$('.ureport-export-excel').click(function(){if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){var urlParameters=window.buildLocationSearchParameters("","json");$.post(window._server+"/preview/ridesParam",urlParameters,function(res){if(res.code==10000){var url=window._server+'/excel?uuid='+res.data;window.open(url,'_blank');}});}else{var _urlParameters2=window.buildLocationSearchParameters();var url=window._server+'/excel'+_urlParameters2;console.log('---------------0000');window.open(url,'_blank');}// const url=window._server+'/excel'+urlParameters;
 	// window.open(url,'_blank');
-	});$('.ureport-export-excel-paging').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/excel/paging'+urlParameters;window.open(url,'_blank');});$('.ureport-export-excel-paging-sheet').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/excel/sheet'+urlParameters;window.open(url,'_blank');});if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){window.$("#loadingIframe").css("display","none");}else{parent.$("#loadingIframe").css("display","none");}});/**
-	 * Created by Jacky.Gao on 2017-03-17.
-	 */window._currentPageIndex=null;window._totalPage=null;// type 返回类型,如果type == json 返回则为json 否则是序列化的字符串
+	});$('.ureport-export-excel-paging').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/excel/paging'+urlParameters;window.open(url,'_blank');});$('.ureport-export-excel-paging-sheet').click(function(){var urlParameters=window.buildLocationSearchParameters();var url=window._server+'/excel/sheet'+urlParameters;window.open(url,'_blank');});if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){window.$("#loadingIframe").css("display","none");}else{parent.$("#loadingIframe").css("display","none");}});window._currentPageIndex=null;window._totalPage=null;// type 返回类型,如果type == json 返回则为json 否则是序列化的字符串
 	window.buildLocationSearchParameters=function(exclude,type){var pairs=void 0;var parameters={};var foreignPreviewParams=JSON.parse(localStorage.getItem("foreignPreviewParams"));if(!foreignPreviewParams){var urlParameters=window.location.search;if(urlParameters.length>0){urlParameters=urlParameters.substring(1,urlParameters.length);}pairs=urlParameters.split('&');for(var i=0;i<pairs.length;i++){var item=pairs[i];if(item===''){continue;}var param=item.split('=');var key=param[0];if(exclude&&key===exclude){continue;}var value=param[1];parameters[key]=value;}}else{parameters=foreignPreviewParams;}if(window.searchFormParameters){for(var _key in window.searchFormParameters){if(_key===exclude){continue;}var _value=window.searchFormParameters[_key];if(_value){parameters[_key]=_value;}}}if(type=="json"){parameters["_n"]=window._name;return parameters;// return
 	}var p='?';for(var _key2 in parameters){if(p==='?'){p+=_key2+'='+parameters[_key2];}else{p+='&'+_key2+'='+parameters[_key2];}}if(p.indexOf('_n')<0){p+='&_n='+encodeURI(window._name);}return p;};function buildPrintStyle(paper){var marginLeft=(0,_Utils.pointToMM)(paper.leftMargin);var marginTop=(0,_Utils.pointToMM)(paper.topMargin);var marginRight=(0,_Utils.pointToMM)(paper.rightMargin);var marginBottom=(0,_Utils.pointToMM)(paper.bottomMargin);var paperType=paper.paperType;var page=paperType;if(paperType==='CUSTOM'){page=(0,_Utils.pointToMM)(paper.width)+'mm '+(0,_Utils.pointToMM)(paper.height)+'mm';}var style='\n        @media print {\n            .page-break{\n                display: block;\n                page-break-before: always;\n            }\n        }\n        @page {\n          size: '+page+' '+paper.orientation+';\n          margin-left: '+marginLeft+'mm;\n          margin-top: '+marginTop+'mm;\n          margin-right:'+marginRight+'mm;\n          margin-bottom:'+marginBottom+'mm;\n        }\n    ';return style;};window.buildPaging=function(pageIndex,totalPage){if(totalPage===0){return;}if(!pageIndex){return;}if(!window._currentPageIndex){window._currentPageIndex=pageIndex;}pageIndex=window._currentPageIndex;if(!window._totalPage){window._totalPage=totalPage;}var pageSelector=$('#pageSelector');pageSelector.change(function(){if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){var parameters=window.buildLocationSearchParameters('_i',"json");window.$("#loadingIframe").css("display","block");var url=window.contextPath+'/res/report-html/html-preview.html';// window.open(url,'_self');
 	parameters._i=$(this).val();$.post(url,parameters,function(res){window.$("#previewForeign").html(res);});}else{var _parameters=window.buildLocationSearchParameters('_i');parent.$("#loadingIframe").css("display","block");var _url2=window.contextPath+('/res/report-html/html-preview.html'+_parameters+'&_i='+$(this).val());window.open(_url2,'_self');}});pageSelector.val(pageIndex);if(totalPage===1){return;}var pagingContainer=$('#pageLinkContainer');pagingContainer.empty();if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){var parameters=window.buildLocationSearchParameters('_i',"json");if(pageIndex>1){var url=window.contextPath+'/res/report-html/html-preview.html';var prevPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0A\u4E00\u9875</button>');pagingContainer.append(prevPage);prevPage.click(function(){parameters._i=pageIndex-1;window.$("#loadingIframe").css("display","block");// window.open(url,'_self');
 	$.post(url,parameters,function(res){window.$("#previewForeign").html(res);});});}if(pageIndex<totalPage){var _url3=window.contextPath+'/res/report-html/html-preview.html';var nextPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0B\u4E00\u9875</button>');pagingContainer.append(nextPage);nextPage.click(function(){parameters._i=pageIndex+1;window.$("#loadingIframe").css("display","block");$.post(_url3,parameters,function(res){window.$("#previewForeign").html(res);});// window.open(url,'_self');
-	});}}else{var _parameters2=window.buildLocationSearchParameters('_i');if(pageIndex>1){var _url4=window.contextPath+('/res/report-html/html-preview.html'+_parameters2+'&_i='+(pageIndex-1));var _prevPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0A\u4E00\u9875</button>');pagingContainer.append(_prevPage);_prevPage.click(function(){window.open(_url4,'_self');});}if(pageIndex<totalPage){var _url5=window.contextPath+('/res/report-html/html-preview.html'+_parameters2+'&_i='+(pageIndex+1));var _nextPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0B\u4E00\u9875</button>');pagingContainer.append(_nextPage);_nextPage.click(function(){window.open(_url5,'_self');});}}};window._intervalRefresh=function(value,totalPage){if(!value){return;}window._totalPage=totalPage;var second=value*1000;setTimeout(function(){_refreshData(second);},second);};function _refreshData(second){$("#loadinggif").css("display","block");var params=buildLocationSearchParameters('_i');var url=window._server+('/preview/loadData'+params);var totalPage=window._totalPage;if(totalPage>0){if(window._currentPageIndex){if(window._currentPageIndex>totalPage){window._currentPageIndex=1;}url+="&_i="+window._currentPageIndex+"";}$("#pageSelector").val(window._currentPageIndex);}$.ajax({url:url,type:'GET',success:function success(report){(0,_Utils.overtimeLogin)(report);var tableContainer=$('#_ureport_table');tableContainer.empty();window._totalPage=report.totalPageWithCol;tableContainer.append(report.content);_buildChartDatas(report.chartDatas);buildPaging(window._currentPageIndex,window._totalPage);if(window._currentPageIndex){window._currentPageIndex++;}setTimeout(function(){_refreshData(second);},second);$("#loadinggif").css("display","none");},error:function error(response){$("#loadinggif").css("display","none");if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)('加载数据失败!');}}});};window._buildChartDatas=function(chartData){if(!chartData||chartData.length<1){return;}console.log('--------------------------1');console.log(chartData);chartData=JSON.parse(chartData);console.log('--------------------------------2');var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=chartData[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var d=_step.value;var json=d.json;json=JSON.parse(json);_buildChart(d.id,json);}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}};window._buildChart=function(canvasId,chartJson){var ctx=document.getElementById(canvasId);var options=chartJson.options;if(!options){options={};chartJson.options=options;}var animation=options.animation;if(!animation){animation={};options.animation=animation;}animation.onComplete=function(event){var chart=event.chart;var base64Image=chart.toBase64Image();var urlParameters=window.location.search;var url=window._server+'/chart/storeData'+urlParameters;var canvas=$("#"+canvasId);var width=parseInt(canvas.css('width'));var height=parseInt(canvas.css('height'));$.ajax({type:'POST',data:(0,_Utils.returnEncryptStr)({_base64Data:base64Image,_chartId:canvasId,_width:width,_height:height},"val"),url:url});};var chart=new _chart2.default(ctx,chartJson);};window.submitSearchForm=function(file,customParameters){$("#loadinggif").css("display","block");$(".error_info").html("");window.searchFormParameters={};var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=window.formElements[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var fun=_step2.value;var json=fun.call(this);for(var key in json){var value=json[key];if(inputProp[key]==true&&json[key]==""){$("input[name='"+key+"']").parents(".form-group").find(".error_info").html("该条件为必填项!");$("#loadinggif").css("display","none");debugger;return;}value=encodeURI(value);window.searchFormParameters[key]=value;}}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}var parameters=window.buildLocationSearchParameters('_i',"json");var url=window._server+"/preview/loadData";var pageSelector=$('#pageSelector');if(pageSelector.length>0){if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){parameters._i=1;}else{url+='?_i=1';}}$.ajax({url:url,type:'POST',data:parameters,success:function success(report){(0,_Utils.overtimeLogin)(report);if(report.style){$("#_ureport_table_style").text(report.style);}window._currentPageIndex=1;var tableContainer=$('#_ureport_table');tableContainer.empty();tableContainer.append(report.content);_buildChartDatas(report.chartDatas);var totalPage=report.totalPage;window._totalPage=totalPage;if(pageSelector.length>0){pageSelector.empty();for(var i=1;i<=totalPage;i++){pageSelector.append('<option>'+i+'</option>');}var pageIndex=report.pageIndex||1;pageSelector.val(pageIndex);$('#totalPageLabel').html(totalPage);buildPaging(pageIndex,totalPage);}$("#loadinggif").css("display","none");},error:function error(response){$("#loadinggif").css("display","none");if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)('查询操作失败!');}}});};
+	});}}else{var _parameters2=window.buildLocationSearchParameters('_i');if(pageIndex>1){var _url4=window.contextPath+('/res/report-html/html-preview.html'+_parameters2+'&_i='+(pageIndex-1));var _prevPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0A\u4E00\u9875</button>');pagingContainer.append(_prevPage);_prevPage.click(function(){window.open(_url4,'_self');});}if(pageIndex<totalPage){var _url5=window.contextPath+('/res/report-html/html-preview.html'+_parameters2+'&_i='+(pageIndex+1));var _nextPage=$('<button type="button" class="btn btn-link btn-sm">\u4E0B\u4E00\u9875</button>');pagingContainer.append(_nextPage);_nextPage.click(function(){window.open(_url5,'_self');});}}};window._intervalRefresh=function(value,totalPage){if(!value){return;}window._totalPage=totalPage;var second=value*1000;setTimeout(function(){_refreshData(second);},second);};function _refreshData(second){$("#loadinggif").css("display","block");var params=buildLocationSearchParameters('_i');var url=window._server+('/preview/loadData'+params);var totalPage=window._totalPage;if(totalPage>0){if(window._currentPageIndex){if(window._currentPageIndex>totalPage){window._currentPageIndex=1;}url+="&_i="+window._currentPageIndex+"";}$("#pageSelector").val(window._currentPageIndex);}$.ajax({url:url,type:'GET',success:function success(report){(0,_Utils.overtimeLogin)(report);var tableContainer=$('#_ureport_table');tableContainer.empty();window._totalPage=report.totalPageWithCol;tableContainer.append(report.content);_buildChartDatas(report.chartDatas);buildPaging(window._currentPageIndex,window._totalPage);if(window._currentPageIndex){window._currentPageIndex++;}setTimeout(function(){_refreshData(second);},second);$("#loadinggif").css("display","none");},error:function error(response){$("#loadinggif").css("display","none");if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)('加载数据失败!');}}});};window._buildChartDatas=function(chartData){if(!chartData||chartData.length<1){return;}if((typeof chartData==='undefined'?'undefined':_typeof(chartData))!="object"){chartData=JSON.parse(chartData);}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=chartData[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var d=_step.value;var json=d.json;json=JSON.parse(json);_buildChart(d.id,json);}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}};window._buildChart=function(canvasId,chartJson){var ctx=document.getElementById(canvasId);var options=chartJson.options;if(!options){options={};chartJson.options=options;}var animation=options.animation;if(!animation){animation={};options.animation=animation;}animation.onComplete=function(event){var chart=event.chart;var base64Image=chart.toBase64Image();var urlParameters=window.location.search;var url=window._server+'/chart/storeData'+urlParameters;var canvas=$("#"+canvasId);var width=parseInt(canvas.css('width'));var height=parseInt(canvas.css('height'));$.ajax({type:'POST',data:(0,_Utils.returnEncryptStr)({_base64Data:base64Image,_chartId:canvasId,_width:width,_height:height},"val"),url:url});};var chart=new _chart2.default(ctx,chartJson);};window.submitSearchForm=function(file,customParameters){$("#loadinggif").css("display","block");$(".error_info").html("");window.searchFormParameters={};var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=window.formElements[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var fun=_step2.value;var json=fun.call(this);for(var key in json){var value=json[key];if(inputProp[key]==true&&json[key]==""){$("input[name='"+key+"']").parents(".form-group").find(".error_info").html("该条件为必填项!");$("#loadinggif").css("display","none");debugger;return;}value=encodeURI(value);window.searchFormParameters[key]=value;}}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}var parameters=window.buildLocationSearchParameters('_i',"json");var url=window._server+"/preview/loadData";var pageSelector=$('#pageSelector');if(pageSelector.length>0){if(JSON.parse(localStorage.getItem("foreignPreviewParams"))){parameters._i=1;}else{url+='?_i=1';}}$.ajax({url:url,type:'POST',data:parameters,success:function success(report){(0,_Utils.overtimeLogin)(report);if(report.style){$("#_ureport_table_style").text(report.style);}window._currentPageIndex=1;var tableContainer=$('#_ureport_table');tableContainer.empty();tableContainer.append(report.content);_buildChartDatas(report.chartDatas);var totalPage=report.totalPage;window._totalPage=totalPage;if(pageSelector.length>0){pageSelector.empty();for(var i=1;i<=totalPage;i++){pageSelector.append('<option>'+i+'</option>');}var pageIndex=report.pageIndex||1;pageSelector.val(pageIndex);$('#totalPageLabel').html(totalPage);buildPaging(pageIndex,totalPage);}$("#loadinggif").css("display","none");},error:function error(response){$("#loadinggif").css("display","none");if(response&&response.responseText){(0,_MsgBox.alert)("服务端错误:"+response.responseText+"");}else{(0,_MsgBox.alert)('查询操作失败!');}}});};
 
 /***/ }),
 /* 1 */,

--
Gitblit v1.8.0