默认监控点
parent
746a09e5c1
commit
38ddfadfc9
|
|
@ -76,7 +76,7 @@
|
|||
component: 'ApiSelect',
|
||||
label: '',
|
||||
colProps,
|
||||
componentProps: ({ formModel }) => {
|
||||
componentProps: ({ formModel, formActionType }) => {
|
||||
return {
|
||||
placeholder: '监控点',
|
||||
api: async (e) => {
|
||||
|
|
@ -84,6 +84,12 @@
|
|||
const resData = await getaGriculturalDevicePoint(e)
|
||||
return formatDataByObject(resData)
|
||||
},
|
||||
onOptionsChange: (options) => {
|
||||
const { setFieldsValue } = formActionType
|
||||
setFieldsValue({
|
||||
point: options[0].value,
|
||||
})
|
||||
},
|
||||
params: {
|
||||
device_type: 1,
|
||||
agricultural_basic: formModel.base,
|
||||
|
|
@ -139,7 +145,7 @@
|
|||
}
|
||||
|
||||
onMounted(() => {
|
||||
getData()
|
||||
// getData()
|
||||
})
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@
|
|||
const { item } = props
|
||||
// const { username, passage, ip, port, rtsp_url } = item.extends
|
||||
// const url = `rtsp://${username}:${passage}@${ip}:${port}${rtsp_url}`
|
||||
const url =
|
||||
'rtsp://admin:admin12345@183.222.79.115:9007/cam/realmonitor?channel=1&subtype=0'
|
||||
const url = item.extends.rtsp_url
|
||||
const playUrl = `ws://127.0.0.1:8100/rtsp?url=${window.btoa(url)}`
|
||||
if (flvjs.isSupported()) {
|
||||
let videoElement: any = unref(videoRef)
|
||||
|
|
|
|||
Loading…
Reference in New Issue