作者 董瑞恩

interface

@@ -52,6 +52,7 @@ class AdminEquipmentController extends AdminBaseController{ @@ -52,6 +52,7 @@ class AdminEquipmentController extends AdminBaseController{
52 if (!empty($param['start_time'])&&!empty($param['end_time'])){ 52 if (!empty($param['start_time'])&&!empty($param['end_time'])){
53 $where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]]; 53 $where['create_time']=['between',[strtotime($param['start_time']),strtotime($param['end_time'])]];
54 } 54 }
  55 + $where['is_delete']=0;
55 $Equipment=new EquipmentModel(); 56 $Equipment=new EquipmentModel();
56 $data=$Equipment->where($where)->order('create_time','desc')->paginate(10,false,['query'=>$param]); 57 $data=$Equipment->where($where)->order('create_time','desc')->paginate(10,false,['query'=>$param]);
57 $this->assign('data',$data); 58 $this->assign('data',$data);
@@ -108,6 +109,12 @@ class AdminEquipmentController extends AdminBaseController{ @@ -108,6 +109,12 @@ class AdminEquipmentController extends AdminBaseController{
108 } 109 }
109 } 110 }
110 111
  112 + //删除
  113 + public function delete(){
  114 +
  115 + }
  116 +
  117 +
111 //批量导入设备信息 118 //批量导入设备信息
112 public function batch_add(){ 119 public function batch_add(){
113 120