<template src="./metric-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MetricGridViewBase } from './metric-grid-view-base';
import view_grid from '@widgets/metric/main-grid/main-grid.vue';
import view_searchform from '@widgets/metric/default-searchform/default-searchform.vue';

/**
 * 目标度量信息视图
 *
 * @export
 * @class MetricGridView
 * @extends {MetricGridViewBase}
 */
@Component({
    components: {
        view_grid, 
        view_searchform, 
    },
    beforeRouteEnter: (to: any, from: any, next: any) => {
        next((vm: any) => {
            vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
        });
    }
})
@VueLifeCycleProcessing()
export default class MetricGridView extends MetricGridViewBase { }
</script>
