From 72253913e5cd11a05cbd11eb3f76e9989bd0d760 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 17 Sep 2025 15:56:56 +0800
Subject: [PATCH] feat:更新数据中心
---
src/views/dataCenter/components/searchData.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/dataCenter/components/searchData.vue b/src/views/dataCenter/components/searchData.vue
index e206eeb..26ffc3e 100644
--- a/src/views/dataCenter/components/searchData.vue
+++ b/src/views/dataCenter/components/searchData.vue
@@ -113,8 +113,10 @@
<!-- >全部下载</el-button-->
<!-- >-->
- <el-button v-if="!viewDetailsDisabled" type="primary" plain @click="handleswitchFolders" ><el-icon><FolderOpened /></el-icon></el-button>
- <el-button @click="handleStartList"><el-icon><Star /></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">
@@ -150,7 +152,7 @@
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: '', //文件名称
@@ -351,6 +353,9 @@
ElMessage.success('取消成功')
})
}
+const handleswitchList =()=>{
+ emit('handleswitchList');
+}
// 切换文件夹
const handleswitchFolders =()=>{
emit('handleswitchFolders');
--
Gitblit v1.9.3