无人机管理后台前端(已迁走)
张含笑
2025-10-31 bb3f24bfc63929dbf93a0d2e33195a51f1d19409
feat:切换tab清除数据
3 files modified
23 ■■■■ changed files
src/styles/element-ui.scss 7 ●●●● patch | view | raw | blame | history
src/views/layerManagement/components/rightEdit.vue 8 ●●●● patch | view | raw | blame | history
src/views/layerManagement/index.vue 8 ●●●●● patch | view | raw | blame | history
src/styles/element-ui.scss
@@ -259,7 +259,12 @@
    background: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    .el-range-editor.is-disabled input {
        background-color: transparent !important;
    }
    .el-range-editor.is-disabled {
        background-color: transparent !important;
    }
    .el-input__wrapper {
        box-shadow: none !important;
        background-color: transparent !important;
src/views/layerManagement/components/rightEdit.vue
@@ -38,8 +38,8 @@
        <div>
          <el-date-picker
            :disabled="isDisabled"
            popper-class="ztzf-layer-date-picker-popper"
            class="ztzf-layer-date-picker layertimer"
            class="ztzf-layer-date-picker "
            v-model="timeValue"
            type="datetimerange"
            format="YYYY-MM-DD HH:mm"
@@ -362,7 +362,11 @@
    }
    :deep(.el-date-editor.el-input__wrapper) {
      width: auto !important;
      background: transparent !important;
    }
    :deep(.el-range-editor.is-disabled input ){
        background-color: transparent !important;
    }
  }
  .detailInfo {
    .infpItem {
src/views/layerManagement/index.vue
@@ -98,14 +98,15 @@
  fileType: 1, //文件夹类型
  editFolderData: null,
  editingIsProhibited:false,//禁止编辑
  isDetailShow:false
});
const handleClick = tab => {
  const clickedTab = tabData.value.find(item => item.type === tab.paneName);
  activeType.value = clickedTab.type;
  activeName.value = clickedTab.name;
  getdataFolderApi();
  parentMethod()
};
const refreshMethod =()=>{
  getdataFolderApi()
@@ -164,7 +165,6 @@
    viewer.entities.removeAll();
  }
};
const loadDataToMap = dataList => {
  if (!viewer) return;
  viewer.entities.removeAll();
@@ -208,7 +208,9 @@
    });
  });
  focusOnAllFeatures();
  viewInstance.value?.addLeftClickEvent(null, handleFenceClick);
  if (activeName.value !== '国土空间规划') {
    viewInstance.value?.addLeftClickEvent(null, handleFenceClick);
  }
};
//计算所有图斑的包围球并定位
const focusOnAllFeatures = () => {