无人机管理后台前端(已迁走)
张含笑
2025-08-28 279b452855865fb2712e7f3ba799efcbf6e296ae
src/views/resource/components/spotDetails.vue
@@ -178,39 +178,6 @@
const handleSizeChange = () => {};
const handleCurrentChange = () => {};
const tableData = ref([]);
const polygonSearch = ref({
  investigate: '',
  isPush: '',
  isException: '',
  inRange: '1',
  dkbh: '',
  dkmj: '',
  page: 1,
  page_size: 1000,
  total: 0,
  workspaceId: 'ede19ef4-2e92-42f3-83cc-89afb54e95a7',
  area_code: '360000000000',
  device_sn: '',
});
// 获取列表数据
// const getTableList = async () => {
//   tableData.value = [];
//   const res = await getPatchesSpotList(polygonSearch.value);
//   if (res.data.code !== 0) return;
//   console.log('rrrrr',res.data.data);
//   tableData.value = res.data.data.list.map(item => ({
//     ...item,
//     dkfw: item.sdfw && item.is_exception == 1 ? item.sdfw : item.dkfw,
//   }));
//   total.value = res.data.data.pagination.total;
//   // 先清空地图现有图斑
//   tbJwdList = [];
//   viewer.entities.removeAll(); // 清除所有实体
//   // 加载图斑
//   entitiesAddSpot();
// };
// 地图
const initMap = () => {
  if (!document.getElementById('spotMap')) {