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 |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/views/dataCenter/components/searchData.vue b/src/views/dataCenter/components/searchData.vue
index 4ed3fa5..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', '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: '', //文件名称
@@ -333,6 +337,7 @@
   searchForm.wayLineJobId=''
   handleNodeClick({ id: userAreaCode.value });
   handleSearch();
+   emit('Reset', searchForm);
 };
 // 下载
 const downloadFun = () => {
@@ -348,9 +353,16 @@
     ElMessage.success('取消成功')
   })
 }
+const handleswitchList =()=>{
+  emit('handleswitchList'); 
+}
 // 切换文件夹
 const handleswitchFolders =()=>{
   emit('handleswitchFolders'); 
+}
+// 收藏列表
+const handleStartList =()=>{
+  emit('handleStartList');
 }
 // 返回按钮
 const handleBack = ()=>{
@@ -365,7 +377,9 @@
   })
 });
 
-
+defineExpose({
+  handleReset,
+});
 </script>
 
 <style scoped lang="scss">

--
Gitblit v1.9.3