This commit is contained in:
墨大叔 2024-07-15 09:13:27 +08:00
parent 8e37f74602
commit 3f0b6cb5f1
2 changed files with 7 additions and 7 deletions

View File

@ -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;
// //

View File

@ -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">