<template>
|
<div class="fo">
|
<!-- <el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tab-pane label="All" name="all"></el-tab-pane>
|
</el-tabs> -->
|
|
<el-table :data="tableData" style="width: 100%" empty-text="No Data">
|
<el-table-column prop="title" label="name"> </el-table-column>
|
|
<el-table-column prop="buyTime" :label="$t('hj273')"> </el-table-column>
|
|
<el-table-column prop="returnOfRate" :label="$t('syl')">
|
</el-table-column>
|
|
<el-table-column prop="returnTime" :label="$t('投资周期')">
|
<template slot-scope="scope">
|
<span>{{ scope.row.returnTime }} {{ $t("hj87") }}</span>
|
</template>
|
</el-table-column>
|
|
<el-table-column prop="money" :label="$t('投资金额')">
|
<template slot-scope="scope">
|
<span class="sc_c" style="font-size: 18px"
|
>$ {{ scope.row.money }}</span
|
>
|
</template>
|
</el-table-column>
|
|
<el-table-column prop="state" :label="$t('状态')">
|
<template slot-scope="scope">
|
<span>{{ dictionary.jjlx[scope.row.state] }}</span>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<div class="pagination">
|
<el-pagination
|
background
|
layout="prev, pager, next"
|
:total="total"
|
:current-page="pageNum"
|
:page-size="pageSize"
|
@current-change="handleCurrentChange"
|
>
|
</el-pagination>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import mixins from "@/mixins/myMixins"; // 混入
|
import * as api from "@/axios/api";
|
import { mapState } from "vuex";
|
export default {
|
mixins: [mixins],
|
data() {
|
return {
|
// activeName: "all",
|
// 列表参数,必须是opt和myMixins混入配合使用
|
opt: {
|
status: "",
|
},
|
};
|
},
|
computed: {
|
...mapState(["userInfo"]),
|
},
|
watch: {},
|
created() {
|
this.apiInterface = api.queryOrderEchoPage; // 赋值接口
|
this.init(); // 获取记录列表
|
},
|
methods: {
|
handleClick() {
|
if (this.activeName === "all") this.opt.status = "";
|
else this.opt.status = this.activeName;
|
},
|
},
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.fo {
|
width: 100%;
|
|
.pagination {
|
margin-top: 20px;
|
text-align: center;
|
}
|
}
|
</style>
|