kongdeqiang
2023-06-06 e8d2fb192894d42d5cf00c8699e5d0ec5ce710a4
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<template>
    <div class="blackNameForm-wrap">
        <el-dialog
                title="黑名单重点车辆记录"
                :visible.sync="dialogVisible"
                width="60%">
            <div class="daibanForm-main">
                <el-table
                        :data="pageData.rows"
                        style="width: 100%"
                        max-height="550">
                    <el-table-column
                            align="center"
                            fixed
                            type="index"
                            label="序号"
                            width="80">
                    </el-table-column>
                    <el-table-column
                            align="center"
                            prop="carNo"
                            label="车牌号"
                            width="150">
                    </el-table-column>
                    <el-table-column
                            align="center"
                            prop="color"
                            label="车辆颜色"
                            width="150">
                    </el-table-column>
                    <el-table-column
                            align="center"
                            prop="carType"
                            label="车辆类型"
                            width="150">
                    </el-table-column>
                    <el-table-column
                            align="center"
                            prop="violationCount"
                            label="违章次数"
                            width="120">
                    </el-table-column>
                </el-table>
                <div class="black-footer-box">
                    <el-pagination
                            @size-change="handleSizeChange"
                            @current-change="handleCurrentChange"
                            :current-page="pageData.currentPage"
                            :page-sizes="[10, 20, 30, 40, 50, 100, 200]"
                            :page-size="pageData.pageSize"
                            layout="total, sizes, prev, pager, next, jumper"
                            :total="pageData.total">
                    </el-pagination>
                </div>
            </div>
        </el-dialog>
    </div>
</template>
 
<script>
    export default {
        name: "blackNameForm",
        data() {
            return {
                pageConfig: {
                    pageDataUrl: this.$systemconfig.basePath + '/statistic/getBlackRecord',
                },
                pageData: this.$byutil.defaultPageData(),
                dialogVisible:false,
            }
        },
        methods: {
            initData() {
                this.dialogVisible = true
                this.$byutil.initTableMaxHeight(this);
                this.loadData();
            },
            //加载数据
            loadData() {
                this.$byutil.loadPageData(this, this.pageConfig.pageDataUrl,this.pageData);
            },
            handleSizeChange(val) {
                this.pageData.pageSize = val;
                this.loadData();
            },
            handleCurrentChange(val) {
                this.pageData.page = val;
                this.loadData();
            }
        }
    }
</script>
 
<style lang="scss">
    .blackNameForm-wrap{
        .el-dialog__title{
            color: #fff;
        }
        .el-dialog, .el-pager li{
            background:rgba(0,0,0,0.9);
        }
        .el-form-item__label{
            color: #00fff6;
        }
        .el-table th{
            background:rgba(4,40,70,0.7);
        }
        .el-table tr{
            background:transparent;
        }
        .el-table__footer-wrapper, .el-table__header-wrapper:nth-child(even){
            background:rgba(4,40,70,0.7);
        }
        .el-table__row:nth-child(even){
            background:rgba(4,40,70,0.7);
        }
        .el-table, .el-table__expanded-cell{
            background:transparent;
        }
        .el-table td, .el-table th.is-leaf{
            border:none;
        }
        .el-table__body,.el-table__header{
            width: 100% !important;
        }
        .el-table::before,.el-table__fixed-right::before, .el-table__fixed::before{
            background-color: transparent;
        }
        .el-table__body tr.hover-row.current-row>td, .el-table__body tr.hover-row.el-table__row--striped.current-row>td, .el-table__body tr.hover-row.el-table__row--striped>td, .el-table__body tr.hover-row>td{
            background-color: #374f65;
        }
        .el-table--enable-row-hover .el-table__body tr:hover>td{
            background-color: #374f65;
        }
        .el-table thead{
            color: #fff;
        }
        .el-table{
            color:#00fff6;
        }
        .el-dialog__header{
            display: flex;
            justify-content: center;
        }
    }
    .black-footer-box{
        .el-pagination__total{
            color:#fff;
        }
        .el-pager li{
            color:#fff;
        }
        .el-pagination__jump{
            color:#fff;
        }
        .el-input__inner,.btn-prev,.btn-next,.el-pagination button:disabled{
            background-color: transparent;
        }
        .el-pager li.active{
            color: #409EFF;
        }
        .el-input__inner{
            color:#fff;
            border:1px solid #409EFF;
        }
        .el-pagination .btn-next, .el-pagination .btn-prev{
            color:#fff;
        }
    }
</style>
 
<style lang="scss" scoped>
    .black-footer-box{
        display: flex;
        flex-direction: row-reverse;
        margin-top: 0.1042rem  /* 20/192 */;
    }
</style>