Browse Source

feat: update loading progress

wangyuan 2 years ago
parent
commit
8d49dab783
1 changed files with 4 additions and 4 deletions
  1. 4 4
      ittpc/src/views/modules/staff/query.vue

+ 4 - 4
ittpc/src/views/modules/staff/query.vue

@@ -90,7 +90,7 @@
                 :action="action"
                 :on-success="onAddSuccess"
                 :on-error="onAddError"
-                :on-preview="onAddPreview"
+                :on-progress="onAddProcess"
                 :headers="uploadHeaders"
                 :show-file-list="false"
                 :file-list="fileList">
@@ -132,7 +132,7 @@
                 :action="action"
                 :on-success="onEditSuccess"
                 :on-error="onEditError"
-                :on-preview="onEditPreview"
+                :on-progress="onEditProcess"
                 :headers="uploadHeaders"
                 :show-file-list="false"
                 :file-list="fileList">
@@ -265,7 +265,7 @@ export default {
       this.editLoading = false
       this.$message.error('头像上传失败,请重新上传!')
     },
-    onEditPreview () {
+    onEditProcess () {
       this.editLoading = true
     },
     onAddSuccess (response, file, fileList) {
@@ -276,7 +276,7 @@ export default {
       this.addLoading = false
       this.$message.error('头像上传失败,请重新上传!')
     },
-    onAddPreview (event, file, fileList) {
+    onAddProcess (event, file, fileList) {
       this.addLoading = true
     },
     handleSubmitEdit () {