moonsflyer 9 months ago
parent
commit
617aa91045
1 changed files with 7 additions and 2 deletions
  1. 7 2
      app/adminapi/logic/WorkbenchLogic.php

+ 7 - 2
app/adminapi/logic/WorkbenchLogic.php

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