Browse Source

Merge branch 'dev_trial' of https://gitea.free-sun.vip/free-sun/FS-IOT into dev_trial

release_0.0.2
deartibers 2 years ago
parent
commit
36052b634c
  1. 4
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx
  2. 3
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/fluoriteCamera.jsx
  3. 26
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/ipcCamera.jsx
  4. 2
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx
  5. 12
      code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

4
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/cascadeCamera.jsx

@ -196,7 +196,7 @@ function cascadeCamera ({ dRef, dispatch, actions, cameraData, parentCamera, tes
labelWidth="115px"
onValueChange={(values) => {
setFormData(values)
let setting = ["externalDomain", "cascadeType", "sip"]
let setting = ["externalDomain", "cascadeType", "streamId"]
let b = {}
setting.map((item) => {
if (values.hasOwnProperty(item)) {
@ -242,7 +242,7 @@ function cascadeCamera ({ dRef, dispatch, actions, cameraData, parentCamera, tes
label="SIP编号:"
field="streamId"
disabled={cameraData.id ? true : false}
initValue={parentCamera || ""}
initValue={cameraData?.topSerialNo || ""}
placeholder="请选择SIP编号"
style={{ width: 307 }}
rules={[{ required: true, message: "请选择SIP编号" }]}

3
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/fluoriteCamera.jsx

@ -82,6 +82,7 @@ function fluoriteCamera ({ cRef, CameraKind, CameraAbility, cameraData, ashTrue,
labelAlign="left"
labelWidth="115px"
onValueChange={(values) => {
console.log(values);
let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "rtmp", "serialNo",]
let b = {}
setting.map((item) => {
@ -95,7 +96,7 @@ function fluoriteCamera ({ cRef, CameraKind, CameraAbility, cameraData, ashTrue,
}}
initValues={{
name: cameraData.name || "",
highDefinition: cameraData.highDefinition || "",
highDefinition: cameraData?.highDefinition || "",
memoryCard: cameraData.memoryCard || "",
position: cameraData.longitude
? `${cameraData.longitude},${cameraData.latitude}`

26
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/components/ipcCamera.jsx

@ -87,7 +87,8 @@ function ipcCamera ({
labelAlign="left"
labelWidth="115px"
onValueChange={(values) => {
let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "rtmp", "serialNo"]
console.log(values);
let setting = ["abilityId", "cloudControl", "kindId", "name", "position", "rtmp", "serialNo"]
let b = {}
setting.map((item) => {
if (values.hasOwnProperty(item)) {
@ -96,26 +97,23 @@ function ipcCamera ({
return b.false = values.hasOwnProperty(item)
}
})
console.log(b);
Object.keys(b).length == 1 ? ashTrue() : ashFalse()
}}
initValues={{
name: cameraData ? cameraData.name : "",
venderId: cameraData ? cameraData.venderId : "",
memoryCard: cameraData ? cameraData.memoryCard : "",
name: cameraData.name || "",
venderId: cameraData.venderId || "",
memoryCard: cameraData.memoryCard || "",
position: cameraData.longitude
? `${cameraData.longitude},${cameraData.latitude}`
: "",
kindId: cameraData ? cameraData.kindId : "",
abilityId: cameraData
? cameraData.cameraAbilities
? cameraData.cameraAbilities.map((item) => item.id)
: ""
: "",
cloudControl: cameraData ? cameraData.cloudControl : "",
voice: cameraData ? cameraData.voice : "",
serialNo: cameraData ? cameraData.serialNo : "",
rtmp: cameraData ? cameraData.rtmp : "",
kindId: cameraData.kindId || "",
abilityId: cameraData.cameraAbilities ? cameraData.cameraAbilities.map((item) => item.id) : "",
cloudControl: cameraData.cloudControl || "",
voice: cameraData.voice || "",
serialNo: cameraData.serialNo || "",
rtmp: cameraData.rtmp || "",
}}
getFormApi={(formApi) => (form.current = formApi)}
>

2
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/camera.jsx

@ -161,7 +161,7 @@ const CameraHeader = (props) => {
setCameraData(row);
if (row.type == "cascade") {
dispatch(equipmentWarehouse.getParentCamera({ cameraSerialNo: row.serialNo })).then((res) => {
setParentCamera(res.payload.data.sipip)
setParentCamera(res.payload.data.topSerialNo)
if (res.success) {
setCameraModal(true);
setModify(true)

12
code/VideoAccess-VCMP/web/client/src/sections/equipmentWarehouse/containers/nvr.jsx

@ -85,23 +85,22 @@ const NvrHeader = (props) => {
const columns = [
{
title: "序号",
render: (text, record, index) => {
render: (_, record, index) => {
return index + 1;
},
},
{
title: "设备名称",
dataIndex: "name",
render: (text, r, index) => {
render: (_, r, index) => {
return r.name
},
},
{
title: "SIP地址",
dataIndex: "owner",
render: (text, r, index) => {
let sipState = r.gbNvr;
return sipState ? sipState.sipip : "";
render: (_, r, index) => {
return r?.gbNvr?.sipip
},
},
{
@ -170,8 +169,7 @@ const NvrHeader = (props) => {
dataIndex: "createUserId",
key: "accountNumber",
render: (_, r, index) => {
let createUserName = r.createUser;
return createUserName ? createUserName.name : "";
return r?.createUser?.name
},
},
{

Loading…
Cancel
Save