|
@@ -39,13 +39,17 @@ class WorkbenchLogic extends BaseLogic
|
|
|
*/
|
|
*/
|
|
|
public static function index()
|
|
public static function index()
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
return [
|
|
return [
|
|
|
// 版本信息
|
|
// 版本信息
|
|
|
'version' => self::versionInfo(),
|
|
'version' => self::versionInfo(),
|
|
|
|
|
+
|
|
|
// 今日数据
|
|
// 今日数据
|
|
|
'today' => self::today(),
|
|
'today' => self::today(),
|
|
|
|
|
+
|
|
|
// 常用功能
|
|
// 常用功能
|
|
|
'menu' => self::menu(),
|
|
'menu' => self::menu(),
|
|
|
|
|
+
|
|
|
// 近15日访客数
|
|
// 近15日访客数
|
|
|
'visitor' => self::visitor(),
|
|
'visitor' => self::visitor(),
|
|
|
// 服务支持
|
|
// 服务支持
|
|
@@ -64,6 +68,7 @@ class WorkbenchLogic extends BaseLogic
|
|
|
*/
|
|
*/
|
|
|
public static function menu(): array
|
|
public static function menu(): array
|
|
|
{
|
|
{
|
|
|
|
|
+
|
|
|
return [
|
|
return [
|
|
|
[
|
|
[
|
|
|
'name' => '管理员',
|
|
'name' => '管理员',
|
|
@@ -156,7 +161,7 @@ class WorkbenchLogic extends BaseLogic
|
|
|
'total_new_user' => 3000,
|
|
'total_new_user' => 3000,
|
|
|
|
|
|
|
|
// 订单量 (笔) 闲置中
|
|
// 订单量 (笔) 闲置中
|
|
|
- 'order_num' => AssetInfo::where(['lease_status'=>1])->count(),
|
|
|
|
|
|
|
+ 'order_num' => AssetInfo::where(['lease_status'=>1])->count(),
|
|
|
// 总订单量
|
|
// 总订单量
|
|
|
'order_sum' => 255
|
|
'order_sum' => 255
|
|
|
];
|
|
];
|
|
@@ -218,7 +223,7 @@ class WorkbenchLogic extends BaseLogic
|
|
|
foreach($search_date as $k=>$v){
|
|
foreach($search_date as $k=>$v){
|
|
|
$where = [];
|
|
$where = [];
|
|
|
$end_time = strtotime($v.' 23:59:59');
|
|
$end_time = strtotime($v.' 23:59:59');
|
|
|
- $where[] = ['lease_status','=',2];
|
|
|
|
|
|
|
+// $where[] = ['lease_status','=',2];
|
|
|
$where[] = ['create_time','<',$end_time];
|
|
$where[] = ['create_time','<',$end_time];
|
|
|
$asset_number = AssetLeaseInfo::where($where)->count();
|
|
$asset_number = AssetLeaseInfo::where($where)->count();
|
|
|
$num[$k] = $asset_number;
|
|
$num[$k] = $asset_number;
|