无人机管理后台前端(已迁走)
张含笑
2025-08-11 b87037236854234659cc749b2739f2cc9b910a7a
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;