部署
This commit is contained in:
parent
8e37f74602
commit
3f0b6cb5f1
|
@ -21,7 +21,7 @@ export default {
|
||||||
components: {RangePicker, SingleLineChart},
|
components: {RangePicker, SingleLineChart},
|
||||||
props: {
|
props: {
|
||||||
// 到账人id
|
// 到账人id
|
||||||
landlordId: {
|
mchId: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: null,
|
||||||
}
|
}
|
||||||
|
@ -35,13 +35,13 @@ export default {
|
||||||
year: new Date().getFullYear(),
|
year: new Date().getFullYear(),
|
||||||
status: "2",
|
status: "2",
|
||||||
groupBy: "create_month",
|
groupBy: "create_month",
|
||||||
landlordId: this.landlordId,
|
mchId: this.mchId,
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
landlordId(nv, ov) {
|
mchId(nv, ov) {
|
||||||
this.getReportData(nv);
|
this.getReportData(nv);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -50,12 +50,12 @@ export default {
|
||||||
onChangeYear(year) {
|
onChangeYear(year) {
|
||||||
console.log(year);
|
console.log(year);
|
||||||
this.queryParams.year = year;
|
this.queryParams.year = year;
|
||||||
this.getReportData(this.landlordId);
|
this.getReportData(this.mchId);
|
||||||
},
|
},
|
||||||
// 获取到账人的报表
|
// 获取到账人的报表
|
||||||
getReportData(landlordId) {
|
getReportData(mchId) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.queryParams.landlordId = landlordId | this.landlordId;
|
this.queryParams.mchId = mchId | this.mchId;
|
||||||
countBill(this.queryParams).then(response => {
|
countBill(this.queryParams).then(response => {
|
||||||
let data = response.data;
|
let data = response.data;
|
||||||
// 按月统计数据
|
// 按月统计数据
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="box-card" header="收入统计">
|
<el-card class="box-card" header="收入统计">
|
||||||
<user-recharge-report :landlord-id="userData.userId"/>
|
<user-recharge-report :mch-id="userData.userId"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="box-card">
|
<el-card class="box-card">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user