From d3794ba904662428d2658ce7048aa397e186234d Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 16 Apr 2024 19:38:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E5=85=83=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ne/neInfo.ts | 30 +++ src/views/ne/neConfPara5G/index.vue | 359 ++++++++++++++++++++++++++++ 2 files changed, 389 insertions(+) create mode 100644 src/views/ne/neConfPara5G/index.vue diff --git a/src/api/ne/neInfo.ts b/src/api/ne/neInfo.ts index 23f17931..0db1259b 100644 --- a/src/api/ne/neInfo.ts +++ b/src/api/ne/neInfo.ts @@ -141,6 +141,36 @@ export function saveConfigFile(data: Record) { }); } +/** + * 网元端公共配置文件读取 + * @param fileType oam_manager.yaml '' txt json yaml yml 根据指定文件类型进行解析序列出map->json + * @returns object + */ +export function getPara5GFilee(fileType: string) { + return request({ + url: '/ne/info/para5GFile', + method: 'get', + params: { + fileType, + }, + }); +} + +/** + * 网元端公共配置文件写入 + * @param fileType yaml 解析内容数据到对应文件类型 + * @param content txt内容为字符串 其他文件格式都用json对象 + * @param syncNe 同步到网元端 NeType@ NeId + * @returns object + */ +export function savePara5GFile(data: Record) { + return request({ + url: `/ne/info/para5GFile`, + method: 'put', + data: data, + }); +} + /** * 网元服务操作 * @param data 对象 {neType,neId,action} diff --git a/src/views/ne/neConfPara5G/index.vue b/src/views/ne/neConfPara5G/index.vue new file mode 100644 index 00000000..3bdfd4db --- /dev/null +++ b/src/views/ne/neConfPara5G/index.vue @@ -0,0 +1,359 @@ + + + + +