派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-26 33f8b1658371b0bfab97f7834286d326b2e4fadc
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<template>
    <div class="sewers-analysis-tab">
        <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
            <el-tab-pane label="连通性" name="first">
                <Connectivity></Connectivity>
            </el-tab-pane>
            <el-tab-pane label="爆管" style="color: #cccccc" name="second">
                <Tube></Tube>
            </el-tab-pane>
            <el-tab-pane label="流向" name="third">
                <Flow></Flow>
            </el-tab-pane>
            <el-tab-pane label="横断面" name="fourth">
                <CrossSectional></CrossSectional>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>
 
<script>
import Connectivity from './analysis-choose/Connectivity'
import Tube from './analysis-choose/Tube'
import Flow from './analysis-choose/Flow'
import CrossSectional from './analysis-choose/CrossSectional'
import eventBus from '../../../../eventBus'
 
export default {
  name: 'SewersAnalysis',
  components: {
    Connectivity,
    Tube,
    Flow,
    CrossSectional
  },
  data () {
    return {
      // 地图点击类型 first连通性点击  second爆管点击  third流向点击 fourth横断面
      activeName: 'first',
      tableData: false
    }
  },
  methods: {
    // tab切换
    handleClick () {
      eventBus.$emit('tabData-change', true)
    }
  }
}
</script>
 
<style lang="less" scoped>
    /deep/ .el-tabs .el-tabs__item {
        height: 20px;
        line-height: 20px;
    }
 
    /deep/ .el-tabs--border-card > .el-tabs__content {
        padding: 5px;
    }
 
    /deep/ .el-table .has-gutter tr th {
        border: none !important;
    }
 
    /deep/ .el-table tbody tr:hover > td {
        background: none !important
    }
 
    /deep/ .el-tabs__header {
        background: none !important;
    }
 
    /deep/ .fixed-style {
        /*margin: 15px;*/
        font-size: 12px;
        display: inline-block;
        color: #00fff6;
    }
 
    /deep/ th.is-leaf {
        border: none !important;
    }
 
    /deep/ .el-table__fixed-right::before, .el-table__fixed::before {
        background: none;
    }
 
    /deep/ .el-table__empty-text {
        line-height: 170px;
    }
 
    /deep/ .el-table__body .el-table__row.hover-row td {
        background: none !important;
        color: yellow;
    }
 
    /deep/ .el-table__body tr.current-row > td {
        background: rgba(0, 16, 30, 1) !important;
    }
 
    /deep/ .fixed-table {
        background: rgba(0, 16, 30, 1) !important;
    }
 
    /*scroll右侧占位*/
    /deep/ .el-table__fixed-right-patch {
        display: none;
    }
 
    /deep/ .el-tab-pane {
        min-height: 506.19px;
    }
</style>