Commit 84a9015f authored by zw's avatar zw

Merge branch 'test'

parents 5139aadd ca45042e
...@@ -188,7 +188,9 @@ ...@@ -188,7 +188,9 @@
} }
.modal-body-width-du{ .modal-body-width-du{
width: 1200px; /*width: 1200px;*/
width: 998px;
} }
.col-xs-12 { .col-xs-12 {
overflow: hidden; overflow: hidden;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
padding-left: 8px; padding-left: 8px;
padding-right: 8px; padding-right: 8px;
}; }
.reportArea{ .reportArea{
float: left; float: left;
position: relative; position: relative;
......
<script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2019018866' charset='utf-8'></script> <script src='/resource/lib/js/require.min.js' data-main='/resource/js/main?version=2019066688' charset='utf-8'></script>
...@@ -24,6 +24,18 @@ ...@@ -24,6 +24,18 @@
.clear{ .clear{
clear: both; clear: both;
} }
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: 50px;
margin-top: -150px;;
overflow: hidden;
display: none;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -97,7 +109,10 @@ ...@@ -97,7 +109,10 @@
</div> </div>
</div> </div>
</div> </div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div>
......
...@@ -46,7 +46,7 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde ...@@ -46,7 +46,7 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
}); });
_doc.on('click', '.pdf-pre-a', function() { _doc.on('click', '.pdf-pre-a', function() {
var file_id = $(this).parent('li').attr('id') - 0 ; var file_id = $(this).parent('li').attr('id') - 0 ;
var _url = '/index/downloadFile'; var _url = ServerHostImageLiu+'/index/downloadFile';
window.open(_url + '?file_id=' + file_id); window.open(_url + '?file_id=' + file_id);
}); });
$("#search").click(function(){ $("#search").click(function(){
......
...@@ -60,7 +60,9 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home ...@@ -60,7 +60,9 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
beforeSend: function() {}, beforeSend: function() {
$('#main_loading_pic').show();
},
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
...@@ -84,6 +86,7 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home ...@@ -84,6 +86,7 @@ define(['doT', 'text!temp/shop_inspectionlog_template_tpl.html', 'css!style/home
alert('error'); alert('error');
}, },
complete: function(xhr, textStatus) { complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
if(textStatus === 'timeout') { if(textStatus === 'timeout') {
alert('请求超时'); alert('请求超时');
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment