zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<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>