From 0f70bb5e95342e1c88e16b4c12609cd45dd1b103 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期五, 21 五月 2021 14:27:47 +0800
Subject: [PATCH] add bhomebus api
---
src/components/subComponents/FileUpload/index.vue | 28 ++++++++--------------------
1 files changed, 8 insertions(+), 20 deletions(-)
diff --git a/src/components/subComponents/FileUpload/index.vue b/src/components/subComponents/FileUpload/index.vue
index 1512cf3..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,
@@ -81,11 +78,11 @@
},
attrs: {
type: Object,
- // default () {
- // return {
+ default () {
+ return {
- // }
- // }
+ }
+ }
}
},
data() {
@@ -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