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

equipment

@@ -117,9 +117,11 @@ class AdminEquipmentController extends AdminBaseController{ @@ -117,9 +117,11 @@ class AdminEquipmentController extends AdminBaseController{
117 117
118 //批量导出 118 //批量导出
119 public function batch_export(){ 119 public function batch_export(){
120 - $ids=$this->request->post('ids');  
121 - dump($ids);  
122 - exit(); 120 + $param=$this->request->param();
  121 + if (isset($param['ids'])) {
  122 + dump($param['ids']);
  123 + exit();
  124 + }
123 $data= Db::name('equipment')->where('id','in',$ids)->select(); 125 $data= Db::name('equipment')->where('id','in',$ids)->select();
124 126
125 // 导出Exl 127 // 导出Exl
@@ -155,7 +155,7 @@ @@ -155,7 +155,7 @@
155 } 155 }
156 156
157 function batch_add() { 157 function batch_add() {
158 - openIframeLayer("{:url('AdminEquipment/batch_add')}", '请选择分类', { 158 + openIframeLayer("{:url('AdminEquipment/batch_add')}", '批量导入', {
159 area: ['1000px', '800px'], 159 area: ['1000px', '800px'],
160 btn: ['确定', '取消'], 160 btn: ['确定', '取消'],
161 yes: function (index, layero) { 161 yes: function (index, layero) {