|
@ -2,6 +2,15 @@ |
|
|
<div> |
|
|
<div> |
|
|
<div v-if="projectItemData.type=='UPLOAD'"> |
|
|
<div v-if="projectItemData.type=='UPLOAD'"> |
|
|
<div v-if="getItemValue['files']"> |
|
|
<div v-if="getItemValue['files']"> |
|
|
|
|
|
<!-- 图片文件渲染图片栏 --> |
|
|
|
|
|
<template v-if="getItemValue['type'] == 'image'"> |
|
|
|
|
|
<span v-for="file in getItemValue['files']" :key="JSON.stringify(file)"> |
|
|
|
|
|
<el-image class="item-thumbnail-image-preview" :src="file.url" :preview-src-list="getItemValue['files'].map( img => img.url)" lazy /> |
|
|
|
|
|
</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 其他文件渲染文件下载链接 --> |
|
|
|
|
|
<template v-else> |
|
|
<el-link |
|
|
<el-link |
|
|
v-for="file in getItemValue['files']" |
|
|
v-for="file in getItemValue['files']" |
|
|
|
|
|
|
|
@ -11,11 +20,15 @@ |
|
|
> |
|
|
> |
|
|
<span> {{ file.fileName }}</span> |
|
|
<span> {{ file.fileName }}</span> |
|
|
</el-link> |
|
|
</el-link> |
|
|
|
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
<span v-else>/</span> |
|
|
<span v-else>/</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div v-else-if="projectItemData.type=='SIGN_PAD'"> |
|
|
|
|
|
<el-image class="item-thumbnail-image-preview" :src="getItemValue || ''" :preview-src-list="[getItemValue || '']" lazy /> |
|
|
|
|
|
</div> |
|
|
<div v-else> |
|
|
<div v-else> |
|
|
{{ getItemValue ? getItemValue : '/' }} |
|
|
{{ getItemValue || '/' }} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -43,6 +56,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
processData() { |
|
|
processData() { |
|
|
|
|
|
console.log('数据', this.projectItemData) |
|
|
return this.resultData ? this.resultData['processData'] : {} |
|
|
return this.resultData ? this.resultData['processData'] : {} |
|
|
}, |
|
|
}, |
|
|
getItemValue() { |
|
|
getItemValue() { |
|
@ -53,3 +67,14 @@ export default { |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
|
.item-thumbnail-image-preview { |
|
|
|
|
|
width: 106px; |
|
|
|
|
|
height: 106px; |
|
|
|
|
|
margin-right: 15px; |
|
|
|
|
|
margin-bottom: 15px; |
|
|
|
|
|
border: 1px solid #EBEEF5; |
|
|
|
|
|
background: #0001; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|