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

import view_calendarexpbar from '@widgets/emwo/calendar-exp-viewcalendarexpbar-calendarexpbar/calendar-exp-viewcalendarexpbar-calendarexpbar.vue';

/**
 * 工单日历导航视图
 *
 * @export
 * @class EMWOCalendarExpView
 * @extends {EMWOCalendarExpViewBase}
 */
@Component({
    components: {
        view_calendarexpbar, 
    },
    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 EMWOCalendarExpView extends EMWOCalendarExpViewBase { }
</script>