|
|
@@ -66,6 +66,7 @@ export default { |
|
|
|
{ icon: new URL('../../../assets/images/north.png', import.meta.url).href, indicatorValue: null, indicatorName: '风向' }, |
|
|
|
{ icon: new URL('../../../assets/images/atmosPressure.png', import.meta.url).href, indicatorValue: null, indicatorName: '大气压力' }, |
|
|
|
{ icon: new URL('../../../assets/images/airHumidity.png', import.meta.url).href, indicatorValue: null, indicatorName: '空气湿度' }, |
|
|
|
{ icon: new URL('../../../assets/images/rainfall.png', import.meta.url).href, indicatorValue: null, indicatorName: '降雨量' }, |
|
|
|
{ icon: new URL('../../../assets/images/airTemperature.png', import.meta.url).href, indicatorValue: null, indicatorName: '空气温度' }], |
|
|
|
innerMonitorOptions: { |
|
|
|
// width: '256px', |
|
|
@@ -90,14 +91,14 @@ export default { |
|
|
|
|
|
|
|
const initPlayer = (innerUrl, outerUrl) => { |
|
|
|
const inner = { |
|
|
|
width: '256px', |
|
|
|
height: '198px', |
|
|
|
width: '273px', |
|
|
|
height: '200px', |
|
|
|
source: innerUrl, |
|
|
|
isLive: true |
|
|
|
} |
|
|
|
const outer = { |
|
|
|
width: '256px', |
|
|
|
height: '198px', |
|
|
|
width: '273px', |
|
|
|
height: '200px', |
|
|
|
source: outerUrl, |
|
|
|
isLive: true |
|
|
|
} |
|
|
@@ -114,7 +115,7 @@ export default { |
|
|
|
getAirportInfo(data.detail.id) |
|
|
|
.then(res => { |
|
|
|
if (res.code === 0) { |
|
|
|
// console.log(res, '机场详情') |
|
|
|
console.log(res.data, '机场详情') |
|
|
|
data.mountedName = res.data.mountName |
|
|
|
const status = parseFloat(res.data.status) |
|
|
|
switch (status) { |
|
|
@@ -130,7 +131,7 @@ export default { |
|
|
|
item.indicatorValue = res.data.wspd |
|
|
|
break |
|
|
|
case 1: |
|
|
|
item.indicatorValue = res.data.wdir |
|
|
|
item.indicatorValue = res.data.wdirName |
|
|
|
break |
|
|
|
case 2: |
|
|
|
item.indicatorValue = res.data.hpa |
|
|
@@ -139,7 +140,12 @@ export default { |
|
|
|
item.indicatorValue = res.data.hum |
|
|
|
break |
|
|
|
case 4: |
|
|
|
item.indicatorValue = res.data.rainfull |
|
|
|
break |
|
|
|
case 5: |
|
|
|
item.indicatorValue = res.data.tmp |
|
|
|
break |
|
|
|
default: |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
@@ -232,8 +238,8 @@ td{ |
|
|
|
justify-content: space-around; |
|
|
|
.innerMonitor { |
|
|
|
position: relative; |
|
|
|
width: 275px; |
|
|
|
height: 198px; |
|
|
|
width: 280px; |
|
|
|
height: 200px; |
|
|
|
.monitorName { |
|
|
|
position: absolute; |
|
|
|
bottom: 8px; |