<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import EMWOTreeExpViewBase from './emwotree-exp-view-base.vue';

import view_treeexpbar from '@widgets/emwo/tree-exp-viewtreeexpbar-treeexpbar/tree-exp-viewtreeexpbar-treeexpbar.vue';

/**
 * 工单树导航视图
 *
 * @export
 * @class EMWOTreeExpView
 * @extends {EMWOTreeExpViewBase}
 */
@Component({
    components: {
        view_treeexpbar, 
    },
    beforeRouteEnter: (to: any, from: any, next: any) => {
        next((vm: any) => {
            if(!Object.is(vm.navModel,"route")){
                vm.initNavDataWithTab(vm.viewCacheData);
            }
            vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
        });
    },
})
export default class EMWOTreeExpView extends EMWOTreeExpViewBase { }
</script>