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

order

@@ -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
  1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: ruidiudiu
  5 + * Date: 2018/11/26
  6 + * Time: 10:12
  7 + */
  8 +
  9 +namespace app\portal\model;
  10 +
  11 +
  12 +use think\Model;
  13 +
  14 +class OrderModel extends Model{
  15 +
  16 +}