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

order

... ... @@ -10,6 +10,7 @@ namespace app\portal\controller;
use app\portal\model\EquipmentModel;
use app\portal\model\OrderModel;
use cmf\controller\AdminBaseController;
/**
* Class AdminAllStatisticsController
... ... @@ -27,8 +28,8 @@ use cmf\controller\AdminBaseController;
class AdminAllStatisticsController extends AdminBaseController{
public function index(){
$Equipment=new EquipmentModel();
$data=$Equipment->paginate(10);
$Order=new OrderModel();
$data=$Order->paginate(10);
$this->assign('data',$data);
return $this->fetch();
}
... ...
... ... @@ -36,7 +36,6 @@ class AdminEquipmentController extends AdminBaseController{
public function index(){
$param=$this->request->param();
dump($param);
$where=array();
if (!empty($param['name'])){
$where['name']=['like','%'.$param['name'].'%'];
... ... @@ -84,6 +83,14 @@ class AdminEquipmentController extends AdminBaseController{
}
}
public function edit(){
return $this->fetch();
}
public function editPost(){
}
//批量导入设备信息
public function batch_add(){
... ...
<?php
/**
* Created by PhpStorm.
* User: ruidiudiu
* Date: 2018/11/26
* Time: 10:12
*/
namespace app\portal\model;
use think\Model;
class OrderModel extends Model{
}
\ No newline at end of file
... ...