|
|
@ -13,11 +13,11 @@ import { |
|
|
|
Popconfirm, |
|
|
|
Row, |
|
|
|
} from "@douyinfe/semi-ui"; |
|
|
|
import { SimpleFileDownButton, VideoPlayModal,SkeletonScreen } from "$components"; |
|
|
|
import { SimpleFileDownButton, VideoPlayModal, SkeletonScreen } from "$components"; |
|
|
|
import "../style.less"; |
|
|
|
import CameraModal from "../components/cameraModal"; |
|
|
|
import RemarksModal from "../components/remarksModal"; |
|
|
|
import {Setup} from "$components"; |
|
|
|
import { Setup } from "$components"; |
|
|
|
import SideSheets from "../components/sideSheet"; |
|
|
|
import { skeletonScreen } from "../../../components/skeletonScreen"; |
|
|
|
import { accessType } from "./nvr"; |
|
|
@ -25,7 +25,7 @@ import { accessType } from "./nvr"; |
|
|
|
const CameraHeader = (props) => { |
|
|
|
const { dispatch, actions, user, loading, equipmentWarehouseCamera } = props; |
|
|
|
const [cameraModal, setCameraModal] = useState(false); |
|
|
|
const [remarksModal,setRemarksModal] = useState(false); |
|
|
|
const [remarksModal, setRemarksModal] = useState(false); |
|
|
|
const [videoPlay, setVideoPlay] = useState(false); |
|
|
|
const [modalName, setModalName] = useState(""); |
|
|
|
const [setup, setSetup] = useState(false); |
|
|
@ -53,8 +53,8 @@ const CameraHeader = (props) => { |
|
|
|
const CAMERAS = "cameras"; |
|
|
|
const tableList = [//表格属性 |
|
|
|
{ |
|
|
|
title:'设备信息', |
|
|
|
list:[ |
|
|
|
title: '设备信息', |
|
|
|
list: [ |
|
|
|
{ name: "设备厂家", value: "manufactor" }, |
|
|
|
{ name: "接入类型", value: "type" }, |
|
|
|
{ name: "设备状态", value: "state" }, |
|
|
@ -65,8 +65,8 @@ const CameraHeader = (props) => { |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'项目信息', |
|
|
|
list:[ |
|
|
|
title: '项目信息', |
|
|
|
list: [ |
|
|
|
{ name: "项目名称", value: "name" }, |
|
|
|
{ name: "pcode", value: "pcode" }, |
|
|
|
{ name: "结构物", value: "structure" }, |
|
|
@ -217,16 +217,16 @@ const CameraHeader = (props) => { |
|
|
|
<Button |
|
|
|
theme="borderless" |
|
|
|
onClick={() => { |
|
|
|
let data = row?.cameraRemarks.map((item)=>item.remark) |
|
|
|
let data = row?.cameraRemarks.map((item) => item.remark) |
|
|
|
if (row.type == "yingshi") { |
|
|
|
setVideoObj({ |
|
|
|
type: row.type, |
|
|
|
serialNo: row.serialNo, |
|
|
|
yingshiToken: row.secretYingshi?.token, |
|
|
|
playUrlSd: row.gbCamera?.playUrl?.liveUrl?.sd?.ezopen, |
|
|
|
playUrlHd: row.gbCamera?.playUrl?.liveUrl?.hd?.ezopen, |
|
|
|
replayUrl:row.gbCamera?.playUrl?.replayUrl?.cloud, |
|
|
|
content:data, |
|
|
|
playUrlSd: `ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || '1'}.live`, |
|
|
|
playUrlHd:`ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || '1'}.hd.live`, |
|
|
|
replayUrl:`ezopen://open.ys7.com/${row.serialNo}/${row.channelNo || '1'}.hd.local.rec`, |
|
|
|
content: data, |
|
|
|
}) |
|
|
|
} else { |
|
|
|
setVideoObj({ |
|
|
@ -235,7 +235,7 @@ const CameraHeader = (props) => { |
|
|
|
serialNo: row.serialNo, |
|
|
|
topSerialNo: row.topSerialNo, |
|
|
|
playUrlSd: row.gbCamera?.playUrl?.liveUrl?.sd["WS-RAW"], |
|
|
|
content:data, |
|
|
|
content: data, |
|
|
|
}) |
|
|
|
} |
|
|
|
setVideoPlay(true) |
|
|
@ -308,7 +308,7 @@ const CameraHeader = (props) => { |
|
|
|
<Button |
|
|
|
theme="borderless" |
|
|
|
onClick={() => { |
|
|
|
setCameraRemarks(row.cameraRemarks||[]) |
|
|
|
setCameraRemarks(row.cameraRemarks || []) |
|
|
|
setRowId(row.id); |
|
|
|
setRemarksModal(true) |
|
|
|
}} |
|
|
@ -858,17 +858,17 @@ const CameraHeader = (props) => { |
|
|
|
: "" |
|
|
|
} |
|
|
|
{ |
|
|
|
remarksModal? |
|
|
|
<RemarksModal |
|
|
|
visible={true} |
|
|
|
rowId={rowId} |
|
|
|
cameraRemarks={cameraRemarks} |
|
|
|
close={() => { |
|
|
|
setRemarksModal(false); |
|
|
|
setRowId(); |
|
|
|
equipmentGetCamera(); |
|
|
|
}} > |
|
|
|
</RemarksModal>:'' |
|
|
|
remarksModal ? |
|
|
|
<RemarksModal |
|
|
|
visible={true} |
|
|
|
rowId={rowId} |
|
|
|
cameraRemarks={cameraRemarks} |
|
|
|
close={() => { |
|
|
|
setRemarksModal(false); |
|
|
|
setRowId(); |
|
|
|
equipmentGetCamera(); |
|
|
|
}} > |
|
|
|
</RemarksModal> : '' |
|
|
|
} |
|
|
|
</> |
|
|
|
); |
|
|
|