无人机管理后台前端(已迁走)
张含笑
2025-11-11 cdaa30c60d60e036f0c169a88ff83c2b7063b304
src/views/layerManagement/index.vue
@@ -65,7 +65,7 @@
const areaCode = userInfo.value?.detail?.areaCode || '';
// 红色警告交叉面提示窗
const isShowWaringTip = ref(false);
const activeName = ref('电子围栏');
const activeName = ref('自定义识别区');
const activeType = ref('0');
let tbJwdList = [];
const selectDataList = ref([]);
@@ -73,7 +73,7 @@
let curPolygonPosition = [];
const tabData = ref([
  {
    name: '电子围栏',
    name: '自定义识别区',
    type: '0',
  },
  {
@@ -121,7 +121,7 @@
};
const getdataFolderApi = () => {
  let id;
  if (activeName.value === '电子围栏') {
  if (activeName.value === '自定义识别区') {
    id = 1;
  } else if (activeName.value === '自定义禁飞区') {
    id = 2;
@@ -282,7 +282,7 @@
      layerParams.value.editNest = true; // 显示右侧编辑组件
      layerParams.value.decideWhetherToAddOrEdit = 2; // 标记为编辑模式
      // 根据围栏类型设置fenceType
      if (activeName.value === '电子围栏') {
      if (activeName.value === '自定义识别区') {
        layerParams.value.fenceType = 1;
      } else if (activeName.value === '自定义禁飞区') {
        layerParams.value.fenceType = 2;