正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
@@ -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> |
-
请 注册 或 登录 后发表评论