|
@@ -113,7 +113,7 @@
|
|
|
<a-button type="link" @click="handleRepair(item)">
|
|
|
报修
|
|
|
</a-button>
|
|
|
- <a-button type="link" @click="uploadImg(item,i)">{{ item.images.length>0?'查看图片':'上传图片' }}</a-button>
|
|
|
+ <a-button type="link" @click="uploadImg(item,i)">{{ item.images&&item.images.length?'查看图片':'上传图片' }}</a-button>
|
|
|
|
|
|
<a-modal v-model="uploadVisible" title="上传图片" :footer="null" @cancel="uploadVisible = false">
|
|
|
<a-upload
|
|
@@ -304,8 +304,8 @@ export default {
|
|
|
val.fillValue = val.fillValue ? val.fillValue : ''
|
|
|
return val
|
|
|
})
|
|
|
- item.images = item.content.filter(item => item.type === 11)
|
|
|
- item.content = item.content.filter(item => item.type !== 11)
|
|
|
+ item.images = item.content.filter(item => item.fileFormat)
|
|
|
+ item.content = item.content.filter(item => !item.fileFormat)
|
|
|
return item
|
|
|
})
|
|
|
console.log(this.ListForm)
|