<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>
|