mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-12 19:29:52 +08:00
Merge branch 'dev-new' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev-new
This commit is contained in:
@@ -173,8 +173,8 @@
|
|||||||
:action="uploadBluetooth.url"
|
:action="uploadBluetooth.url"
|
||||||
:headers="uploadBluetooth.headers"
|
:headers="uploadBluetooth.headers"
|
||||||
:file-list="uploadBluetooth.fileList"
|
:file-list="uploadBluetooth.fileList"
|
||||||
:on-progress="handleFileUploadProgress"
|
:on-progress="handleFileUploadProgressBluetooth"
|
||||||
:on-success="handleFileSuccess"
|
:on-success="handleFileSuccessBluetooth"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
>
|
>
|
||||||
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
size="small"
|
size="small"
|
||||||
type="success"
|
type="success"
|
||||||
:loading="upload.isUploading"
|
:loading="uploadBluetooth.isUploading"
|
||||||
@click="submitUploadBluetooth"
|
@click="submitUploadBluetooth"
|
||||||
>上传到服务器</el-button
|
>上传到服务器</el-button
|
||||||
>
|
>
|
||||||
@@ -392,7 +392,17 @@ export default {
|
|||||||
handleFileSuccess(response, file, fileList) {
|
handleFileSuccess(response, file, fileList) {
|
||||||
this.upload.isUploading = false;
|
this.upload.isUploading = false;
|
||||||
this.form.filePath = response.fileName;
|
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);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user