43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 32R节点 VO
|
|
export interface EctdSystem32rVO {
|
|
id: number // 主键
|
|
elementName: string // 元素名称
|
|
name: string // 节点名称
|
|
path: string //元素路径
|
|
}
|
|
|
|
// 32R节点 API
|
|
export const EctdSystem32rApi = {
|
|
// 查询32R节点分页
|
|
getEctdSystem32rPage: async (params: any) => {
|
|
return await request.get({ url: `/sas/ectd-system32r/page`, params })
|
|
},
|
|
|
|
// 查询32R节点详情
|
|
getEctdSystem32r: async (id: number) => {
|
|
return await request.get({ url: `/sas/ectd-system32r/get?id=` + id })
|
|
},
|
|
|
|
// 新增32R节点
|
|
createEctdSystem32r: async (data: EctdSystem32rVO) => {
|
|
return await request.post({ url: `/sas/ectd-system32r/create`, data })
|
|
},
|
|
|
|
// 修改32R节点
|
|
updateEctdSystem32r: async (data: EctdSystem32rVO) => {
|
|
return await request.put({ url: `/sas/ectd-system32r/update`, data })
|
|
},
|
|
|
|
// 删除32R节点
|
|
deleteEctdSystem32r: async (id: number) => {
|
|
return await request.delete({ url: `/sas/ectd-system32r/delete?id=` + id })
|
|
},
|
|
|
|
// 导出32R节点 Excel
|
|
exportEctdSystem32r: async (params) => {
|
|
return await request.download({ url: `/sas/ectd-system32r/export-excel`, params })
|
|
},
|
|
}
|