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

order

... ... @@ -11,6 +11,8 @@ namespace app\portal\controller;
use app\portal\model\EquipmentModel;
use cmf\controller\AdminBaseController;
use think\Db;
/**
* Class AdminFaultController
* @package app\portal\controller
... ... @@ -27,8 +29,7 @@ use cmf\controller\AdminBaseController;
class AdminFaultController extends AdminBaseController{
public function index(){
$Equipment=new EquipmentModel();
$data=$Equipment->paginate(10);
$data=Db::name('fault')->order('create_time','desc')->paginate(10);
$this->assign('data',$data);
return $this->fetch();
}
... ...
... ... @@ -40,7 +40,7 @@
</label>
</th>
<th width="50">ID</th>
<th>设备MAC地址</th>
<th>设备名称</th>
<th>设备锁编号</th>
<th>所在医院</th>
<th>故障类型</th>
... ...