<template>
|
<app-page-tab v-bind="tabPageProps">
|
<template #index="scope">
|
<index-page/>
|
</template>
|
<template #form="scope">
|
<form-page/>
|
</template>
|
<template #chart="scope">
|
<chart-page/>
|
</template>
|
</app-page-tab>
|
</template>
|
|
<script setup name="agreementTemplate">
|
|
import IndexPage from './IndexPage';
|
import FormPage from './FormPage';
|
import ChartPage from './ChartPage';
|
|
import {useI18n} from 'vue-i18n';
|
|
const {t} = useI18n();
|
|
const router = useRouter();
|
|
const params = router.currentRoute.value.query;
|
|
const tabPageRef = ref();
|
/**
|
* index form chart
|
*/
|
const view = params.view || 'index';
|
|
const tabPageProps = {
|
ref: tabPageRef,
|
// tabList: [{name: view, title: '' t('views.log.logInterface.title')}],
|
tabList: [{name: view, title: ''}],
|
};
|
|
</script>
|