This commit is contained in:
bb_pan 2025-12-10 17:53:12 +08:00
parent cc5a56299f
commit a55ac003b8
1 changed files with 16 additions and 3 deletions

View File

@ -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()