Hwt 2 年 前
コミット
4e2d606d11
1 ファイル変更10 行追加4 行削除
  1. 10 4
      operationSupport/src/components/common/uploadListImg.vue

+ 10 - 4
operationSupport/src/components/common/uploadListImg.vue

@@ -40,6 +40,7 @@
       :before-upload="beforeAvatarUpload"
       :auto-upload="true"
       :name="name"
+      multiple
     >
     </el-upload>
   </div>
@@ -81,12 +82,17 @@ export default {
     }
   },
   methods: {
-    uploadsuccess (response, file, fileList) {
-      this.$refs.upload.clearFiles();
-      if (0 === response.status) {
-        this.uploadArr.push(response.data);
+    uploadsuccess (file, fileList) {
+      if (file.status == 0) {
+        this.uploadArr.push(fileList.response.data);
       }
     },
+    // uploadsuccess (response, file, fileList) {
+    //   this.$refs.upload.clearFiles();
+    //   if (0 === response.status) {
+    //     // this.uploadArr.push(response.data);
+    //   }
+    // },
     beforeAvatarUpload (file) {
       let isType = true;
       if (this.type == 'video') {