提交 8b1a5982 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 341c6ad7
{ {
"name": "@ezijing/vue-form", "name": "@ezijing/vue-form",
"version": "2.3.13", "version": "2.3.14",
"private": false, "private": false,
"description": "基于Vue Element-UI的表单", "description": "基于Vue Element-UI的表单",
"scripts": { "scripts": {
......
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
<span class="el-upload-list__item-preview" @click="handlePreview(file)"> <span class="el-upload-list__item-preview" @click="handlePreview(file)">
<i class="el-icon-zoom-in"></i> <i class="el-icon-zoom-in"></i>
</span> </span>
<span v-if="!uploadDisabled && !file.disabled" class="el-upload-list__item-delete" @click="handleRemove(file)"> <span
v-if="!uploadDisabled && !file.disabled"
class="el-upload-list__item-delete"
@click="handleRemove(file)"
>
<i class="el-icon-delete"></i> <i class="el-icon-delete"></i>
</span> </span>
</span> </span>
...@@ -137,7 +141,12 @@ export default { ...@@ -137,7 +141,12 @@ export default {
// 上传成功 // 上传成功
handleSuccess(res) { handleSuccess(res) {
this.files = res.data.material.attachments.filter(item => { this.files = res.data.material.attachments.filter(item => {
return item.file_type_id === this.options.model || (this.options.model === 'RECOMMENDATION_LETTER' && item.file_type_id === 'RECOMMENDATION_LETTER_2') return (
item.file_type_id === this.options.model ||
(this.options.model === 'RECOMMENDATION_LETTER' &&
item.file_type_id === 'RECOMMENDATION_LETTER_2' &&
this.limit !== 1)
)
}) })
this.data[this.options.model] = this.files this.data[this.options.model] = this.files
this.$emit('uploaded', res) this.$emit('uploaded', res)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论