Files
MeSHard b22d09bd39 init
2025-12-01 11:19:23 +08:00

94 lines
1.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
}
}