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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| <template>
| <div>
| <el-tabs v-model="activeName" @tab-click="handleClick">
| <el-tab-pane v-for="(item,index) in topicList" :key="index" :label="item.name" :name="item.name"></el-tab-pane>
| </el-tabs>
| <div>
| <component :is="gcComp"></component>
| </div>
| </div>
| </template>
|
| <script>
|
| import WasteWater from '@components/table/components/WasteWater'
| import SoilGroundwater from '@components/table/components/SoilGroundwater'
| import WasteGas from '@components/table/components/WasteGas'
| import SolidWaste from '@components/table/components/WasteSolid'
| import AirQuality from '@components/table/components/AirQuality'
|
| import { TopicList } from '../../../conf/Topic'
|
| export default {
| name: 'tabHandover',
| components: {
| WasteWater,
| // WasteGas,
| // SoilGroundwater,
| SolidWaste,
| AirQuality
| },
| data () {
| return {
| titleProp: '',
| activeName: 'gcComp',
| topicList: TopicList,
| gcComp: AirQuality
| }
| },
| methods: {
| refsDatatitle (item) {
| this.titleProp = item
| },
| handleClick (tab, event) {
| console.log(tab.label)
| switch (tab.label) {
| case '污染源':
| this.gcComp = AirQuality
| break
| case '废水':
| this.gcComp = WasteWater
| break
| case '废气':
| this.gcComp = WasteGas
| break
| case '固废':
| this.gcComp = SolidWaste
| break
| case '环境风险':
| this.gcComp = AirQuality
| break
| case '土壤及地下水':
| this.gcComp = SoilGroundwater
| break
| case '管线':
| this.gcComp = AirQuality
| break
| }
| }
| }
| }
| </script>
|
| <style scoped>
|
| </style>
|
|