You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
<?php
|
|
|
|
namespace app\admin\controller\pass;
|
|
|
|
use app\admin\controller\Controller;
|
|
use app\common\dm\Dm;
|
|
use think\Config;
|
|
use think\Db;
|
|
use think\paginator\driver\Bootstrap;
|
|
|
|
class Pass extends Controller
|
|
{
|
|
|
|
public function index()
|
|
{
|
|
$limit = request()->request('limit') ?: 10;
|
|
$page = request()->request('page') ?: 1;
|
|
|
|
$dm = new Dm();
|
|
$pageList = $dm->getPaginate('bt_passenger_flow',null,'*','granularity',$limit,$page);
|
|
|
|
return $this->fetch('index', [
|
|
'list' => $pageList['list'],
|
|
'pageData' => $pageList['pageData']
|
|
]);
|
|
}
|
|
|
|
public function allIndex()
|
|
{
|
|
$limit = request()->request('limit') ?: 10;
|
|
$page = request()->request('page') ?: 1;
|
|
|
|
$dm = new Dm();
|
|
$pageList = $dm->getPaginate('bt_passenger_flow_all',null,'*',null,$limit,$page);
|
|
|
|
return $this->fetch('index', [
|
|
'list' => $pageList['list'],
|
|
'pageData' => $pageList['pageData']
|
|
]);
|
|
}
|
|
|
|
public function realIndex()
|
|
{
|
|
$limit = request()->request('limit') ?: 10;
|
|
$page = request()->request('page') ?: 1;
|
|
|
|
$dm = new Dm();
|
|
$pageList = $dm->getPaginate('bt_passenger_flow_real',null,'*',null,$limit,$page);
|
|
|
|
return $this->fetch('index', [
|
|
'list' => $pageList['list'],
|
|
'pageData' => $pageList['pageData']
|
|
]);
|
|
}
|
|
}
|