|
|
|
@ -132,7 +132,7 @@
|
|
|
|
|
:on-error="uploadHandleError"
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
:data="{type:'image2'}"
|
|
|
|
|
:auto-upload="false">
|
|
|
|
|
:auto-upload="true">
|
|
|
|
|
<el-button slot="trigger" size="small" type="primary" :disabled="formData.auditStatus == 1">
|
|
|
|
|
{{ choiceFile }}
|
|
|
|
|
</el-button>
|
|
|
|
@ -242,6 +242,7 @@ export default {
|
|
|
|
|
if (this.$isNotBlank(this.formData.filePath)) {
|
|
|
|
|
if (this.$refs.upload.uploadFiles.length > 0) {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
} else {
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
}
|
|
|
|
@ -337,7 +338,7 @@ export default {
|
|
|
|
|
uploadHandleSuccess(response, file, fileList) {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.formData.filePath = response.data.name;
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("文件上传失败:" + response.message);
|
|
|
|
|
}
|
|
|
|
|