From bb3a5ebcda40e43c0fc81e265c2959fece8836e7 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 22 十二月 2023 10:47:08 +0800
Subject: [PATCH] 互联网

---
 src/components/FileUpload/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue
index 1613f02..e7b6fb6 100644
--- a/src/components/FileUpload/index.vue
+++ b/src/components/FileUpload/index.vue
@@ -16,6 +16,7 @@
     >
       <!-- 涓婁紶鎸夐挳 -->
       <el-button type="primary">閫夊彇鏂囦欢</el-button>
+<!--      <el-progress :percentage="downloadProgress" />-->
     </el-upload>
     <!-- 涓婁紶鎻愮ず -->
     <div class="el-upload__tip" v-if="showTip">
@@ -45,7 +46,7 @@
 });
 
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-const emit = defineEmits(['update:modelValue','closePopup']);
+const emit = defineEmits(['update:modelValue','closePopup','openPopup']);
 const number = ref(0);
 const uploadList = ref<any[]>([]);
 //浜掕仈缃戠
@@ -62,7 +63,7 @@
 );
 
 const fileUploadRef = ref<ElUploadInstance>();
-
+const downloadProgress = ref(0);
 // watch(() => props.modelValue, async val => {
 //   console.log(val,props.modelValue);
 //     if (val) {
@@ -170,9 +171,10 @@
   }
 }
 const handleUploadProgress=(e: any) => {
-    debounce(() =>{
-      emit('closePopup','123123');
-    },1500)
+  console.log('handleUploadProgress锛�');
+  // downloadProgress.value = downloadProgress.value + 50
+  // emit('closePopup','123123');
+  // emit('openPopup','123123');
 }
 // 涓婁紶鎴愬姛鍥炶皟
 const handleUploadSuccess = (res: any, file: UploadFile) => {

--
Gitblit v1.8.0