|
@@ -1,5 +1,5 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="p-2 auto-overflow-y">
|
|
2
|
+ <div class="p-4 auto-overflow-y">
|
3
|
3
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
4
|
4
|
<el-tab-pane label="年统计" name="year">
|
5
|
5
|
<YearAnalyze />
|
|
@@ -8,29 +8,35 @@
|
8
|
8
|
<monthAnalyze />
|
9
|
9
|
</el-tab-pane>
|
10
|
10
|
<el-tab-pane label="日统计" name="day">
|
11
|
|
- <DayAnalyze/>
|
|
11
|
+ <DayAnalyze />
|
12
|
12
|
</el-tab-pane>
|
13
|
13
|
</el-tabs>
|
14
|
14
|
</div>
|
15
|
|
- </template>
|
16
|
|
- <script lang="ts" setup>
|
17
|
|
- import { ref } from 'vue'
|
18
|
|
- import type { TabsPaneContext } from 'element-plus'
|
19
|
|
- import monthAnalyze from '@/views/consumption/report/xfConsumedetail/monthAnalyze.vue';
|
20
|
|
- import YearAnalyze from './xfConsumedetail/yearAnalyze.vue';
|
21
|
|
- import DayAnalyze from './xfConsumedetail/dayAnalyze.vue';
|
22
|
|
- const activeName = ref('month')
|
23
|
|
-
|
24
|
|
- const handleClick = (tab: TabsPaneContext, event: Event) => {
|
25
|
|
- console.log(tab, event)
|
26
|
|
- }
|
27
|
|
- </script>
|
28
|
|
-
|
29
|
|
- <style>
|
30
|
|
- .demo-tabs > .el-tabs__content {
|
31
|
|
- padding: 1px;
|
32
|
|
- color: #6b778c;
|
33
|
|
- font-size: 32px;
|
34
|
|
- font-weight: 600;
|
35
|
|
- }
|
36
|
|
- </style>
|
|
15
|
+</template>
|
|
16
|
+<script lang="ts" setup>
|
|
17
|
+import { ref } from 'vue';
|
|
18
|
+import type { TabsPaneContext } from 'element-plus';
|
|
19
|
+import monthAnalyze from '@/views/consumption/report/xfConsumedetail/monthAnalyze.vue';
|
|
20
|
+import YearAnalyze from './xfConsumedetail/yearAnalyze.vue';
|
|
21
|
+import DayAnalyze from './xfConsumedetail/dayAnalyze.vue';
|
|
22
|
+const activeName = ref('month');
|
|
23
|
+
|
|
24
|
+const handleClick = (tab: TabsPaneContext, event: Event) => {
|
|
25
|
+ console.log(tab, event);
|
|
26
|
+};
|
|
27
|
+</script>
|
|
28
|
+
|
|
29
|
+<style>
|
|
30
|
+.demo-tabs > .el-tabs__content {
|
|
31
|
+ padding: 1px;
|
|
32
|
+ color: #6b778c;
|
|
33
|
+ font-size: 32px;
|
|
34
|
+ font-weight: 600;
|
|
35
|
+}
|
|
36
|
+
|
|
37
|
+#tab-year,
|
|
38
|
+#tab-month,
|
|
39
|
+#tab-day {
|
|
40
|
+ font-size: 16px !important;
|
|
41
|
+}
|
|
42
|
+</style>
|