作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

equipment

... ... @@ -118,7 +118,8 @@ class AdminEquipmentController extends AdminBaseController{
//批量导出
public function batch_export(){
$ids=$this->request->post('ids');
dump($ids);
exit();
$data= Db::name('equipment')->where('id','in',$ids)->select();
// 导出Exl
... ...
... ... @@ -32,7 +32,8 @@
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
onclick="batch_add()">批量新增
</button>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
<!--js-ajax-submit-->
<button class="btn btn-primary btn-sm " type="submit"
data-action="{:url('AdminEquipment/batch_export')}" data-subcheck="true">批量导出
</button>
</div>
... ...