一、html内容
<el-upload
:auto-upload="true"
class="teacher_el_upload"
:action="upurl"
:headers="upheaders"
:limit="limitCountImg"
list-type="picture-card"
:on-preview="handlePreview"
:on-success="handleSuccess"
:on-change="dealImgChange"
:on-error="handleError"
:before-upload="beforeAvatarUpload"
:file-list="fileList"
:class="{ disabled: uploadDisabled, uoloadSty: showBtnDealImg, disUoloadSty: noneBtnImg }"
ref="upload"
>
<!-- 上传按钮 -->
<i slot="default" class="el-icon-plus"></i>
<span class="el-upload__text">点击上传</span>
<div slot="file" slot-scope="{file}"