From b87037236854234659cc749b2739f2cc9b910a7a Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 11 Aug 2025 15:07:16 +0800
Subject: [PATCH] feat:添加文件夹

---
 src/views/dataCenter/components/searchData.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/dataCenter/components/searchData.vue b/src/views/dataCenter/components/searchData.vue
index a0c557d..e3711b5 100644
--- a/src/views/dataCenter/components/searchData.vue
+++ b/src/views/dataCenter/components/searchData.vue
@@ -107,6 +107,8 @@
 <!--          <el-button type="primary" icon="el-icon-download" @click="allDownloadFun"-->
 <!--            >全部下载</el-button-->
 <!--          >-->
+        <el-button type="primary"  @click="handleswitchFolders" >切换文件夹</el-button>
+
           <div class="downloadBtn" @click="htsjzx === 100 && downloadFun()">
             <el-progress v-if="htsjzx !== 100" :percentage="htsjzx" :show-text="false" striped striped-flow :duration="1" />
             <div class="downloadBtnText">
@@ -136,7 +138,7 @@
 const selectedAreaCode = computed(() => store.state.user.selectedAreaCode);
 const htsjzx = computed(() => store.state.common.downloadProgress?.htsjzx || 100)
 
-const emit = defineEmits(['search', 'downFun', 'allDownFun']);
+const emit = defineEmits(['search', 'downFun', 'allDownFun','handleswitchFolders']);
 const startTime = dayjs().subtract(6, 'day').startOf('day');
 const endTime = dayjs().endOf('day');
 const timeRange = [startTime.format('YYYY-MM-DD HH:mm:ss'), endTime.format('YYYY-MM-DD HH:mm:ss')];
@@ -322,7 +324,10 @@
     ElMessage.success('取消成功')
   })
 }
-
+// 切换文件夹
+const handleswitchFolders =()=>{
+  emit('handleswitchFolders');
+}
 onMounted(() => {
   requestDockInfo();
   getDownloadStatusApi({type: 'htsjzx'}).then(res =>{
@@ -346,9 +351,12 @@
     justify-content: space-between;
 
     .search-btn {
+    display: flex;
+    align-items: center;
       margin-right: 32px;
 
       .downloadBtn{
+      margin-left: 10px;
         position: relative;
         display: flex;
         align-items: center;

--
Gitblit v1.9.3