zhangxiaoxu123456
2022-04-24 83d567839cbe37be0daa0402e4b34e01d1ce2bf1
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
   <div class="shebaoZhengjiShouruForm-wrap">
     <div class="danwei-box">单位:人</div>
     <div class="shebaoZhengjiShouruForm-table">
       <el-table
         :max-height="tableHeight"
         border
         style="width: 100%"
         :data="totalTableData">
         <el-table-column
           width="200"
           align="center"
           prop="area"
           label="县(市、区)">
         </el-table-column>
         <el-table-column
           align="center"
           prop="enterprise"
           label="企业养老保险基金征缴收入">
         </el-table-column>
         <el-table-column
           align="center"
           prop="resident"
           label="城乡居民养老保险基金征缴收入">
         </el-table-column>
         <el-table-column
           align="center"
           prop="injuryInsurance"
           label="工伤保险基金征缴收入">
         </el-table-column>
         <el-table-column
           align="center"
           prop="careerInsurance"
           label="失业保险基金征缴收入">
         </el-table-column>
       </el-table>
     </div>
   </div>
</template>
 
<script>
  import nowSize from "../../../libs/nowSize";
    export default {
        name: "shebaoZhengjiShouruTotal",
        props: {
            totalTableData: {
                type: Array,
                default: () => {
                    return []
                }
            }
        },
        data() {
            return {
                tableHeight: window.innerHeight - nowSize(380)
            }
        },
        methods: {
            getHeight() {
                this.tableHeight = window.innerHeight - nowSize(350)
            }
        },
        created() {
            window.addEventListener('resize', this.getHeight)
        },
        destroy() {
            window.addEventListener('resize', this.getHeight)
        }
    }
</script>
 
<style lang="scss">
  @import "../../../assets/css/base";
  .shebaoZhengjiShouruForm-wrap{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    .el-table th.el-table__cell{
      background-color:$color-blue;
    }
    .el-table .el-table__body-wrapper tr{
      height: 0.265625rem  /* 68/256 */;
    }
    .el-table tr:nth-child(odd){
      background-color: #CEF2FF;
    }
    .el-table tr:nth-child(even){
      background-color: #A8E9FF;
    }
    .el-table, .el-table__expanded-cell{
      background-color: transparent;
    }
    .el-table thead{
      color: $color-darkGrey;
    }
    .el-table{
      color: $color-darkGrey;
    }
    .el-table .cell{
      font-size: $fontSize-28;
      color: $color-darkGrey;
      font-weight: 300;
      line-height: 1;
    }
    .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf{
      border-bottom:1Px solid $color-grey; /*no*/
    }
    .el-table--border .el-table__cell, .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed{
      border-right:1Px solid $color-grey; /*no*/
    }
  }
</style>
 
<style lang="scss" scoped>
  @import "../../../assets/css/base";
  .shebaoZhengjiShouruForm-wrap{
    position: relative;
    .danwei-box{
      position: absolute;
      right: 0;
      top: 0;
      color: $color-white;
    }
    .shebaoZhengjiShouruForm-table{
      padding-top: 0.234375rem  /* 60/256 */;
    }
  }
 
</style>