| | |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: '消息', |
| | | description: `提取成功` |
| | | description: `提取成功`, |
| | | }) |
| | | that.$bus.$emit('reloadCutterList') |
| | | } else { |
| | | that.$notification.error({ |
| | | message: '消息', |
| | |
| | | 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: { |
| | | /** |
| | | * 获取刀具列表在工序和工步层级的展示权限 |
| | |
| | | }) |
| | | }, |
| | | |
| | | reloadCutterList() { |
| | | if (this.$refs.cutterTableListRef) { |
| | | this.$refs.cutterTableListRef.searchQuery(1) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * 接收树组件以及表格传来的当前选中或点击的项信息 |
| | | * @param levelInfo 当前层级信息 |