|
|
@@ -4,18 +4,18 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="用户">
|
|
|
- <el-input placeholder="UID/昵称"></el-input>
|
|
|
+ <el-input placeholder="UID" v-model="user"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="3">
|
|
|
<el-form-item label="编号">
|
|
|
- <el-input placeholder="订单编号"></el-input>
|
|
|
+ <el-input placeholder="订单编号" v-model="order_no"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="7">
|
|
|
<el-form-item label="时间范围" label-width="80px">
|
|
|
<el-date-picker
|
|
|
- v-model="value1"
|
|
|
+ v-model="timeRange"
|
|
|
type="daterange"
|
|
|
range-separator="至"
|
|
|
start-placeholder="开始时间"
|
|
|
@@ -23,7 +23,7 @@
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-button type="primary" plain>筛选</el-button>
|
|
|
+ <el-button type="primary" plain @click="getFinanceList">筛选</el-button>
|
|
|
<el-button plain>导出报表</el-button>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
@@ -113,13 +113,13 @@
|
|
|
<div class="order-footer">
|
|
|
<el-pagination
|
|
|
background
|
|
|
- @current-change="getTableData"
|
|
|
+ @current-change="getFinanceList"
|
|
|
@size-change="changePageSize"
|
|
|
:current-page.sync="currentPage"
|
|
|
:page-sizes="[10, 20, 30, 40]"
|
|
|
:page-size="20"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="totalCount"
|
|
|
+ :total="count"
|
|
|
></el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -132,6 +132,10 @@ export default {
|
|
|
currentPage:1,
|
|
|
currentPageSize:20,
|
|
|
coins:[],
|
|
|
+ count:1,
|
|
|
+ user:'',
|
|
|
+ order_no:'',
|
|
|
+ timeRange:[],
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -143,13 +147,23 @@ export default {
|
|
|
},
|
|
|
|
|
|
async getFinanceList() {
|
|
|
+ this.user=this.$route.query.user;
|
|
|
let body = {
|
|
|
page: this.currentPage,
|
|
|
size: this.currentPageSize,
|
|
|
- user:this.$route.query.user,
|
|
|
+ user:this.user,
|
|
|
};
|
|
|
+ if (this.order_no){
|
|
|
+ body.order_no=this.order_no;
|
|
|
+ }
|
|
|
+ if (this.timeRange.length>0){
|
|
|
+ console.log(this.timeRange);
|
|
|
+ body.start_time=this.timeRange[0]/1000;
|
|
|
+ body.end_time=this.timeRange[1]/1000;
|
|
|
+ }
|
|
|
const res = await this.$post("/api/admin/order/get_coins", body);
|
|
|
- this.coins = res.data;
|
|
|
+ this.coins = res.data.list;
|
|
|
+ this.count=Number(res.data.count);
|
|
|
},
|
|
|
async downFinanceList() {
|
|
|
let body = {
|