无人机管理后台前端(已迁走)
张含笑
2025-08-15 590a46b8a15976856b0a8d877590701cc6db5973
src/views/dataCenter/components/searchData.vue
@@ -259,13 +259,11 @@
    searchForm.endTime = end.format(timeFormat);
    handleSearch()
  }
};
// 部门下得机巢
const requestDockInfo = () => {
  getRegionTreeAll({ parentCode: userAreaCode.value }).then(res => {
    deptTreeData.value = res.data.data ? [res.data.data] : [];
    handleNodeClick({ id: userAreaCode.value });
  });
};
@@ -275,6 +273,7 @@
  machineData.value = '';
  const droneList = await getDeviceRegion({ areaCode: data.id });
  machineData.value = droneList?.data?.data;
  // 默认选中值
  if (signDevice_sn.value) {
    searchForm.deviceSn = signDevice_sn.value;
@@ -283,6 +282,7 @@
  deptData.value = [];
  getDeptsByAreaCode();
  handleSearch();
};
// 所属部门信息
const getDeptsByAreaCode = () => {
@@ -340,8 +340,9 @@
}
// 切换文件夹
const handleswitchFolders =()=>{
  emit('handleswitchFolders',machineData.value);
  emit('handleswitchFolders');
}
onMounted(() => {
  requestDockInfo();
  getDownloadStatusApi({type: 'htsjzx'}).then(res =>{
@@ -350,6 +351,8 @@
    }
  })
});
</script>
<style scoped lang="scss">