通过校验,再上传
-
"form" :model="data" :rules="formIndustryules" > - <el-form-item label="name" prop="name">
- <el-input v-model="data.name">el-input>
- el-form-item>
- <el-form-item class="form-button-center">
-
- <el-upload
- class="uploadButton"
- :disabled="disabled"
- ref="uploadref"
- :action="actionUrl.importUrl"
- :on-error="handleError"
- :on-success="handleUpload"
- :before-upload="beforeUpload"
- :show-file-list="false"
- :data="formIndustrydata"
- :headers="{ Authorization: token }"
- :with-credentials="true"
- >
- <el-button type="primary" @click="handelUploadClick">去导入el-button>
- el-upload>
- el-form-item>
-
- },
- };