...
|
...
|
@@ -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();
|
|
|
}
|
...
|
...
|
|