提交方式

master
sunke 5 years ago
parent 5a83adb06d
commit bfb236892c

@ -1646,8 +1646,8 @@ class DownloadController extends BaseController {
* 开始导出数据
*/
public function export() { //开始导出
$id = $_REQUEST['id'];
$dataname = $_REQUEST['dataname'];
$id = $_REQUEST['lid'];
$dataname = $_REQUEST['dname'];
$downloadStatus = M('downloadlog','tab_')->where(['id'=>$id])->field('status')->select();
if($downloadStatus[0]['status'] == 1) {
$this->error("该数据已下载请重新添加",U('listsIndex'));

@ -179,7 +179,10 @@
</td>
<td>
<if condition="$vo['status'] eq 0">
<form action="{:U('download/export',array('conditions'=>$vo['conditions'],'id'=>$vo['id'],'dataname'=>$vo['dataname']))}" method="post" id="downloadForm">
<form action="{:U('download/export')}" method="post" id="downloadForm">
<input type="hidden" name="conditions" value='{$vo["conditions"]}'/>
<input type="hidden" name="lid" value="{$vo['id']}"/>
<input type="hidden" name="dname" value="{$vo['dataname']}"/>
<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>

Loading…
Cancel
Save