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

equipment

... ... @@ -117,7 +117,9 @@ class AdminEquipmentController extends AdminBaseController{
//批量导出
public function batch_export(){
$data= Db::name('equipment')->select();
$ids=$this->request->post('ids');
$data= Db::name('equipment')->where('id','in',$ids)->select();
// 导出Exl
vendor("VENDOR_PATH/phpoffice/phpexcel/Classes/PHPExcel");
... ...
... ... @@ -33,7 +33,7 @@
onclick="batch_add()">批量新增
</button>
<button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
data-action="{:url('AdminEquipment/publish',array('yes'=>1))}" data-subcheck="true">批量导出
data-action="{:url('AdminEquipment/batch_export')}" data-subcheck="true">批量导出
</button>
</div>
<table class="table table-hover table-bordered table-list">
... ...