<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import EMEQTypePickupTreeViewBase from './emeqtype-pickup-tree-view-base.vue';

import view_tree from '@widgets/emeqtype/eq-type-tree-treeview/eq-type-tree-treeview.vue';

/**
 * 设备类型
 *
 * @export
 * @class EMEQTypePickupTreeView
 * @extends {EMEQTypePickupTreeViewBase}
 */
@Component({
    components: {
        view_tree, 
    },
    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 EMEQTypePickupTreeView extends EMEQTypePickupTreeViewBase { }
</script>