lyh
7 天以前 76f83ad33466ea704eec9a121d2e0a22c1828a84
提取刀具刷新页面
已修改2个文件
16 ■■■■■ 文件已修改
src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dnc/base/modules/ProductStructure/ProductStructureMainBottom.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dnc/base/modules/ProductStructure/Document/NcDocumentTableList.vue
@@ -270,8 +270,9 @@
                if (res.success) {
                  that.$notification.success({
                    message: '消息',
                    description: `提取成功`
                    description: `提取成功`,
                  })
                  that.$bus.$emit('reloadCutterList')
                } else {
                  that.$notification.error({
                    message: '消息',
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 当前层级信息