默认监控点

new-map
ihzero 2022-11-28 15:20:53 +08:00
parent 746a09e5c1
commit 38ddfadfc9
2 changed files with 9 additions and 4 deletions

View File

@ -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 {

View File

@ -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)