实时刷新可下载状态

master
sunke 5 years ago
parent be6357eeac
commit 21782ff951

@ -138,7 +138,7 @@
</td> </td>
<td> <td>
<if condition="$vo['status'] eq 0"> <if condition="$vo['status'] eq 0">
<a href="{:U('download/export',array('conditions'=>$vo['conditions'],'id'=>$vo['id'],'dataname'=>$vo['dataname']))}" style="cursor: pointer" <a href="{:U('download/export',array('conditions'=>$vo['conditions'],'id'=>$vo['id'],'dataname'=>$vo['dataname']))}" onclick="reload()" style="cursor: pointer"
class="chakan"><span>可下载</span></a> class="chakan"><span>可下载</span></a>
<else /> <a href="javascript:;" class="current"><span style="color:#9D9D9D">已下载</span></a> <else /> <a href="javascript:;" class="current"><span style="color:#9D9D9D">已下载</span></a>
@ -235,4 +235,9 @@
<script> <script>
setValue('pid', {$Think.request.pid |default = '""'}); setValue('pid', {$Think.request.pid |default = '""'});
</script> </script>
<script>
function reload() {
setTimeout(function(){ window.location.reload(); }, 1000);
}
</script>
</block> </block>

Loading…
Cancel
Save