zhangxiaoxu123456
2022-04-12 013df78e71b362f0210d284c65f4692e50ca6f16
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<template>
  <div class="zhigongShebao-wrap">
    <el-table
      border
      :data="tableData"
      :header-cell-style="handleheader"
      :default-sort = "{prop: 'name', order: 'descending'}"
      style="width: 100%">
      <el-table-column
        prop="shiqu"
        label="县(市、区)"
        align="center"
        width="250">
      </el-table-column>
      <el-table-column
        sortable
        prop="name"
        label="企业职工养老保险参保人数"
        align="center">
      </el-table-column>
      <el-table-column
        sortable
        prop="address"
        label="在职职工"
        align="center">
      </el-table-column>
      <el-table-column
        prop="name"
        sortable
        label="离退休"
        align="center">
      </el-table-column>
      <el-table-column
        label="操作"
        width="250"
        align="center">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">查看详情</el-button>
        </template>
      </el-table-column>
    </el-table>
    <zhigongshebaoForm ref="zhigongshebaoForm" v-if="zhigongshebaoVisiable"></zhigongshebaoForm>
  </div>
</template>
 
<script>
  import zhigongshebaoForm from "./zhigongshebaoForm";
    export default {
        name: "chengzhenXinzengJiuye",
        components: {
            zhigongshebaoForm
        },
        data() {
            return {
                zhigongshebaoVisiable: false,  //弹框
                tableData: [{
                    shiqu:'全市',
                    date: '1',
                    name: '1',
                    address: '1'
                }, {
                    shiqu:'长安区',
                    date: '1',
                    name: '2',
                    address: '2'
                }, {
                    shiqu:'桥西区',
                    date: '3',
                    name: '3',
                    address: '4'
                }, {
                    shiqu:'新华区',
                    date: '4',
                    name: '4',
                    address: '1   '
                }]
            }
        },
        methods: {
            handleClick(row) {
                this.zhigongshebaoVisiable = true
                this.$nextTick(() => {
                    this.$refs.zhigongshebaoForm.init()
                })
            },
            handleheader(data) {
                return {
                    lineHeight: '2.5',
                }
            }
        }
    }
</script>
 
<style lang="scss">
  @import "../../../assets/css/base";
  .zhigongShebao-wrap{
    width: 100%;
    padding-top: 0.078125rem  /* 20/256 */;
    .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*/
    }
    .el-table .sort-caret{
      border: 0.05rem solid transparent;
    }
    .el-table .sort-caret.descending{
      bottom: -0.04296875rem  /* -11/256 */;
      border-top-color: #cef2ff;
    }
    .el-table .descending .sort-caret.descending{
      border-top-color: #409EFF;
    }
    .el-table .sort-caret.ascending{
      top: -0.04296875rem  /* -11/256 */;
      border-bottom-color: #cef2ff;
    }
    .el-table .ascending .sort-caret.ascending{
      border-bottom-color: #409EFF;
    }
 
  }
</style>
<style scoped>
 
</style>