暂存工作台修改

This commit is contained in:
2024-11-12 11:10:46 +08:00
parent b9d1ee34a7
commit c8649288ff
10 changed files with 342 additions and 23 deletions

View File

@@ -14,4 +14,9 @@ export const getMeterDetail = async function({ tenement, id }) {
// 获取某一商户的电表列表
export const getTenementMeterList = async function(tid) {
return await GET(`/wx/getMeterList/${tid}`);
}
// 获取某一园区下的电表列表
export const getParkMeterList = async function({park = "", keyword = ""}) {
return await GET(`/equipment/getOperateMeterList?page=1&park=${park}&keyword=${keyword}`);
}

View File

@@ -2,8 +2,8 @@ import apis from '../utils/request';
const { GET, POST, PUT, DELETE } = apis
// 获取园区列表
export const getParkList = async function({ keyword }) {
return await GET(`/wx/getParkList?keyword=${keyword}`);
export const getParkList = async function({ keyword = "" }) {
return await GET(`/wx/getParkList?keyword=${keyword || ""}`);
}
// 获取未登录的园区列表

View File

@@ -25,4 +25,9 @@ export const returnFee = async function(data) {
// 创建对公
export const createPublicTopUp = async function(data) {
return await POST(`/wx/createPublicTopUp`, data);
}
// 后台充值
export const handleRecharge = async function(park, data) {
return await POST(`/wechatTopup/${park}`, data)
}