From c67c8367ae83ad8304212f532994eb04e2fc215e Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 06 九月 2024 15:39:48 +0800
Subject: [PATCH] 代码合并

---
 Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
index ea6985d..7e23662 100644
--- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
+++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
@@ -22,6 +22,7 @@
     </ul>
     <Divider left="30px" text="閫夋嫨鏂囦欢鍚庝細鑷姩涓婁紶"></Divider>
     <el-upload
+      :name="fileName"
       :action="fileUrl"
       :before-upload="beforeUpload"
       :data="fileData"
@@ -51,6 +52,10 @@
     fileType: {
       type: Array,
       default: () => []
+    },
+    fileName: {
+      type: String,
+      default: () => "file"
     },
     // 瀵硅瘽妗嗗ご閮ㄥ悕绉�
     title: {
@@ -120,11 +125,10 @@
     },
     // 鏂囦欢涓婁紶鎴愬姛
     onSuccess(resbonse) {
-      console.log(resbonse);
       if (resbonse.code === 200) {
         this.$message.success("瀵煎叆鎴愬姛锛�");
         this.visible = false;
-        this.$emit('updata');
+        this.$emit('updata',resbonse);
       } else {
         this.$message.error(resbonse.msg);
       }

--
Gitblit v1.9.3