<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 width="150px" prop="indexName" :label="$t('zsdm')">
|
<template slot-scope="scope">
|
<span>{{ scope.row.indexName }}</span>
|
<span class="code">{{ scope.row.indexCode }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="buyOrderPrice" :label="$t('mrds')">>
|
<template slot-scope="scope">
|
<span>{{ scope.row.buyOrderPrice }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="sellOrderPrice" :label="$t('hj84')">
|
<template slot-scope="scope">
|
<span>{{ scope.row.sellOrderPrice }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="profitAndLose" :label="$t('fdky')">
|
<template slot-scope="scope">
|
<span :class="scope.row.profitAndLose > 0 ? 'red' : 'green'">{{ scope.row.profitAndLose
|
}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="allProfitAndLose" :label="$t('zyk')">
|
<template slot-scope="scope">
|
<span :class="scope.row.allProfitAndLose > 0 ? 'red' : 'green'">{{
|
scope.row.allProfitAndLose
|
}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="allDepositAmt" :label="$t('bzj')">
|
</el-table-column>
|
<el-table-column prop="orderDirection" :label="$t('fx')">
|
<template slot-scope="scope">
|
<span :class="scope.row.orderDirection == $t('mz')? 'green' : 'red'">
|
{{ scope.row.orderDirection == $t('mz') ? $t('hj85') : $t('hj84') }}
|
</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="orderNum" :label="$t('hj100')">
|
</el-table-column>
|
<el-table-column prop="eachPoint" :label="$t('hj118')">
|
</el-table-column>
|
<el-table-column prop="orderFee" :label="$t('sbsxf')">
|
</el-table-column>
|
<el-table-column prop="buyOrderTime" :label="$t('mrsj')" width="160px">
|
<template slot-scope="scope">
|
<span>
|
{{ scope.row.buyOrderTime | timeFormat }}
|
</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="buyOrderTime" :label="$t('mcsj')" width="160px">
|
<template slot-scope="scope">
|
<span>
|
{{ scope.row.sellOrderTime | timeFormat }}
|
</span>
|
</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.getlist();
|
},
|
handleSizeChange(size) {
|
this.pageSize = size
|
this.getlist()
|
},
|
handleCurrentChange(page) {
|
this.pageNum = page
|
this.getlist()
|
},
|
async getlist() {
|
var opt = {
|
pageNum: this.pageNum,
|
pageSize: this.pageSize,
|
state: 1,
|
};
|
let data = await api.getIndexOrderList(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>
|