无人机管理后台前端(已迁走)
张含笑
2025-08-15 eb9f31d07609e8711fd7f9332fcf523b724faff2
src/views/dataCenter/components/searchData.vue
@@ -140,7 +140,6 @@
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']);
const startTime = dayjs().subtract(6, 'day').startOf('day');
const endTime = dayjs().endOf('day');
@@ -274,16 +273,13 @@
  // 处理机巢数据
  searchForm.deviceSn = '';
  machineData.value = '';
  const droneList = await getDeviceRegion({ areaCode: data.id });
  machineData.value = droneList?.data?.data;
  // 默认选中值
  if (signDevice_sn.value) {
    searchForm.deviceSn = signDevice_sn.value;
  }
  // 所属部门重新请求值
  deptData.value = [];
  getDeptsByAreaCode();
  handleSearch();
@@ -324,6 +320,7 @@
  searchForm.deviceSn = '';
  searchForm.resultType = '';
  searchForm.photoType = '';
  searchForm.wayLineJobId=''
  handleNodeClick({ id: userAreaCode.value });
  handleSearch();
};
@@ -343,7 +340,7 @@
}
// 切换文件夹
const handleswitchFolders =()=>{
  emit('handleswitchFolders');
  emit('handleswitchFolders',machineData.value);
}
onMounted(() => {
  requestDockInfo();