lyh
7 天以前 76f83ad33466ea704eec9a121d2e0a22c1828a84
src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue
@@ -129,7 +129,14 @@
    this.$bus.$on('reloadMainBottomTableData', this.reloadMainBottomTableData)
    this.getCutterListDisplayPermission('dnc_cutter_process', 'isProcessHasCutterList')
    this.getCutterListDisplayPermission('dnc_cutter_step', 'isProcessStepHasCutterList')
    this.$bus.$on('reloadCutterList', this.reloadCutterList)
  },
  // 在beforeDestroy钩子中移除
  beforeDestroy() {
    this.$bus.$off('reloadCutterList', this.reloadCutterList)
  },
  methods: {
    /**
     * 获取刀具列表在工序和工步层级的展示权限
@@ -144,6 +151,12 @@
      })
    },
    reloadCutterList() {
      if (this.$refs.cutterTableListRef) {
        this.$refs.cutterTableListRef.searchQuery(1)
      }
    },
    /**
     * 接收树组件以及表格传来的当前选中或点击的项信息
     * @param levelInfo 当前层级信息