<template src="./metric-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MetricEditViewBase } from './metric-edit-view-base';
import view_form from '@widgets/metric/main-form/main-form.vue';

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