修改搜索条件被截掉的问题,新增电表列表

This commit is contained in:
2025-01-14 17:10:46 +08:00
parent b905da6035
commit 2b653ea3ed
10 changed files with 33 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
// pages/meterList/index.js
import { getTenementMeterList } from "../../service/meter";
import { alertInfo } from "../../utils/index";
import { alertInfo, loadingFunc } from "../../utils/index";
import request from '../../utils/request';
const { OK } = request;
Page({
@@ -12,7 +12,7 @@ Page({
header: [
{ key: 'address', title: '电表地址' },
{ key: "money", title: '电表余额', },
{ key: 'number', title: '电表总量' },
{ key: 'overall', title: '电表总量' },
],
list: [{}],
},
@@ -36,7 +36,9 @@ Page({
*/
onLoad(options) {
console.log('options', options)
this.getMeters({ id: options?.id })
loadingFunc(async () => {
await this.getMeters({ id: options?.id })
})
},
/**