|
@ -7,6 +7,7 @@ function fluoriteCamera ({ cRef, CameraKind, CameraAbility, cameraData, ashTrue, |
|
|
const form = useRef(); |
|
|
const form = useRef(); |
|
|
const [cloud, setcloud] = useState(""); //云台支持 |
|
|
const [cloud, setcloud] = useState(""); //云台支持 |
|
|
const [voice, setvoice] = useState(""); //语音支持 |
|
|
const [voice, setvoice] = useState(""); //语音支持 |
|
|
|
|
|
const [definition, setDefinition] = useState(""); //高清标清 |
|
|
const [switching, setSwitching] = useState(""); //高清切换 |
|
|
const [switching, setSwitching] = useState(""); //高清切换 |
|
|
const [memoryList, setMemoryList] = useState([ |
|
|
const [memoryList, setMemoryList] = useState([ |
|
|
{ |
|
|
{ |
|
@ -83,7 +84,7 @@ function fluoriteCamera ({ cRef, CameraKind, CameraAbility, cameraData, ashTrue, |
|
|
labelWidth="115px" |
|
|
labelWidth="115px" |
|
|
onValueChange={(values) => { |
|
|
onValueChange={(values) => { |
|
|
// let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "rtmp", "serialNo",] |
|
|
// let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "rtmp", "serialNo",] |
|
|
let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "serialNo","channelNo"] |
|
|
let setting = ["abilityId", "cloudControl", "highDefinition", "kindId", "name", "position", "serialNo", "channelNo"] |
|
|
let b = {} |
|
|
let b = {} |
|
|
setting.map((item) => { |
|
|
setting.map((item) => { |
|
|
if (values.hasOwnProperty(item)) { |
|
|
if (values.hasOwnProperty(item)) { |
|
@ -275,6 +276,92 @@ function fluoriteCamera ({ cRef, CameraKind, CameraAbility, cameraData, ashTrue, |
|
|
</Form.Select.Option> |
|
|
</Form.Select.Option> |
|
|
))} |
|
|
))} |
|
|
</Form.Select> |
|
|
</Form.Select> |
|
|
|
|
|
{/* 语音支持 */} |
|
|
|
|
|
<Form.RadioGroup |
|
|
|
|
|
// labelWidth= '76px' |
|
|
|
|
|
label="清晰度:" |
|
|
|
|
|
field="definition" |
|
|
|
|
|
type="pureCard" |
|
|
|
|
|
direction="horizontal" |
|
|
|
|
|
style={{ padding: 0, paddingTop: 1, paddingBottom: 1 }} |
|
|
|
|
|
onChange={(checked) => { |
|
|
|
|
|
if (checked.target.value == true) { |
|
|
|
|
|
setDefinition(true); |
|
|
|
|
|
} else { |
|
|
|
|
|
setDefinition(false); |
|
|
|
|
|
} |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<Form.Radio |
|
|
|
|
|
value={true} |
|
|
|
|
|
style={{ |
|
|
|
|
|
width: 58, |
|
|
|
|
|
height: 30, |
|
|
|
|
|
padding: 0, |
|
|
|
|
|
margin: 0, |
|
|
|
|
|
background: "#F9F9F9", |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
className="voice" |
|
|
|
|
|
style={{ |
|
|
|
|
|
width: 58, |
|
|
|
|
|
height: 30, |
|
|
|
|
|
textAlign: "center", |
|
|
|
|
|
lineHeight: "30px", |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
高清 |
|
|
|
|
|
</div> |
|
|
|
|
|
{definition == true ? ( |
|
|
|
|
|
<div |
|
|
|
|
|
style={{ position: "absolute", top: "-2px", right: "-1px" }} |
|
|
|
|
|
> |
|
|
|
|
|
<img |
|
|
|
|
|
src="/assets/images/background/formchoose.png" |
|
|
|
|
|
alt="1" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
) : ( |
|
|
|
|
|
"" |
|
|
|
|
|
)} |
|
|
|
|
|
</Form.Radio> |
|
|
|
|
|
<Form.Radio |
|
|
|
|
|
value={false} |
|
|
|
|
|
style={{ |
|
|
|
|
|
width: 58, |
|
|
|
|
|
height: 30, |
|
|
|
|
|
padding: 0, |
|
|
|
|
|
margin: 0, |
|
|
|
|
|
marginLeft: 18, |
|
|
|
|
|
background: "#F9F9F9", |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
className="voice" |
|
|
|
|
|
style={{ |
|
|
|
|
|
width: 58, |
|
|
|
|
|
height: 30, |
|
|
|
|
|
textAlign: "center", |
|
|
|
|
|
lineHeight: "30px", |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
标清 |
|
|
|
|
|
</div> |
|
|
|
|
|
{definition == false && definition !== "" ? ( |
|
|
|
|
|
<div |
|
|
|
|
|
style={{ position: "absolute", top: "-2px", right: "-1px" }} |
|
|
|
|
|
> |
|
|
|
|
|
<img |
|
|
|
|
|
src="/assets/images/background/formchoose.png" |
|
|
|
|
|
alt="1" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
) : ( |
|
|
|
|
|
"" |
|
|
|
|
|
)} |
|
|
|
|
|
</Form.Radio> |
|
|
|
|
|
</Form.RadioGroup> |
|
|
|
|
|
|
|
|
</Col> |
|
|
</Col> |
|
|
<Col span={12}> |
|
|
<Col span={12}> |
|
|