|
@@ -18,7 +18,7 @@
|
|
<div class="i-list-con h-14">
|
|
<div class="i-list-con h-14">
|
|
<div class="d-l-con">
|
|
<div class="d-l-con">
|
|
<div class="d-l-l-text w-100p">
|
|
<div class="d-l-l-text w-100p">
|
|
- <h4 class="line-h-1 w-100p" @click="showEventDialog">{{ forestInfo }}</h4>
|
|
|
|
|
|
+ <h4 class="line-h-1 w-100p">{{ forestInfo }}</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -114,7 +114,7 @@
|
|
<dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
|
|
<dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
<div class="i-list-con small-bottom-margin h-13">
|
|
<div class="i-list-con small-bottom-margin h-13">
|
|
- <el-row :gutter="20">
|
|
|
|
|
|
+ <el-row :gutter="20" v-if="todatWeather">
|
|
<el-col :span="9">
|
|
<el-col :span="9">
|
|
<div class="weather-img">
|
|
<div class="weather-img">
|
|
<img src="../assets/images/integrated/weather/yin.png">
|
|
<img src="../assets/images/integrated/weather/yin.png">
|
|
@@ -134,6 +134,13 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row :gutter="20" v-if="!todatWeather">
|
|
|
|
+ <el-col :span="24">
|
|
|
|
+ <div class="weather-img">
|
|
|
|
+ 暂无天气信息!
|
|
|
|
+ </div>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
<div class="firestate">
|
|
<div class="firestate">
|
|
<div class="state-block1"></div>
|
|
<div class="state-block1"></div>
|
|
<div class="state-block2"></div>
|
|
<div class="state-block2"></div>
|
|
@@ -377,6 +384,7 @@ export default {
|
|
//左侧部门事件数量
|
|
//左侧部门事件数量
|
|
forestFarm: [],
|
|
forestFarm: [],
|
|
//右侧天气
|
|
//右侧天气
|
|
|
|
+ todatWeather:false,
|
|
weatherinformationDirection: '',
|
|
weatherinformationDirection: '',
|
|
weatherinformationHigh: '',
|
|
weatherinformationHigh: '',
|
|
weatherinformationLevel: '',
|
|
weatherinformationLevel: '',
|
|
@@ -711,8 +719,13 @@ export default {
|
|
getBaseInfo() {
|
|
getBaseInfo() {
|
|
//左侧获取部门信息
|
|
//左侧获取部门信息
|
|
getBaseInfo().then(res => {
|
|
getBaseInfo().then(res => {
|
|
- this.forestInfo = res.data.baseinfo //基本情况
|
|
|
|
- // this.cameraList = res.data.cameraList
|
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ if(res.msg=="未找到部门信息"){
|
|
|
|
+ this.forestInfo='未找到部门信息!'
|
|
|
|
+ }else{
|
|
|
|
+ this.forestInfo = res.data.baseinfo //基本情况
|
|
|
|
+ }
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getTodayEvents(day) {
|
|
getTodayEvents(day) {
|
|
@@ -745,14 +758,23 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
//右侧获取天气信息
|
|
//右侧获取天气信息
|
|
getWeather({ day: day }).then(res => {
|
|
getWeather({ day: day }).then(res => {
|
|
- this.weatherinformationDirection = res.data.weatherinformationDirection
|
|
|
|
- this.weatherinformationHigh = res.data.weatherinformationHigh
|
|
|
|
- this.weatherinformationLevel = res.data.weatherinformationLevel
|
|
|
|
- this.weatherinformationLow = res.data.weatherinformationLow
|
|
|
|
- this.weatherinformationPower = res.data.weatherinformationPower
|
|
|
|
- this.weatherinformationTemperature = res.data.weatherinformationTemperature
|
|
|
|
- this.weatherinformationTime = res.data.weatherinformationTime
|
|
|
|
- this.weatherinformationWeather = res.data.weatherinformationWeather
|
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
+ if(res.msg=="天气未添加"){
|
|
|
|
+ this.todatWeather=false
|
|
|
|
+ }else{
|
|
|
|
+ this.todatWeather=true
|
|
|
|
+ this.weatherinformationDirection = res.data.weatherinformationDirection
|
|
|
|
+ this.weatherinformationHigh = res.data.weatherinformationHigh
|
|
|
|
+ this.weatherinformationLevel = res.data.weatherinformationLevel
|
|
|
|
+ this.weatherinformationLow = res.data.weatherinformationLow
|
|
|
|
+ this.weatherinformationPower = res.data.weatherinformationPower
|
|
|
|
+ this.weatherinformationTemperature = res.data.weatherinformationTemperature
|
|
|
|
+ this.weatherinformationTime = res.data.weatherinformationTime
|
|
|
|
+ this.weatherinformationWeather = res.data.weatherinformationWeather
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.todatWeather=false
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getEventList(day) {
|
|
getEventList(day) {
|