src/views/dnc/base/modules/ProductStructure/ProductStructureTree.vue
@@ -114,6 +114,9 @@ this.getTreeDataByApi() this.$bus.$on('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) }, beforeDestroy() { this.$bus.$off('treeMenuItemMethodTrigger', this.triggerCorrespondingMethod) }, methods: { getTreeDataByApi() { this.loading = true @@ -243,6 +246,7 @@ /** * 自动展开添加下级节点的父节点 * @param isAddNextLevel 是否需要展开下级 */ modalFormSubmitSuccess(isAddNextLevel) { // 判断是否为添加下级并且判断父节点是否展开