hyingbo
2025-07-09 2f519ead537a0b38019bbf64a6075cbb6e08f9b4
src/views/tms/WarehouseTree.vue
@@ -2,7 +2,7 @@
  <a-card
    :loading="cardLoading"
    :bordered="false"
    title="仓库管理"
    :title="title"
    style="height: 100%;"
  >
    <a-spin :spinning="loading">
@@ -160,7 +160,13 @@
  components: {
    Tooltip,
  },
  props: ['value'],
  props: {
    value: {},
    title: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      searchInput: '',
@@ -295,11 +301,9 @@
  },
  mounted() {
    this.$bus.$on('queryTreeData', this.queryTreeData);
    this.$bus.$on('clearTreeSelection', this.onClearSelected)
  },
  beforeDestroy() {
    this.$bus.$off('queryTreeData', this.queryTreeData);
    this.$bus.$off('clearTreeSelection', this.onClearSelected)
  },
  //监听
  watch: {