This commit is contained in:
parent
cc5a56299f
commit
a55ac003b8
|
|
@ -573,7 +573,7 @@
|
|||
:action="upload.url2 + '?orderId=' + orderId"
|
||||
:disabled="upload.isUploading"
|
||||
:on-progress="handleFileUploadProgress"
|
||||
:on-success="handleFileSuccess"
|
||||
:on-success="handleFileSuccess2"
|
||||
:auto-upload="false"
|
||||
drag
|
||||
>
|
||||
|
|
@ -778,10 +778,8 @@ export default {
|
|||
// 文件上传成功处理
|
||||
handleFileSuccess(response, file, fileList) {
|
||||
this.upload.open = false
|
||||
this.upload.open2 = false
|
||||
this.upload.isUploading = false
|
||||
this.$refs.upload.clearFiles()
|
||||
this.$refs.upload2.clearFiles()
|
||||
this.$alert(
|
||||
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
||||
response.msg +
|
||||
|
|
@ -800,6 +798,21 @@ export default {
|
|||
this.getList()
|
||||
}, 200)
|
||||
},
|
||||
handleFileSuccess2(response, file, fileList) {
|
||||
this.upload.open2 = false
|
||||
this.upload.isUploading = false
|
||||
this.$refs.upload2.clearFiles()
|
||||
this.$alert(
|
||||
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
||||
response.msg +
|
||||
'</div>',
|
||||
'导入结果',
|
||||
{ dangerouslyUseHTMLString: true },
|
||||
)
|
||||
setTimeout(() => {
|
||||
this.getList()
|
||||
}, 200)
|
||||
},
|
||||
// 提交上传文件
|
||||
submitFileForm() {
|
||||
this.$refs.upload.submit()
|
||||
|
|
|
|||
Loading…
Reference in New Issue