|
@ -123,6 +123,7 @@ |
|
|
:data="{ customerId: customerId }" |
|
|
:data="{ customerId: customerId }" |
|
|
:show-file-list="true" |
|
|
:show-file-list="true" |
|
|
:file-list="fmData.attachmentList" |
|
|
:file-list="fmData.attachmentList" |
|
|
|
|
|
:on-preview="handleImgPreview" |
|
|
:on-success="handleImgSuccess" |
|
|
:on-success="handleImgSuccess" |
|
|
:on-remove="handleImgRemove" |
|
|
:on-remove="handleImgRemove" |
|
|
:on-exceed="handleImgExceed" |
|
|
:on-exceed="handleImgExceed" |
|
@ -130,6 +131,7 @@ |
|
|
:limit="3" |
|
|
:limit="3" |
|
|
> |
|
|
> |
|
|
<i class="el-icon-plus avatar-uploader-icon"></i> |
|
|
<i class="el-icon-plus avatar-uploader-icon"></i> |
|
|
|
|
|
<span style="color: #999"> 点击上传,支持图片、word、pdf格式</span> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
@ -279,7 +281,7 @@ export default { |
|
|
["doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf"].indexOf(format) == |
|
|
["doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf"].indexOf(format) == |
|
|
-1 |
|
|
-1 |
|
|
) { |
|
|
) { |
|
|
this.$message.error("文档仅限pdf和office文件!"); |
|
|
this.$message.error("仅限图片、word和pdf文件!"); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return true; |
|
@ -310,6 +312,11 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleImgPreview(file) { |
|
|
|
|
|
console.log(file); |
|
|
|
|
|
window.open(file.url || file.response.data.url); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
handleImgRemove(file) { |
|
|
handleImgRemove(file) { |
|
|
console.log("handleImgRemove", file); |
|
|
console.log("handleImgRemove", file); |
|
|
if (file.response) { |
|
|
if (file.response) { |
|
|