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