ソースを参照

视频列表字段修改

任敬轩 3 年 前
コミット
8d91e956c2

+ 1 - 1
Modules/Camera/Enum/CameraEnum.php

@@ -148,5 +148,5 @@ class CameraEnum
     const TDWY_TOKEN_CACHE = 'tdwy_token';
 
     //后台摄像头列表每页显示条数
-    const PAGE_SIZE = 7;
+    const PAGE_SIZE = 8;
 }

+ 5 - 4
Modules/Camera/Http/Controllers/CameraController.php

@@ -149,14 +149,15 @@ class CameraController extends BaseController
         $tableObj->column('parent_title', '矿区名称');
         $tableObj->column('title', '区域名称');
         $tableObj->column('camera_name', '摄像头名称');
-        $tableObj->column('camera_type', '摄像头类型', function ($camera_type) {
-            return CameraEnum::CAMERA_TYPE_EXCHANGE[$camera_type];
-        });
+//        $tableObj->column('camera_type', '摄像头类型', function ($camera_type) {
+//            return CameraEnum::CAMERA_TYPE_EXCHANGE[$camera_type];
+//        });
+        $tableObj->column('camera_url', '链接');
         $tableObj->column('camera_source', '摄像头来源', function ($camera_source) {
             return CameraEnum::CAMERA_SOURCE_EXCHANGE[$camera_source];
         });
 //        $tableObj->column('revert_id', '流媒体id');
-//        $tableObj->column('camera_url', '链接');
+
         $tableObj->column('is_show', '是否显示', function ($is_show, $item) {
             return '<span class="layui-form"><input type="checkbox" name="is_show" data-href="camera/list/edit?type=show&id=' . $item['id'] . '" lay-skin="switch" lay-text="是|否" ' . ($is_show == CameraEnum::IS_SHOW_YES ? 'checked' : '') . '></span>';
         });

ファイルの差分が大きいため隠しています
+ 4 - 4
Modules/Camera/Resources/views/camera_add.blade.php


ファイルの差分が大きいため隠しています
+ 6 - 6
Modules/Camera/Resources/views/camera_list.blade.php


+ 1 - 1
Modules/Camera/Services/CameraServices.php

@@ -853,7 +853,7 @@ class CameraServices
                     if ($picture_exists) {
                         $cms = new CameraServices();
 
-                        //上传图片到oss并更新数据库
+                        //上传图片到oss并更新数据库 
                         $picture_path = $cms->uploadOssFile($file_name, public_path() . '/' . CameraEnum::M3U8_FILE_PATH . $path  . '/');
 
                         CameraList::where('id', $camera_id)->update(['cover_picture' => $picture_path]);

ファイルの差分が大きいため隠しています
+ 4 - 4
public/static/js/fuelux.tree.min.js