|
|
@@ -11,7 +11,7 @@
|
|
|
<van-sticky :offset-top="0">
|
|
|
<div class="box">
|
|
|
<div class="time-box" @click="newShow = true">
|
|
|
- <div class="text">{{ yearMonth ? yearMonth : '请选择时间' }}</div>
|
|
|
+ <div class="text">{{ yearMonth ? yearMonth : '全部' }}</div>
|
|
|
</div>
|
|
|
<div class="money1">共充值 ¥{{ count || 0 }}</div>
|
|
|
</div>
|
|
|
@@ -55,6 +55,7 @@ export default {
|
|
|
time: 0,
|
|
|
count: 0,
|
|
|
yearMonth: '',
|
|
|
+ nowDate: '',
|
|
|
empty: false,
|
|
|
newShow: false,
|
|
|
list: [
|
|
|
@@ -72,6 +73,13 @@ export default {
|
|
|
...mapState(['roomInfo', 'userInfo'])
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.nowDate = new Date();
|
|
|
+ let date = {
|
|
|
+ year: this.nowDate.getFullYear(),
|
|
|
+ month: this.nowDate.getMonth() + 1
|
|
|
+ };
|
|
|
+ let systemDate = date.year + '-' + date.month;
|
|
|
+ this.yearMonth = systemDate;
|
|
|
this.Info();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -85,6 +93,7 @@ export default {
|
|
|
sort: 'settleTime,desc',
|
|
|
yearMonth: this.yearMonth
|
|
|
};
|
|
|
+ console.log(this.yearMonth);
|
|
|
query.roomId = this.roomInfo.roomId;
|
|
|
this.$http
|
|
|
.get('/api/mp/roomFeeRecord', query)
|