diff --git a/jsowell-ui/src/views/pile/firmware/index.vue b/jsowell-ui/src/views/pile/firmware/index.vue index f0d302e12..ead274d9c 100644 --- a/jsowell-ui/src/views/pile/firmware/index.vue +++ b/jsowell-ui/src/views/pile/firmware/index.vue @@ -173,8 +173,8 @@ :action="uploadBluetooth.url" :headers="uploadBluetooth.headers" :file-list="uploadBluetooth.fileList" - :on-progress="handleFileUploadProgress" - :on-success="handleFileSuccess" + :on-progress="handleFileUploadProgressBluetooth" + :on-success="handleFileSuccessBluetooth" :auto-upload="false" > 选取文件 @@ -182,7 +182,7 @@ style="margin-left: 10px" size="small" type="success" - :loading="upload.isUploading" + :loading="uploadBluetooth.isUploading" @click="submitUploadBluetooth" >上传到服务器 @@ -392,7 +392,17 @@ export default { handleFileSuccess(response, file, fileList) { this.upload.isUploading = false; this.form.filePath = response.fileName; - this.msgSuccess(response.msg); + this.$modal.msgSuccess(response.msg); + }, + // 文件上传中处理 + handleFileUploadProgressBluetooth(event, file, fileList) { + this.uploadBluetooth.isUploading = true; + }, + // 文件上传成功处理 + handleFileSuccessBluetooth(response, file, fileList) { + this.uploadBluetooth.isUploading = false; + this.form.filePath = response.fileName; + this.$modal.msgSuccess(response.msg); }, }, };