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