|
|
|
|
|
|
|
|
const parm = res.data.wth?.parm || [] |
|
|
const parm = res.data.wth?.parm || [] |
|
|
data.weatherList = parm.length !== 0 ? [ |
|
|
data.weatherList = parm.length !== 0 ? [ |
|
|
// { label: '天气', value: '' }, |
|
|
// { label: '天气', value: '' }, |
|
|
{ label: '气温', value: (parm.tmp / 10) + '℃' }, |
|
|
|
|
|
{ label: '湿度', value: (parm.hum / 10) + 'RH' }, |
|
|
|
|
|
{ label: '风度', value: parm.wspd + 'm/s' }, |
|
|
|
|
|
{ label: '风向', value: parm.wdir + ' °' } |
|
|
|
|
|
|
|
|
{ label: '气温', value: (parm.tmp / 10).toFixed(1) + ' ℃' }, |
|
|
|
|
|
{ label: '湿度', value: (parm.hum / 10).toFixed(1) + ' RH' }, |
|
|
|
|
|
{ label: '风度', value: (parm.wspd / 10).toFixed(1) + ' m/s' }, |
|
|
|
|
|
{ label: '风向', value: (parm.wdir).toFixed(1) + ' °' } |
|
|
] : [] |
|
|
] : [] |
|
|
videoRef.value.disposeVideo() |
|
|
videoRef.value.disposeVideo() |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
|
|
|
|
|
|
const options = { |
|
|
const options = { |
|
|
width: '100%', |
|
|
width: '100%', |
|
|
height: '100%', |
|
|
height: '100%', |
|
|
source: row?.externalMonitorUrl, |
|
|
|
|
|
|
|
|
source: row?.flvExternalMonitorUrl, |
|
|
isLive: true |
|
|
isLive: true |
|
|
} |
|
|
} |
|
|
videoRef.value?.init(options) |
|
|
videoRef.value?.init(options) |