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
| <template>
| <el-tabs
| style="line-height: normal"
| v-model="activeName"
| @tab-click="handleClick"
| >
| <el-tab-pane label="检测仪总体情况报表" name="first">
| <OverallSituation
| /></el-tab-pane>
| <el-tab-pane label="油烟减排统计" name="second">
| <ReduceEmissions />
| </el-tab-pane>
| <el-tab-pane label="监测报警统计" name="third">
| <Alarm />
| </el-tab-pane>
| <el-tab-pane label="运维情况报表" name="fourth">
| <Maintenance />
| </el-tab-pane>
| </el-tabs>
| </template>
| <script>
| import OverallSituation from "./components/overallSituation.vue";
| import ReduceEmissions from "./components/reduceEmissions.vue";
| import Alarm from "./components/alarm.vue";
| import Maintenance from "./components/maintenance.vue";
| export default {
| data() {
| return {
| activeName: "first",
| };
| },
| components: { OverallSituation, ReduceEmissions, Alarm, Maintenance },
| methods: {
| handleClick(tab, event) {
| console.log(tab, event);
| },
| },
| };
| </script>
|
|