ZhangWenQiang 4 роки тому
батько
коміт
ef4cdce38b

+ 11 - 2
src/views/ordermanager/modules/HwOrderUploadContractModal.vue

@@ -300,10 +300,19 @@
               }
               return file
             })
+            this.$message.success(`${info.file.name} 上传成功!`)
+          }else{
+            //后台返回失败
+            this.$error({
+              title: '失败',
+              content: '文件上传失败',
+            });
           }
-          this.$message.success(`${info.file.name} 上传成功!`)
         }else if (info.file.status === 'error') {
-          this.$message.error(`${info.file.name} 上传失败.`)
+          this.$error({
+            title: '失败',
+            content: '文件上传失败',
+          });
         } else if (info.file.status === 'removed') {
           this.handleDelete(info.file)
         }