Commit 1eba8f40 by wangzhihui

```

feat(DeliverList): 调整签收对话框图片上传大小限制

- 将图片上传大小限制从2MB调整为20MB
- 更新上传提示文案显示正确的文件大小限制
- 修改文件大小验证逻辑以支持20MB限制
```
1 parent 1662a2ee
......@@ -53,7 +53,7 @@
<div class="upload-count">{{ uploadFileList.length }}/10</div>
</div>
</el-upload>
<div class="upload-tip">请上传小于2M的图片。</div>
<div class="upload-tip">请上传小于20M的图片。</div>
</div>
</el-form-item>
</el-form>
......@@ -178,14 +178,14 @@ export default {
},
uploadRequest(param) {
const file = param.file
const isLt2M = file.size / 1024 / 1024 < 2
const isLt2M = file.size / 1024 / 1024 < 20
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
message: '上传图片大小不能超过 20MB!',
type: 'error',
customClass: 'message-Z-zinde'
})
param.onError('上传图片大小不能超过 2MB!')
param.onError('上传图片大小不能超过 20MB!')
return
}
const reader = new FileReader()
......@@ -201,7 +201,7 @@ export default {
}
},
beforeUpload(file) {
const isLt2M = file.size / 1024 / 1024 < 2
const isLt2M = file.size / 1024 / 1024 < 20
const typeList = ['image/jpeg', 'image/png', 'image/jpg']
const isType = typeList.includes(file.type)
......@@ -214,7 +214,7 @@ export default {
}
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
message: '上传图片大小不能超过 20MB!',
type: 'error',
customClass: 'message-Z-zinde'
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!