forked from drone/command-center-dashboard

shuishen
2025-04-12 4307486b0a759e9fa2a6978d56a9d51d016e0551
Merge branch 'master' of http://139.196.74.78:10010/r/drone/command-center-dashboard
1 files modified
8 ■■■■■ changed files
src/components/CommonWeather.vue 8 ●●●●● patch | view | raw | blame | history
src/components/CommonWeather.vue
@@ -6,7 +6,7 @@
            <img src="@/assets/images/home/homeLeft/tq.png" alt="" />
            <span class="tq">{{ weather }}</span>
            <span class="tq">风速:{{ windVelocity }} </span>
            <span v-if="flylevel > 6" :class="[isFly === '建议飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
            <span v-if="flylevel >= 5" :class="[isFly === '建议飞行' ? 'qk' : isFly === '禁止飞行' ? 'redqk' : 'yellowqk']">{{
                isFly
            }}</span>
        </div>
@@ -37,7 +37,9 @@
        weather.value = res.data.data.weather
        isFly.value = res.data.data.flightAdvice
        windVelocity.value = res.data.data.windPower
        flylevel.value = res.data.data.adcode.length
        flylevel.value = res.data.data.adcode.replace(/0+$/, "").length
    })
}
@@ -57,7 +59,7 @@
<style scoped lang="scss">
.time-weather {
    margin-left: 45px;
    width: 350px;
    // width: 350px;
    font-size: 14px;
    height: 36px;
    line-height: 36px;