水电表基本搭建完成

This commit is contained in:
Zy
2026-04-27 08:08:30 +08:00
parent ab736fa15f
commit 826b22e206
26 changed files with 2208 additions and 393 deletions

View File

@@ -16,8 +16,8 @@
<el-table v-loading="loading" border :data="topupRecordList">
<el-table-column label="订单号" align="center" prop="orderId" />
<el-table-column label="充值金额" align="center" prop="rechargeAmount" />
<el-table-column label="用户ID" align="center" prop="rechargeAmount" />
<el-table-column label="充值时间" align="center" prop="rechargeTime" width="180">
<el-table-column label="用户ID" align="center" prop="userId" />
<el-table-column label="充值时间" align="center" prop="rechargeTime">
<template #default="scope">
<span>{{ parseTime(scope.row.rechargeTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
@@ -51,8 +51,9 @@ const data = reactive<PageData<TopupRecordForm, TopupRecordQuery>>({
queryParams: {
pageNum: 1,
pageSize: 10,
type: undefined,
deviceCode: undefined
type: '',
deviceCode: '',
id: ''
}
});
@@ -64,14 +65,16 @@ const getList = async () => {
loading.value = true;
const res = await listTopupRecord(queryParams.value);
topupRecordList.value = res.rows;
housename.value = res.rows.pop().housname ?? '';
total.value = res.total;
loading.value = false;
};
onMounted(() => {
if (route.query.id) {
routeid.value = route.query.id;
routeid.value = route.query.deviceCode;
housename.value = (route.query.houseName as string) ?? '';
queryParams.value.type = route.query.type as string;
queryParams.value.deviceCode = route.query.deviceCode as string;
}
getList();
});