init
This commit is contained in:
93
application/index/controller/Datav.php
Normal file
93
application/index/controller/Datav.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\common\controller\Frontend;
|
||||
|
||||
class Datav extends Frontend
|
||||
{
|
||||
|
||||
protected $noNeedLogin = '*';
|
||||
protected $noNeedRight = '*';
|
||||
protected $layout = '';
|
||||
|
||||
//总览
|
||||
public function index()
|
||||
{
|
||||
return $this->view->fetch('jingmen/index');
|
||||
}
|
||||
|
||||
public function map_video()
|
||||
{
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
//监管系统大屏
|
||||
public function clm()
|
||||
{
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
//车辆码
|
||||
public function i_clm()
|
||||
{
|
||||
return $this->view->fetch('jingmen/i_clm');
|
||||
}
|
||||
|
||||
|
||||
//车辆动态
|
||||
public function cldt()
|
||||
{
|
||||
return $this->view->fetch('jingmen/cldt');
|
||||
}
|
||||
|
||||
// 运单动态
|
||||
public function yddt()
|
||||
{
|
||||
return $this->view->fetch('jingmen/yddt');
|
||||
}
|
||||
|
||||
// 报警列表
|
||||
public function bjlist()
|
||||
{
|
||||
|
||||
return $this->view->fetch('car/bjlist');
|
||||
|
||||
}
|
||||
|
||||
//车辆详情
|
||||
public function car_detail()
|
||||
{
|
||||
return $this->view->fetch('car/car_detail');
|
||||
}
|
||||
|
||||
//入园记录
|
||||
public function park_list()
|
||||
{
|
||||
return $this->view->fetch('car/park_list');
|
||||
}
|
||||
|
||||
//运单记录
|
||||
public function waybill_list()
|
||||
{
|
||||
return $this->view->fetch('car/waybill_list');
|
||||
}
|
||||
|
||||
//车辆轨迹
|
||||
public function vehicle_history()
|
||||
{
|
||||
// 支持通过车辆ID或车牌号查询
|
||||
$vehicleNoInput = input('id');
|
||||
if (is_numeric($vehicleNoInput)) {
|
||||
// 如果是数字,当作车辆ID处理
|
||||
$vehicleNo = \app\admin\model\yq\driver\Vehicle::where('id', $vehicleNoInput)->value('license');
|
||||
} else {
|
||||
// 如果是字符串,当作车牌号处理
|
||||
$vehicleNo = $vehicleNoInput;
|
||||
}
|
||||
$this->assign('vehicleNo', $vehicleNo);
|
||||
return $this->view->fetch('car/vehicle_history');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user