...
|
...
|
@@ -31,8 +31,9 @@ class AdminFaultController extends AdminBaseController{ |
|
|
public function index(){
|
|
|
$data=Db::name('fault')
|
|
|
->alias('a')
|
|
|
->field('a.*,b.serial_number,b.hospital')
|
|
|
->join('equipment b','a.eq_name=b.name')
|
|
|
->order('create_time','desc')
|
|
|
->order('a.create_time','desc')
|
|
|
->paginate(10);
|
|
|
$this->assign('data',$data);
|
|
|
return $this->fetch();
|
...
|
...
|
|