|
@@ -130,14 +130,14 @@ class CameraController extends BaseController
|
|
|
$tableObj->search('input', 'camera_name', '摄像头名称');
|
|
|
$tableObj->search('select', 'camera_type', '摄像头类型', CameraEnum::CAMERA_TYPE_EXCHANGE);
|
|
|
$tableObj->topActions = ['add', 'import', 'importTemplate'];
|
|
|
-// $tableObj->column('parent_title', '矿区名称');
|
|
|
-// $tableObj->column('title', '区域名称');
|
|
|
+ $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('revert_id', '流媒体id');
|
|
|
- $tableObj->column('camera_url', '链接');
|
|
|
+// $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>';
|
|
|
});
|