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

import view_gridexpbar from '@widgets/emeqspare/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar.vue';

/**
 * 备件包表格导航视图
 *
 * @export
 * @class EMEQSpareGridExpView
 * @extends {EMEQSpareGridExpViewBase}
 */
@Component({
    components: {
        view_gridexpbar, 
    },
    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 EMEQSpareGridExpView extends EMEQSpareGridExpViewBase { }
</script>