无人机管理后台前端(已迁走)
chenyao
2025-09-17 72253913e5cd11a05cbd11eb3f76e9989bd0d760
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');