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>) {

View File

@@ -26,45 +26,6 @@ export function getNeLicense(licenseId: string | number) {
});
}
/**
* 网元授权新增
* @param data 网元对象
* @returns object
*/
export function addNeLicense(data: Record<string, any>) {
return request({
url: `/ne/license`,
method: 'post',
data: data,
});
}
/**
* 网元授权修改
* @param data 网元对象
* @returns object
*/
export function updateNeLicense(data: Record<string, any>) {
return request({
url: `/ne/license`,
method: 'put',
data: data,
});
}
/**
* 网元授权删除
* @param id 信息ID
* @returns object
*/
export function delNeLicense(licenseIds: string | number) {
return request({
url: `/ne/license/${licenseIds}`,
method: 'delete',
timeout: 60_000,
});
}
/**
* 网元授权激活授权申请码
* @param neType 网元类型
@@ -81,7 +42,7 @@ export function codeNeLicense(neType: string, neId: string) {
/**
* 网元授权激活授权文件替换
* @param data 网元对象
* @param data 网元对象 {"neType": "", "neId": "", "licensePath": "", "reload": true}
* @returns object
*/
export function changeNeLicense(data: Record<string, any>) {

View File

@@ -66,13 +66,13 @@ export function delNeSoftware(softwareIds: string | number) {
}
/**
* 网元软件包安装检查
* @param data 网元对象
* 网元软件包安装
* @param data {software:软件信息,preinput:{},action:"install"}
* @returns object
*/
export function checkInstallNeSoftware(data: Record<string, any>) {
export function installNeSoftware(data: Record<string, any>) {
return request({
url: `/ne/software/checkInstall`,
url: `/ne/software/install`,
method: 'post',
data: data,
timeout: 180_000,