吉安感知网项目-前端
shuishen
2026-01-20 f85006844550bd25c98fcbe841b903ff4d98761e
feat:部分处理
10 files modified
95 ■■■■ changed files
applications/drone-command/src/mac/index.vue 7 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/page/index/top/top-full.vue 13 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/page/lock/index.vue 10 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/page/login/index.vue 10 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/utils/cesium/DrawPolygon.js 1 ●●●● patch | view | raw | blame | history
applications/drone-command/src/utils/util.js 25 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/dataCenter/components/dataCenterMap.vue 8 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/job/jobinfo.vue 12 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/layerManagement/components/utils.js 1 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/layerManagement/index.vue 8 ●●●●● patch | view | raw | blame | history
applications/drone-command/src/mac/index.vue
@@ -69,6 +69,7 @@
    return {
      app: false,
      timeString: '',
      timeTimer: null,
    }
  },
  computed: {
@@ -116,6 +117,12 @@
    this.startTimer()
    this.$store.dispatch('GetMenu')
  },
  beforeDestroy () {
    if (this.timeTimer) {
      clearInterval(this.timeTimer)
      this.timeTimer = null
    }
  },
  methods: {
    switchTheme () {
      this.$store.commit('SET_THEME_NAME', '')
applications/drone-command/src/page/index/top/top-full.vue
@@ -6,11 +6,22 @@
import { fullscreenToggel, listenfullscreen } from 'utils/util';
export default {
  data() {
    return {
      fullscreenCleanup: null,
    };
  },
  computed: {
    ...mapGetters(['isFullScren']),
  },
  mounted() {
    listenfullscreen(this.setScreen);
    this.fullscreenCleanup = listenfullscreen(this.setScreen);
  },
  beforeDestroy() {
    if (this.fullscreenCleanup) {
      this.fullscreenCleanup();
      this.fullscreenCleanup = null;
    }
  },
  methods: {
    setScreen() {
applications/drone-command/src/page/lock/index.vue
@@ -45,6 +45,7 @@
  data() {
    return {
      time: '',
      timeTimer: null,
      passwd: '',
      passwdError: false,
      pass: false,
@@ -52,10 +53,17 @@
  },
  created() {
    this.getTime();
    setInterval(() => {
    if (this.timeTimer) clearInterval(this.timeTimer);
    this.timeTimer = setInterval(() => {
      this.getTime();
    }, 1000);
  },
  beforeDestroy() {
    if (this.timeTimer) {
      clearInterval(this.timeTimer);
      this.timeTimer = null;
    }
  },
  mounted() {},
  computed: {
    ...mapGetters(['userInfo', 'tag', 'lockPasswd']),
applications/drone-command/src/page/login/index.vue
@@ -56,6 +56,7 @@
      },
      website: website,
      time: '',
      timeTimer: null,
      activeName: 'user',
      socialForm: {
        tenantId: '000000',
@@ -82,6 +83,12 @@
  computed: {
    ...mapGetters(['tagWel']),
  },
  beforeDestroy() {
    if (this.timeTimer) {
      clearInterval(this.timeTimer);
      this.timeTimer = null;
    }
  },
  props: [],
  methods: {
    // 动态获取系统名称
@@ -93,7 +100,8 @@
      })
    },
    getTime() {
      setInterval(() => {
      if (this.timeTimer) clearInterval(this.timeTimer);
      this.timeTimer = setInterval(() => {
        this.time = this.$dayjs().format('YYYY-MM-DD HH:mm:ss');
      }, 1000);
    },
applications/drone-command/src/utils/cesium/DrawPolygon.js
@@ -785,6 +785,7 @@
                this.handler.removeInputAction(type)
            })
            this.handler.destroy()
            this.handler = null
        }
    }
applications/drone-command/src/utils/util.js
@@ -102,22 +102,21 @@
 * esc监听全屏
 */
export const listenfullscreen = callback => {
  function listen () {
  const handler = () => {
    callback()
  }
  document.addEventListener('fullscreenchange', function () {
    listen()
  })
  document.addEventListener('mozfullscreenchange', function () {
    listen()
  })
  document.addEventListener('webkitfullscreenchange', function () {
    listen()
  })
  document.addEventListener('msfullscreenchange', function () {
    listen()
  })
  document.addEventListener('fullscreenchange', handler)
  document.addEventListener('mozfullscreenchange', handler)
  document.addEventListener('webkitfullscreenchange', handler)
  document.addEventListener('msfullscreenchange', handler)
  return () => {
    document.removeEventListener('fullscreenchange', handler)
    document.removeEventListener('mozfullscreenchange', handler)
    document.removeEventListener('webkitfullscreenchange', handler)
    document.removeEventListener('msfullscreenchange', handler)
  }
}
/**
 * 获取缩略图路径
applications/drone-command/src/views/dataCenter/components/dataCenterMap.vue
@@ -72,8 +72,11 @@
const removeDom = () => {
  const dom = document.querySelector('#mapPopUpBox');
  if (dom && dom.parentNode) {
    dom.parentNode.removeChild(dom);
  if (dom) {
    render(null, dom);
    if (dom.parentNode) {
      dom.parentNode.removeChild(dom);
    }
  }
};
// 移除弹框标签
@@ -290,6 +293,7 @@
onMounted(() => {});
onBeforeUnmount(() => {
  removeLabel();
  if (viewer) {
    viewer.destroy();
  }
applications/drone-command/src/views/job/jobinfo.vue
@@ -45,13 +45,21 @@
      selectionList: [],
      option: option,
      data: [],
      searchChangeHandler: null,
    }
  },
  created() {
       this.$bus?.on('triggerSearchChange', (params) => {
       this.searchChangeHandler = (params) => {
         this.searchChange(params, () => {});
       });
       };
       this.$bus?.on('triggerSearchChange', this.searchChangeHandler);
     },
  beforeDestroy() {
    if (this.searchChangeHandler) {
      this.$bus?.off('triggerSearchChange', this.searchChangeHandler);
      this.searchChangeHandler = null;
    }
  },
  computed: {
    ...mapGetters(['permission']),
    permissionList () {
applications/drone-command/src/views/layerManagement/components/utils.js
@@ -600,6 +600,7 @@
                this.handler.removeInputAction(type)
            })
            this.handler.destroy()
            this.handler = null
        }
    }
applications/drone-command/src/views/layerManagement/index.vue
@@ -488,14 +488,15 @@
  isPageLoading.value = status;
};
provide('layerParams', layerParams);
const focusOnNodeHandler = nodeData => {
  focusOnNode(nodeData);
};
onMounted(() => {
  initMap();
  cesiumContextMenu();
  getdataFolderApi();
  // 监听定位事件
  EventBus.on('focusOnNode', (nodeData) => {
    focusOnNode(nodeData);
  });
  EventBus.on('focusOnNode', focusOnNodeHandler);
  EventBus.on('deleteMapEntityById', deleteMapEntityById);
  EventBus.on('deleteMapEntitiesByFolderId', deleteMapEntitiesByFolderId);
});
@@ -523,6 +524,7 @@
onBeforeUnmount(() => {
  destroyMap();
  cesiumContextMenu(false);
  EventBus.off('focusOnNode', focusOnNodeHandler);
  EventBus.off('deleteMapEntityById', deleteMapEntityById);
  EventBus.off('deleteMapEntitiesByFolderId', deleteMapEntitiesByFolderId);
});