zj
2024-06-03 89d48809779ae41f8712539584798d5900b64b78
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
<template>
    <div>
        <div class="noticecontainer">
            <div class="jiaoyimain">
                <div class="tixianliet">
                    <el-table :data="mingxilist" style="width: 100%" border :highlight-current-row="false"
                        :header-cell-style="{ 'padding': '2px 0', 'background': 'rgb(37,38,42)', 'color': '#9d9d9d', 'font-size': '12px' }">
                        <el-table-column prop="positionId" width="60px" label="id">
                        </el-table-column>
                        <el-table-column prop="deType" width="90px" :label="$t('zyk')">
                        </el-table-column>
                        <el-table-column prop="deAmt" width="100px" :label="$t('je')">
                            <template slot-scope="scope">
                                <span :class="scope.row.deAmt > 0 ? 'reds' : scope.row.deAmt < 0 ? 'greens' : ''">{{
                                        scope.row.deAmt
                                }}</span>
                            </template>
                        </el-table-column>
                        <el-table-column prop="deSummary" :label="$t('ms')">
 
                        </el-table-column>
                        <el-table-column prop="addTime" width="166px" :label="$t('sj')">
                            <template slot-scope="scope">
                                <b v-if="scope.row.addTime">{{ scope.row.addTime | timeFormat }}</b>
                                <b v-else></b>
                            </template>
                        </el-table-column>
                    </el-table>
                    <div class="paginationmain">
                        <el-pagination class="pull-right" @size-change="handleSizeChange" background
                            @current-change="handleCurrentChange" :current-page="pageNum"
                            :page-sizes="[10, 20, 30, 40, 50]" :page-size="pageSize"
                            layout="total, sizes, prev, pager, next" :total="total">
                        </el-pagination>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
import * as api from "@/axios/api";
export default {
    data() {
        return {
            pageNum: 1,
            pageSize: 10,
            mingxilist: [],
            total: 0,
        }
    },
    created() {
        this.getinit();
    },
    methods: {
        getinit() {
            this.getmingxi();
        },
        handleSizeChange(size) {
            this.pageSize = size
            this.getmingxi()
        },
        handleCurrentChange(page) {
            this.pageNum = page
            this.getmingxi()
        },
        async getmingxi() {
            var opt = {
                pageNum: this.pageNum,
                pageSize: this.pageSize,
            };
            let data = await api.cashDetail(opt);
            if (data.status == 0) {
                this.mingxilist = data.data.list;
                this.total = data.data.total;
                this.$parent.getcloseLoading();
            }
        },
    }
}
</script>
<style lang="less" scoped>
.greens {
    color: #168740 !important;
}
 
.reds {
    color: #ed3a3b !important;
}
 
.greenbg {
    background: #168740 !important;
}
 
.redbg {
    background: #ed3a3b !important;
}
 
/deep/ .el-form-item {
    margin-bottom: 0 !important;
}
 
/deep/ .el-table {
    background: #25262a !important;
}
 
.el-table::before {
    background-color: unset !important;
}
 
/deep/ .selected {
    float: unset !important;
    text-align: unset !important;
}
 
.noticecontainer {
    display: flex;
 
    .jiaoyimain {
        display: flex;
        justify-content: space-between;
        width: 100%;
 
        .tixianliet {
            color: #fff;
            width: 100%;
            overflow-y: scroll;
            height: 208px;
            position: relative;
 
            &::-webkit-scrollbar {
                width: 8px;
                height: 8px;
                background-color: rgb(37, 38, 42);
            }
 
            &::-webkit-scrollbar-track {
                background-color: rgb(37, 38, 42);
            }
 
            &::-webkit-scrollbar-thumb {
                background-color: rgb(37, 38, 42);
            }
 
            &::-webkit-scrollbar-corner {
                width: 8px;
                height: 8px;
                display: none;
            }
 
            .paginationmain {
                display: flex;
                justify-content: center;
                margin: 20px 0;
            }
 
            /deep/ .btn-next {
                color: #000 !important;
            }
 
            /deep/ .btn-prev {
                color: #000 !important;
            }
        }
    }
}
</style>