feat(property): 添加水电气表当前读数功能
- 新增 currentReading 函数获取水电气表当前读数和状态 - 更新 floor-tree 组件,增加 isMeter 属性控制是否显示电表数据 - 重构 electricitySituation 页面,展示电表当前读数和状态信息 - 优化 waterSituation 页面,引入 floor-tree 组件
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { MeterInfoVO, MeterInfoForm, MeterInfoQuery } from './model'
|
||||
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common';
|
||||
import type { ID, IDS, PageResult, TreeNode } from '#/api/common'
|
||||
|
||||
import { commonExport } from '#/api/helper'
|
||||
import { requestClient } from '#/api/request'
|
||||
@@ -64,6 +64,13 @@ export function meterInfoRemove(id: ID | IDS) {
|
||||
* @param level
|
||||
* @returns 水电气树
|
||||
*/
|
||||
export function queryTree(meterType: number | string) {
|
||||
return requestClient.get<TreeNode<Number>[]>(`/property/meterInfo/tree/${meterType}`)
|
||||
export function queryTree(params?: any) {
|
||||
return requestClient.get<TreeNode<Number>[]>(`/property/meterInfo/tree`, { params })
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取水/电/气表当前读数/状态
|
||||
*/
|
||||
export function currentReading(params?: any) {
|
||||
return requestClient.get<MeterInfoVO[]>(`/property/meterInfo/currentReading`, { params })
|
||||
}
|
Reference in New Issue
Block a user