huxinglu 4 лет назад
Родитель
Сommit
511889b88e
2 измененных файлов: 11 добавлений и 5 удалений
  1. +4
    -0
      src/views/main/index.vue
  2. +7
    -5
      src/views/problem/detailDialog.vue

+ 4
- 0
src/views/main/index.vue Просмотреть файл

me.addRegionMarker(item) me.addRegionMarker(item)
}) })
}); });
setInterval(function () {
me.getScreenIndex()
me.getWaterAlarmList()
},60000)
}, },
computed: { computed: {
...mapGetters(["fontSize"]) ...mapGetters(["fontSize"])

+ 7
- 5
src/views/problem/detailDialog.vue Просмотреть файл

<el-steps :active="childData.status" align-center> <el-steps :active="childData.status" align-center>
<el-step title="问题确认"> <el-step title="问题确认">
<div slot="description"> <div slot="description">
<span class="step-title" v-if="childData.creatUserName">{{childData.creatUserName}}</span>
<span class="step-title" v-if="childData.createUserName">{{childData.createUserName}}</span>
<br /> <br />
<span class="step-title" v-if="childData.createTime">{{childData.createTime}}</span> <span class="step-title" v-if="childData.createTime">{{childData.createTime}}</span>
</div> </div>
</viewer> </viewer>
</div> </div>
</div> </div>
<div v-if="childData.handlerImage" class="dialog-item">
<div v-if="childData.handlerImageList&&childData.handlerImageList.length>0" class="dialog-item">
<div>处理后图片:</div> <div>处理后图片:</div>
<div> <div>
<viewer v-if="childData.handlerImage">
<img style="width:300px;height:200px" v-lazy="childData.handlerImage" />
<viewer>
<img :key="index" v-for="(url,index) in childData.handlerImageList" style="width:300px;height:200px" v-lazy="url" />
</viewer> </viewer>
</div> </div>
</div> </div>
api api
.getDetail(this.id) .getDetail(this.id)
.then(res => { .then(res => {
console.log(res.data.status)
if (res.data.status == 3) { if (res.data.status == 3) {
res.data.status == 4;
res.data.status = 4;
} }
this.childData = res.data; this.childData = res.data;
console.log(this.childData)
this.initMap(); this.initMap();
}) })
.catch(err => { .catch(err => {

Загрузка…
Отмена
Сохранить