修改搜索条件被截掉的问题,新增电表列表
This commit is contained in:
@@ -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 })
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user