From 02409bfbe15f22fc3b5dccadabfd860a660a49d9 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 11 Oct 2025 10:37:14 +0800
Subject: [PATCH] feat: 名称修改

---
 src/views/dataCenter/components/searchData.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/views/dataCenter/components/searchData.vue b/src/views/dataCenter/components/searchData.vue
index 1445f58..26ffc3e 100644
--- a/src/views/dataCenter/components/searchData.vue
+++ b/src/views/dataCenter/components/searchData.vue
@@ -112,7 +112,11 @@
 <!--          <el-button type="primary" icon="el-icon-download" @click="allDownloadFun"-->
 <!--            >全部下载</el-button-->
 <!--          >-->
-        <el-button v-if="!viewDetailsDisabled" type="primary" plain  @click="handleswitchFolders" ><el-icon><FolderOpened /></el-icon></el-button>
+        
+        <!-- <el-button v-if="!viewDetailsDisabled" type="primary" plain  @click="handleswitchFolders" ><el-icon><FolderOpened /></el-icon></el-button> -->
+        <el-button :type="!switchStar && !switchFolders ? 'primary':'default'" @click="handleswitchList">列表</el-button>
+        <el-button :type="switchStar && !switchFolders ? 'primary':'default'" @click="handleStartList">我的收藏</el-button>
+        <el-button :type="!switchStar && switchFolders ? 'primary':'default'" @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">
@@ -142,13 +146,13 @@
 const userAreaCode = computed(() => store.getters.userInfo.detail.areaCode);
 const selectedAreaCode = computed(() => store.state.user.selectedAreaCode);
 const htsjzx = computed(() => store.state.common.downloadProgress?.htsjzx || 100)
-const emit = defineEmits(['search', 'Reset','downFun', 'allDownFun','handleswitchFolders','handleBack']);
+const emit = defineEmits(['search', 'Reset','downFun', 'allDownFun','handleswitchFolders','handleBack', 'handleStartList']);
 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')];
 const dateRange = ref(timeRange);
 const timeFormat = 'YYYY-MM-DD HH:mm:ss';
-const props = defineProps(['searchjobId','switchFolders','viewDetails'])
+const props = defineProps(['searchjobId','switchFolders', 'switchStar','viewDetails'])
 const searchForm = reactive({
   jobName: '', //任务名称
   name: '', //文件名称
@@ -349,10 +353,17 @@
     ElMessage.success('取消成功')
   })
 }
+const handleswitchList =()=>{
+  emit('handleswitchList'); 
+}
 // 切换文件夹
 const handleswitchFolders =()=>{
   emit('handleswitchFolders'); 
 }
+// 收藏列表
+const handleStartList =()=>{
+  emit('handleStartList');
+}
 // 返回按钮
 const handleBack = ()=>{
   emit('handleBack'); 

--
Gitblit v1.9.3