diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0af6bf9..c8f1479 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -147,6 +147,37 @@ method: 'get', }) } +// 配电网支路查询 分页 +export function electricityBranchPage(params: any) { + return request({ + url: '/branchNodeInfo/listPage', + method: 'get', + params, + }) +} +// 配电网支路修改 +export function electricityBranchUpdate(data: object) { + return request({ + url: '/branchNodeInfo/update', + method: 'post', + data, + }) +} +// 配电网支路新增 +export function electricityBranchAdd(data: object) { + return request({ + url: '/branchNodeInfo/add', + method: 'post', + data, + }) +} +// 配电网支路删除 +export function electricityBranchDel(id: string) { + return request({ + url: `/branchNodeInfo/delete?id=${id}`, + method: 'post', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -155,6 +186,13 @@ params, }) } +// 光伏详情 +export function getMonitorStationDetail(id: string) { + return request({ + url: `/monitorStation/detail/${id}`, + method: 'get', + }) +} // 光伏列表 - 不分页 export function getMonitorStationList() { return request({ diff --git a/src/api/api/index.ts b/src/api/api/index.ts index 0af6bf9..c8f1479 100644 --- a/src/api/api/index.ts +++ b/src/api/api/index.ts @@ -147,6 +147,37 @@ method: 'get', }) } +// 配电网支路查询 分页 +export function electricityBranchPage(params: any) { + return request({ + url: '/branchNodeInfo/listPage', + method: 'get', + params, + }) +} +// 配电网支路修改 +export function electricityBranchUpdate(data: object) { + return request({ + url: '/branchNodeInfo/update', + method: 'post', + data, + }) +} +// 配电网支路新增 +export function electricityBranchAdd(data: object) { + return request({ + url: '/branchNodeInfo/add', + method: 'post', + data, + }) +} +// 配电网支路删除 +export function electricityBranchDel(id: string) { + return request({ + url: `/branchNodeInfo/delete?id=${id}`, + method: 'post', + }) +} // 光伏/楼宇/电动车管理列表 export function getMonitorStation(params: any) { return request({ @@ -155,6 +186,13 @@ params, }) } +// 光伏详情 +export function getMonitorStationDetail(id: string) { + return request({ + url: `/monitorStation/detail/${id}`, + method: 'get', + }) +} // 光伏列表 - 不分页 export function getMonitorStationList() { return request({ diff --git a/src/views/data/electricity/components/branchAdd.vue b/src/views/data/electricity/components/branchAdd.vue index 1c760ca..99ae787 100644 --- a/src/views/data/electricity/components/branchAdd.vue +++ b/src/views/data/electricity/components/branchAdd.vue @@ -6,22 +6,35 @@