Commit 22b73c9d authored by agping's avatar agping

业绩排行榜 优化

parent 85593150
...@@ -79,6 +79,18 @@ ...@@ -79,6 +79,18 @@
margin-right: 30px; margin-right: 30px;
margin-top: 10px; margin-top: 10px;
} }
/*加载图标*/
#main_loading_pic {
position: fixed;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -50px;
overflow: hidden;
display: none;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
...@@ -577,4 +589,8 @@ ...@@ -577,4 +589,8 @@
</div> </div>
<!-- /.modal --> <!-- /.modal -->
</div> </div>
</div>
<!--加载图标-->
<div id="main_loading_pic">
<img src="/resource/image/jz2.gif">
</div> </div>
\ No newline at end of file
...@@ -431,7 +431,9 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -431,7 +431,9 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
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') {
if(data.code == 200) { if(data.code == 200) {
...@@ -465,6 +467,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -465,6 +467,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
alert('error'); alert('error');
}, },
complete: function(xhr, textStatus) { complete: function(xhr, textStatus) {
$('#main_loading_pic').hide();
if(textStatus === 'timeout') { if(textStatus === 'timeout') {
alert('请求超时'); alert('请求超时');
}; };
......
...@@ -478,10 +478,13 @@ ...@@ -478,10 +478,13 @@
<td class="text-left">[%= it[item]['industry_type'] %]</td> <td class="text-left">[%= it[item]['industry_type'] %]</td>
<td class="text-center">[%= it[item]['last_phone_follow_time'] %]</td> <td class="text-center">[%= it[item]['last_phone_follow_time'] %]</td>
<td> <td>
[% if(it[item]["status"] == 0) { %] [% if(it[item]["status"] == 1) { %]
已租 上架
[% }else if(it[item]["status"] == 2){ %]
下架
[% }else{ %] [% }else{ %]
待租 回收
[% } %] [% } %]
</td> </td>
</tr> </tr>
......
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