`${value}`.replace(/\D/g, '')} hideButtons={true} maxLength='15' field='regionCode' label='行政区区码:' initValue={nvrData.regionCode||''} placeholder='请输入行政区区码' style={{ width:149 }}/>
{nvrDetails
@@ -236,7 +235,7 @@ function SideSheets(props) {
{nvrDetails
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/skeletonScreen.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/skeletonScreen.jsx
index d41e37d..31f7bd0 100644
--- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/skeletonScreen.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/skeletonScreen.jsx
@@ -1,5 +1,7 @@
+import React from "react";
import { Table } from "@douyinfe/semi-ui";
+
export function skeletonScreen(line, columns) {
const data = () => {
let str = [];
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
index 61de67e..a9addd4 100644
--- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
@@ -169,7 +169,7 @@ const CameraHeader = (props) => {
position="topRight"
onConfirm={() => {
dispatch(
- equipmentWarehouse.delCamera({ cameraId: row.id })
+ equipmentWarehouse.delCamera(row.id )
).then(() => {
equipmentGetCamera();
});
@@ -215,8 +215,12 @@ const CameraHeader = (props) => {
},
{
title: "云台支持",
- dataIndex: "port",
+ dataIndex: "cloudControl",
key: "support",
+ render: (text, r, index) => {
+ return r.cloudControl ? "支持" : "不支持";
+ },
+
},
{
title: "内存卡信息",
diff --git a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx
index 7e68ce1..e10c379 100644
--- a/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx
+++ b/code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx
@@ -154,6 +154,7 @@ const NvrHeader = (props) => {
dataIndex: "venderId",
key: "manufactor",
render: (_, r, index) => {
+ console.log(r);
let manufactorName = data.find((item) => item.id == r.venderId);
return manufactorName ? manufactorName.name : "";
},
@@ -162,6 +163,10 @@ const NvrHeader = (props) => {
title: "添加账号",
dataIndex: "createUserId",
key: "accountNumber",
+ render: (_, r, index) => {
+ let createUserName = r.createUser;
+ return createUserName ? createUserName.name : "";
+ },
},
{
title: "通道数",
@@ -528,7 +533,10 @@ const NvrHeader = (props) => {
-
+
s)}
dataSource={equipmentWarehouseNvr.data}
diff --git a/code/VideoAccess-VCMP/web/client/src/utils/webapi.js b/code/VideoAccess-VCMP/web/client/src/utils/webapi.js
index 755780a..b104540 100644
--- a/code/VideoAccess-VCMP/web/client/src/utils/webapi.js
+++ b/code/VideoAccess-VCMP/web/client/src/utils/webapi.js
@@ -18,12 +18,15 @@ export const ApiTable = {
getCamera: "camera/project", // 获取摄像头列表
putForbidden: "camera/banned", //禁用摄像头
- delCamera:"camera", //删除摄像头
+ delCamera:"camera/{cameraId}", //删除摄像头
getCameraDetails: "camera/{cameraId}/detail", //获取摄像头详情
getCameraKind: "camera/kind", //获取摄像头种类列表
getAbility: "/camera/ability", //获取摄像头能力列表
postCameraYingshi: "camera/create/yingshi", //创建萤石摄像头
postCameraIpc: "camera/create/ipc", //创建IPC摄像头
+ getVideoStreaming:"camera/nvr_stream", //获取NVR视频流
+ postCameraNvr:"camera/create/nvr", //记录NVR摄像头
+
};
export const RouteTable = {