From e1467b19874294a9a36dcfb06083081f9d4b504d Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期四, 05 十一月 2020 11:32:16 +0800
Subject: [PATCH] 上传组件回复至三方原始包,数据栈根据文件夹动态传入资源类型;联动刷新底图修复

---
 src/components/subComponents/FileUpload/index.vue |   20 ++++----------------
 1 files changed, 4 insertions(+), 16 deletions(-)

diff --git a/src/components/subComponents/FileUpload/index.vue b/src/components/subComponents/FileUpload/index.vue
index 35d8293..796d99f 100644
--- a/src/components/subComponents/FileUpload/index.vue
+++ b/src/components/subComponents/FileUpload/index.vue
@@ -5,7 +5,6 @@
       ref="uploader"
       :options="options"
       :file-status-text="statusText"
-      :attrs="attrs"
       class="uploader-single"
       @file-added="onFileAdded"
       @complete="onComplete"
@@ -24,7 +23,6 @@
     <uploader
       v-else
       ref="uploader"
-      :attrs="attrs"
       :options="options"
       :file-status-text="statusText"
       class="uploader-example"
@@ -33,7 +31,7 @@
       @complete="onComplete"
       @close="closeHandle"
     >
-      <uploader-btn ref="button" :attrs="attrs">
+      <uploader-btn ref="button" :sourceType="sourceType">
         <i class="el-icon-upload2" style="font-size:18px; color:#0088ff"></i>
         涓婁紶
       </uploader-btn>
@@ -55,9 +53,8 @@
     UploaderList
   },
   props: {
-    acptTypes: {
-      type: String,
-      default: ''
+    sourceType: {
+      type: Number,
     },
     tip: {
       type: Boolean,
@@ -162,15 +159,6 @@
       }
     },
     computeMD5Success(md5, file) {
-      // 灏嗚嚜瀹氫箟鍙傛暟鐩存帴鍔犺浇uploader瀹炰緥鐨刼pts涓�
-      // if (this.$route.path.indexOf("VideoManage") >= 0) {
-      //   Object.assign(this.uploader.opts, {
-      //     query: {
-      //       stackId: this.DataStackPool.selectedDir.id
-      //       // ...this.params,
-      //     }
-      //   })
-      // }
       //灏嗚嚜瀹氫箟鍙傛暟鐩存帴鍔犺浇uploader瀹炰緥鐨刼pts涓�
       if (location.href.indexOf("dataStack") >= 0) {
         Object.assign(this.uploader.opts, {
@@ -196,7 +184,7 @@
   },
   mounted() {
     this.$nextTick(() => {
-      console.log(this.acptTypes)
+      console.log(this.sourceType)
       window.uploader = this.$refs.uploader.uploader
     })
   }

--
Gitblit v1.8.0