This commit is contained in:
BianLzhaoMin 2025-10-24 18:54:17 +08:00
parent 203e90f451
commit 986009a757
1 changed files with 8 additions and 2 deletions

View File

@ -76,7 +76,7 @@
</el-card> </el-card>
<el-dialog <el-dialog
width="40%" width="70%"
append-to-body append-to-body
title="银行回单上传" title="银行回单上传"
:visible.sync="uploadVisible" :visible.sync="uploadVisible"
@ -85,10 +85,12 @@
action="#" action="#"
multiple multiple
class="upload-demo" class="upload-demo"
limit="9"
:file-list="fileList" :file-list="fileList"
:auto-upload="false" :auto-upload="false"
:on-remove="handleRemove" :on-remove="handleRemove"
:on-change="handleChange" :on-change="handleChange"
:on-exceed="handleExceed"
> >
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text" <div class="el-upload__text"
@ -419,6 +421,10 @@ export default {
onHandleDownloadFile(row) { onHandleDownloadFile(row) {
window.open(row.lsUrl, '_blank') window.open(row.lsUrl, '_blank')
}, },
handleExceed(files, fileList) {
this.$modal.msgError(`上传的图片数量不能超过 9个`)
},
}, },
} }
</script> </script>
@ -524,7 +530,7 @@ export default {
.upload-demo { .upload-demo {
width: 100%; width: 100%;
height: 200px; min-height: 200px;
border: 1px dashed #d9d9d9; border: 1px dashed #d9d9d9;
display: flex; display: flex;
align-items: center; align-items: center;