|
@@ -149,14 +149,15 @@ class CameraController extends BaseController
|
|
$tableObj->column('parent_title', '矿区名称');
|
|
$tableObj->column('parent_title', '矿区名称');
|
|
$tableObj->column('title', '区域名称');
|
|
$tableObj->column('title', '区域名称');
|
|
$tableObj->column('camera_name', '摄像头名称');
|
|
$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) {
|
|
$tableObj->column('camera_source', '摄像头来源', function ($camera_source) {
|
|
return CameraEnum::CAMERA_SOURCE_EXCHANGE[$camera_source];
|
|
return CameraEnum::CAMERA_SOURCE_EXCHANGE[$camera_source];
|
|
});
|
|
});
|
|
// $tableObj->column('revert_id', '流媒体id');
|
|
// $tableObj->column('revert_id', '流媒体id');
|
|
-// $tableObj->column('camera_url', '链接');
|
|
|
|
|
|
+
|
|
$tableObj->column('is_show', '是否显示', function ($is_show, $item) {
|
|
$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>';
|
|
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>';
|
|
});
|
|
});
|