|
|
@ -19,7 +19,10 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="attach-detail-img"> |
|
|
|
<div class="attach-detail-img"> |
|
|
|
<div v-show="nonsupportPreviewVisible">此文件不支持预览</div> |
|
|
|
<div v-show="nonsupportPreviewVisible">此文件不支持预览</div> |
|
|
|
<a :href="attachment.path" target="_blank"> |
|
|
|
<a |
|
|
|
|
|
|
|
:href="attachment.path" |
|
|
|
|
|
|
|
target="_blank" |
|
|
|
|
|
|
|
> |
|
|
|
<img |
|
|
|
<img |
|
|
|
:src="attachment.path" |
|
|
|
:src="attachment.path" |
|
|
|
v-show="photoPreviewVisible" |
|
|
|
v-show="photoPreviewVisible" |
|
|
@ -288,8 +291,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleAddToPhoto() { |
|
|
|
handleAddToPhoto() { |
|
|
|
this.photo['name'] = this.attachment.name |
|
|
|
this.photo['name'] = this.attachment.name |
|
|
|
this.photo['thumbnail'] = this.attachment.thumbPath |
|
|
|
this.photo['thumbnail'] = encodeURI(this.attachment.thumbPath) |
|
|
|
this.photo['url'] = this.attachment.path |
|
|
|
this.photo['url'] = encodeURI(this.attachment.path) |
|
|
|
this.photo['takeTime'] = new Date().getTime() |
|
|
|
this.photo['takeTime'] = new Date().getTime() |
|
|
|
photoApi.create(this.photo).then(response => { |
|
|
|
photoApi.create(this.photo).then(response => { |
|
|
|
this.$message.success('添加成功!') |
|
|
|
this.$message.success('添加成功!') |
|
|
|