fix: 网元软件/版本/授权页面

This commit is contained in:
TsMask
2024-04-11 17:36:38 +08:00
parent e2e22eabf5
commit 2642f18204
6 changed files with 1888 additions and 48 deletions

View File

@@ -111,20 +111,26 @@ export function getTypeAndIDNeInfo(neType: string, neId: string) {
* 网元端配置文件读取
* @param neType 网元类型
* @param neId 网元ID
* @param filePath 不带文件时重新覆盖返回目录列表
* @param filePath oam_manager.yaml 不带文件时重新覆盖返回目录列表
* @param fileType yaml 根据指定文件类型进行解析序列出map->json
* @returns object
*/
export function getConfigFile(neType: string, neId: string, filePath: string) {
export function getConfigFile(data: Record<string, any>) {
return request({
url: '/ne/info/configFile',
method: 'get',
params: { neType, neId, filePath },
params: data,
});
}
/**
* 网元端配置文件写入
* @param data neType网元类型 neId网元ID filePath文件 content内容 sync同步到网元
* @param neType 网元类型
* @param neId 网元ID
* @param filePath oam_manager.yaml 不带文件时重新覆盖返回目录列表
* @param fileType yaml 解析内容数据到对应文件类型
* @param content txt内容为字符串 其他文件格式都用json对象
* @param sync 同步到网元
* @returns object
*/
export function saveConfigFile(data: Record<string, any>) {