Commit a52eaad1 by 黑潮

update: 添加字段

parent 6de69325
<template>
<section class="recharge dm-wrap" v-loading="loading">
<div class="pb22"><el-date-picker v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="onSearch"></el-date-picker></div>
<div class="pb22">
<el-date-picker v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="onSearch"></el-date-picker>
<el-select style="width:180px" clearable v-model="listParams.deductType" placeholder="全部扣款类型" @change="onSearch">
<el-option v-for="(value, key) in deductTypeList" :key="key" :label="value" :value="key"></el-option>
</el-select>
<el-select style="width:180px" clearable v-model="listParams.feeType" placeholder="全部记录类型" @change="onSearch">
<el-option label="充值" :value="1"></el-option>
<el-option label="扣款" :value="2"></el-option>
</el-select>
</div>
<el-table tooltipEffect="dark" :data="tableList" style="width: 100%">
<el-table-column align="left" prop="timeEnd" label="充值时间">
<template slot-scope="scope">
......@@ -9,6 +18,16 @@
</template>
</el-table-column>
<el-table-column align="left" prop="transactionId" label="充值流水号"></el-table-column>
<el-table-column label="记录类型">
<template slot-scope="scope">
{{ scope.row.feeType == 1 ? '充值' : '扣款' }}
</template>
</el-table-column>
<el-table-column label="扣款类型">
<template slot-scope="scope">
{{ deductTypeList[scope.row.deductType] }}
</template>
</el-table-column>
<el-table-column align="left" prop="payType" label="充值方式">
<template slot-scope="scope">
{{ scope.row.payType | filterPayType }}
......@@ -38,9 +57,12 @@ export default {
currentPage: 1,
pageSize: 20,
beginTime: '',
endTime: ''
endTime: '',
deductType: '',
feeType: ''
},
total: 0
total: 0,
deductTypeList: {}
};
},
created() {
......@@ -76,6 +98,7 @@ export default {
if (res.errorCode === 0 && res.result.result) {
this.tableList = res.result.result;
this.total = res.result.totalCount;
this.deductTypeList = JSON.parse(res.result.params.deductTypeList || '{}');
} else {
this.tableList = [];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment