工单 告警 报事 修改
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<image
|
||||
v-for="(img, idx) in realImages"
|
||||
:key="idx"
|
||||
:src="img.imagePath"
|
||||
:src="img"
|
||||
mode="aspectFill"
|
||||
class="preview-image"
|
||||
@click="previewImage(idx)"
|
||||
@@ -139,11 +139,19 @@ export default {
|
||||
this.loadEevetInfo();
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
async loadEevetInfo() {
|
||||
let res = await this.$u.api.getWarnEventInfo({}, this.warnInfo.id);
|
||||
if (res.code == "200") {
|
||||
this.handleDesc = res.data.workReply
|
||||
this.realImages = res.data.attachments
|
||||
const imgIds= res.data.attachments.map(img =>img.ossId)
|
||||
if (!imgIds) return;
|
||||
const result = await this.$u.api.getImageUrl({}, imgIds);
|
||||
if (result.code == 200 && result.data) {
|
||||
// 提取res.data数组中每个对象的url字段
|
||||
this.realImages = result.data.map(item => item.url);
|
||||
}
|
||||
}
|
||||
this.loading = false;
|
||||
},
|
||||
|
Reference in New Issue
Block a user