海外版本天气调整获取方式,大屏不显示天气

This commit is contained in:
2025-07-22 15:13:50 +08:00
parent c5d5ed77bf
commit 2963a635cf
3 changed files with 57 additions and 7 deletions

View File

@ -89,7 +89,7 @@ export default {
sure: 'Sure', sure: 'Sure',
cancel: 'Cancel', cancel: 'Cancel',
more: 'More', more: 'More',
tem: 'Temperature', tem: 'TEMP',
xxxq: 'Message details', xxxq: 'Message details',
pleaseInput: 'Please input', pleaseInput: 'Please input',
sureRead: 'Confirm has been read', sureRead: 'Confirm has been read',

View File

@ -88,9 +88,9 @@
class="others-wrapper" class="others-wrapper"
:style="{ 'min-width': clientWidth > 800 && language === 'zh' ? '520px' : '200px' }" :style="{ 'min-width': clientWidth > 800 && language === 'zh' ? '520px' : '200px' }"
> >
<div v-if="weatherData && clientWidth > 600 && language === 'zh'" class="weather"> <div v-if="weatherData && clientWidth > 600" class="weather">
<div v-if="+stationId !== 1069" class="item"> <div v-if="+stationId !== 1069" class="item">
<img :src="weather[weatherData.skyCon]" alt> <img :src="weatheren[weatherData.code]" alt>
</div> </div>
<div <div
v-if="weatherData && +stationId !== 1069" v-if="weatherData && +stationId !== 1069"
@ -104,7 +104,7 @@
<div class="item"> <div class="item">
<div class="weather-text">{{ weatherData.skyCon }}</div> <div class="weather-text">{{ weatherData.skyCon }}</div>
<div class="weather-text"> <div class="weather-text">
{{ $t('navbar.tem') }}{{ fixNumber(weatherData.minTemperature) }}-{{ {{ $t('navbar.tem') }} {{ fixNumber(weatherData.minTemperature) }}-{{
fixNumber(weatherData.maxTemperature) fixNumber(weatherData.maxTemperature)
}} }}
</div> </div>
@ -401,6 +401,56 @@ export default {
yuzhuanqing, yuzhuanqing,
zhongxue, zhongxue,
zhongyu, zhongyu,
weatheren: {
1000: qing,
1003: duoyun,
1006: duoyun,
1009: yintian,
1030: wu,
1063: xiaoyu,
1066: xiaoxue,
1069: yujiaxue,
1072: yujiaxue,
1087: leiyu,
1114: daxue,
1117: daxue,
1135: wu,
1147: wu,
1150: xiaoyu,
1153: xiaoyu,
1168: yujiaxue,
1171: yujiaxue,
1180: xiaoyu,
1183: xiaoyu,
1186: zhongyu,
1189: zhongyu,
1192: dayu,
1195: dayu,
1198: yujiaxue,
1201: yujiaxue,
1204: leiyu,
1207: leiyu,
1210: xiaoxue,
1213: xiaoxue,
1216: zhongxue,
1219: zhongxue,
1222: daxue,
1225: daxue,
1237: yujiaxue,
1240: xiaoyu,
1243: dayu,
1246: baoyu,
1249: yujiaxue,
1252: yujiaxue,
1255: zhongxue,
1258: daxue,
1261: yujiaxue,
1264: yujiaxue,
1273: leiyu,
1276: leiyu,
1279: yujiaxue,
1282: yujiaxue
},
weather: { weather: {
: qing, : qing,
少云: duoyun, 少云: duoyun,
@ -1049,7 +1099,7 @@ export default {
height: 100%; height: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap;
// padding-right: 15px; // padding-right: 15px;
.iconfont { .iconfont {
font-size: 40px; font-size: 40px;

View File

@ -10,7 +10,7 @@
<span class="title-text">中自智慧储能管控平台</span> <span class="title-text">中自智慧储能管控平台</span>
<div class="right-title"> <div class="right-title">
<span>{{ time }}</span> <span>{{ time }}</span>
<span class="weather">{{ weatherInfo ? weatherInfo.skyCon : '' }} {{ weatherInfo? weatherInfo.minTemperature :'' }} ~ {{ weatherInfo ? weatherInfo.maxTemperature : '' }}</span> <!-- <span class="weather">{{ weatherInfo ? weatherInfo.skyCon : '' }} {{ weatherInfo? weatherInfo.minTemperature :'' }} ~ {{ weatherInfo ? weatherInfo.maxTemperature : '' }}</span> -->
</div> </div>
@ -142,7 +142,7 @@ export default {
this.$refs.RightTopRef.getData(this.deptId) this.$refs.RightTopRef.getData(this.deptId)
this.$refs.RightCenterRef.getData(this.deptId) this.$refs.RightCenterRef.getData(this.deptId)
this.$refs.RightRightRef.getData(this.deptId) this.$refs.RightRightRef.getData(this.deptId)
this.getWeatherInfo() // this.getWeatherInfo() 国外大屏不展示天气
this.$refs.MapCenterRef.getStationNum(this.deptId) this.$refs.MapCenterRef.getStationNum(this.deptId)
this.$refs.MapCenterRef.getData(this.deptId) this.$refs.MapCenterRef.getData(this.deptId)
this.$refs.MapCenterRef.getLeftData(this.deptId) this.$refs.MapCenterRef.getLeftData(this.deptId)