image.png
弹框组件(完整代码)
class="ml-10"
:limit="limitNum"
:auto-upload="false"
accept=".xlsx"
:action="UploadUrl()"
:before-upload="beforeUploadFile"
:on-change="fileChange"
:on-exceed="exceedFile"
:on-success="handleSuccess"
:on-error="handleError"
:file-list="fileList"
>
导入资产
只能上传xlsx文件,且不超过10M
取 消
确 定
export default {
data() {
return {
limitNum: 1, // 上传excell时,同时允许上传的最大数
fileList