|
|
@@ -158,11 +158,11 @@
|
|
|
<span>图片:</span>
|
|
|
|
|
|
<el-image
|
|
|
- v-for="(item, index) in infoData.repairsImg"
|
|
|
+ v-for="(item, index) in infoData.images"
|
|
|
:key="index"
|
|
|
style="width: 100px; height: 100px; margin-right: 5px"
|
|
|
- :src="item.url"
|
|
|
- :preview-src-list="[item.url]"
|
|
|
+ :src="item"
|
|
|
+ :preview-src-list="infoData.images"
|
|
|
/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -222,6 +222,18 @@
|
|
|
<span>{{ infoData ? infoData.remark : '' }}</span>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row class="repair_row">
|
|
|
+ <el-col :span="24" class="repair_column">
|
|
|
+ <span>图片:</span>
|
|
|
+ <el-image
|
|
|
+ v-for="(item, index) in infoData.images"
|
|
|
+ :key="index"
|
|
|
+ style="width: 100px; height: 100px; margin-right: 5px"
|
|
|
+ :src="item"
|
|
|
+ :preview-src-list="infoData.images"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<!-- <el-row class="repair_row">
|
|
|
<el-col :span="24" class="repair_column">
|
|
|
<span>图片:</span>
|
|
|
@@ -421,21 +433,9 @@
|
|
|
this.infoData = res ? res : {};
|
|
|
this.repairInfoLogs = res.repairLogVOList.reverse();
|
|
|
// 处理图片
|
|
|
- // if (this.infoData && this.infoData.repairsImg) {
|
|
|
- // const repairsImg = this.infoData.repairsImg
|
|
|
- // this.infoData.repairsImg = []
|
|
|
- // repairsImg.split(',').map(item => {
|
|
|
- // imageView(item).then(res => {
|
|
|
- // this.infoData.repairsImg.push({
|
|
|
- // name: item.substring('/download/'.length),
|
|
|
- // url: res
|
|
|
- // })
|
|
|
- // })
|
|
|
-
|
|
|
- // console.log(this.infoData.repairsImg)
|
|
|
- // return
|
|
|
- // })
|
|
|
- // }
|
|
|
+ if (this.infoData && this.infoData?.images?.length) {
|
|
|
+ this.infoData.images.forEach((url) => window.location.origin + url);
|
|
|
+ }
|
|
|
} else if (row.title === '消息信息详情') {
|
|
|
this.getSbinfo(this.row.deviceId);
|
|
|
const res = await getRepairById(row.id);
|