diff --git a/src/api/ne/neInfo.ts b/src/api/ne/neInfo.ts index 7b01629d..9f517da1 100644 --- a/src/api/ne/neInfo.ts +++ b/src/api/ne/neInfo.ts @@ -99,7 +99,7 @@ export function stateNeInfo(neType: string, neId: string) { * @param neId 网元ID * @returns object */ -export function getTypeAndIDNeInfo(neType: string, neId: string) { +export function getNeInfoByTypeAndIDNe(neType: string, neId: string) { return request({ url: '/ne/info/byTypeAndID', method: 'get', @@ -142,23 +142,48 @@ export function saveConfigFile(data: Record) { } /** - * 网元端公共配置文件读取 - * @param fileType oam_manager.yaml '' txt json yaml yml 根据指定文件类型进行解析序列出map->json + * 网元端OAM配置文件读取 + * @param neType 网元类型 + * @param neId 网元ID * @returns object */ -export function getPara5GFilee(fileType: string) { +export function getOAMFile(neType: string, neId: string) { + return request({ + url: '/ne/info/oamFile', + method: 'get', + params: { neType, neId }, + }); +} + +/** + * 网元端配置文件写入 + * @param neType 网元类型 + * @param neId 网元ID + * @param content txt内容为字符串 其他文件格式都用json对象 + * @param sync 同步到网元 + * @returns object + */ +export function saveOAMFile(data: Record) { + return request({ + url: `/ne/info/oamFile`, + method: 'put', + data: data, + }); +} + +/** + * 网元端公共配置文件读取 + * @returns object + */ +export function getPara5GFilee() { return request({ url: '/ne/info/para5GFile', method: 'get', - params: { - fileType, - }, }); } /** * 网元端公共配置文件写入 - * @param fileType yaml 解析内容数据到对应文件类型 * @param content txt内容为字符串 其他文件格式都用json对象 * @param syncNe 同步到网元端 NeType@ NeId * @returns object diff --git a/src/views/ne/neConfOAM/index.vue b/src/views/ne/neConfOAM/index.vue new file mode 100644 index 00000000..ada971a6 --- /dev/null +++ b/src/views/ne/neConfOAM/index.vue @@ -0,0 +1,303 @@ + + + + +