feat: 拓扑架构图状态
This commit is contained in:
@@ -8,7 +8,8 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
|
||||
* @returns object
|
||||
*/
|
||||
export async function listNeInfo(query: Record<string, any>) {
|
||||
let totalSQL = 'select count(*) as total from ne_info where (status=0 or status=3)';
|
||||
let totalSQL =
|
||||
'select count(*) as total from ne_info where (status=0 or status=3)';
|
||||
let rowsSQL = 'select * from ne_info where (status=0 or status=3) ';
|
||||
|
||||
// 系统特定顺序
|
||||
@@ -112,7 +113,9 @@ export async function getNeInfo(id: string | number) {
|
||||
export function addNeInfo(data: Record<string, any>) {
|
||||
data.port = `${data.port}`;
|
||||
return request({
|
||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/neInfo?sync2ne=${data.sync}`,
|
||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType.toLowerCase()}/objectType/neInfo?sync2ne=${
|
||||
data.sync
|
||||
}`,
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
@@ -141,7 +144,7 @@ export async function delNeInfo(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/neInfo?ne_id=${data.neId}`,
|
||||
method: 'delete',
|
||||
timeout:60*1000,
|
||||
timeout: 60 * 1000,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -260,7 +263,7 @@ export async function listServerFile(data: Record<string, any>) {
|
||||
|
||||
/**
|
||||
* 启动网元
|
||||
* @param
|
||||
* @data {neType,neId}
|
||||
* @returns bolb
|
||||
*/
|
||||
export function startNf(data: Record<string, any>) {
|
||||
@@ -273,7 +276,7 @@ export function startNf(data: Record<string, any>) {
|
||||
|
||||
/**
|
||||
* 重启网元
|
||||
* @param
|
||||
* @data {neType,neId}
|
||||
* @returns bolb
|
||||
*/
|
||||
export function restartNf(data: Record<string, any>) {
|
||||
@@ -286,7 +289,7 @@ export function restartNf(data: Record<string, any>) {
|
||||
|
||||
/**
|
||||
* 停止网元
|
||||
* @param
|
||||
* @data {neType,neId}
|
||||
* @returns bolb
|
||||
*/
|
||||
export function stopNf(data: Record<string, any>) {
|
||||
|
||||
Reference in New Issue
Block a user