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

equipment

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