下载提交方式修改

master
sunke 5 years ago
parent 4ebba110d9
commit 275c0a8022

@ -159,9 +159,10 @@
</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']))}" onclick="reload()" style="cursor: pointer" <form action="{:U('download/export',array('conditions'=>$vo['conditions'],'id'=>$vo['id'],'dataname'=>$vo['dataname']))}" method="post" id="downloadForm">
class="chakan"><span>可下载</span></a> <a style="cursor: pointer" onclick="reload()" target="_blank"
class="chakan"><span>可下载</span></a>
</form>
<else /> <a href="javascript:;" class="current"><span style="color:#9D9D9D">已下载</span></a> <else /> <a href="javascript:;" class="current"><span style="color:#9D9D9D">已下载</span></a>
</if> </if>
</td> </td>
@ -261,6 +262,7 @@
</script> </script>
<script> <script>
function reload() { function reload() {
document.getElementById('downloadForm').submit()
setTimeout(function(){ window.location.reload(); }, 7000); setTimeout(function(){ window.location.reload(); }, 7000);
} }
</script> </script>

Loading…
Cancel
Save