正在显示
3 个修改的文件
包含
27 行增加
和
3 行删除
@@ -10,6 +10,7 @@ namespace app\portal\controller; | @@ -10,6 +10,7 @@ namespace app\portal\controller; | ||
10 | 10 | ||
11 | 11 | ||
12 | use app\portal\model\EquipmentModel; | 12 | use app\portal\model\EquipmentModel; |
13 | +use app\portal\model\OrderModel; | ||
13 | use cmf\controller\AdminBaseController; | 14 | use cmf\controller\AdminBaseController; |
14 | /** | 15 | /** |
15 | * Class AdminAllStatisticsController | 16 | * Class AdminAllStatisticsController |
@@ -27,8 +28,8 @@ use cmf\controller\AdminBaseController; | @@ -27,8 +28,8 @@ use cmf\controller\AdminBaseController; | ||
27 | class AdminAllStatisticsController extends AdminBaseController{ | 28 | class AdminAllStatisticsController extends AdminBaseController{ |
28 | 29 | ||
29 | public function index(){ | 30 | public function index(){ |
30 | - $Equipment=new EquipmentModel(); | ||
31 | - $data=$Equipment->paginate(10); | 31 | + $Order=new OrderModel(); |
32 | + $data=$Order->paginate(10); | ||
32 | $this->assign('data',$data); | 33 | $this->assign('data',$data); |
33 | return $this->fetch(); | 34 | return $this->fetch(); |
34 | } | 35 | } |
@@ -36,7 +36,6 @@ class AdminEquipmentController extends AdminBaseController{ | @@ -36,7 +36,6 @@ class AdminEquipmentController extends AdminBaseController{ | ||
36 | 36 | ||
37 | public function index(){ | 37 | public function index(){ |
38 | $param=$this->request->param(); | 38 | $param=$this->request->param(); |
39 | - dump($param); | ||
40 | $where=array(); | 39 | $where=array(); |
41 | if (!empty($param['name'])){ | 40 | if (!empty($param['name'])){ |
42 | $where['name']=['like','%'.$param['name'].'%']; | 41 | $where['name']=['like','%'.$param['name'].'%']; |
@@ -84,6 +83,14 @@ class AdminEquipmentController extends AdminBaseController{ | @@ -84,6 +83,14 @@ class AdminEquipmentController extends AdminBaseController{ | ||
84 | } | 83 | } |
85 | } | 84 | } |
86 | 85 | ||
86 | + public function edit(){ | ||
87 | + return $this->fetch(); | ||
88 | + } | ||
89 | + | ||
90 | + public function editPost(){ | ||
91 | + | ||
92 | + } | ||
93 | + | ||
87 | //批量导入设备信息 | 94 | //批量导入设备信息 |
88 | public function batch_add(){ | 95 | public function batch_add(){ |
89 | 96 |
-
请 注册 或 登录 后发表评论