<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import EMEQSpareDetailTabExpViewBase from './emeqspare-detail-tab-exp-view-base.vue';

import view_tabexppanel from '@widgets/emeqspare-detail/tab-exp-viewtabexppanel-tabexppanel/tab-exp-viewtabexppanel-tabexppanel.vue';

/**
 * 备件包明细分页导航视图
 *
 * @export
 * @class EMEQSpareDetailTabExpView
 * @extends {EMEQSpareDetailTabExpViewBase}
 */
@Component({
    components: {
        view_tabexppanel, 
    },
    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 EMEQSpareDetailTabExpView extends EMEQSpareDetailTabExpViewBase { }
</script>