修复网元重启,启动停止功能,以及提示
This commit is contained in:
@@ -211,7 +211,7 @@ export async function listServerFile(data: Record<string, any>) {
|
|||||||
*/
|
*/
|
||||||
export function startNf(data: Record<string, any>) {
|
export function startNf(data: Record<string, any>) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/start?ne_id=${data.neId}`,
|
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/start?neId=${data.neId}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -223,7 +223,7 @@ export function startNf(data: Record<string, any>) {
|
|||||||
*/
|
*/
|
||||||
export function restartNf(data: Record<string, any>) {
|
export function restartNf(data: Record<string, any>) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/restart?ne_id=${data.neId}`,
|
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/restart?neId=${data.neId}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -235,7 +235,7 @@ export function restartNf(data: Record<string, any>) {
|
|||||||
*/
|
*/
|
||||||
export function stopNf(data: Record<string, any>) {
|
export function stopNf(data: Record<string, any>) {
|
||||||
return request({
|
return request({
|
||||||
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/stop?ne_id=${data.neId}`,
|
url: `/api/rest/systemManagement/v1/elementType/${data.neType}/objectType/service/stop?neId=${data.neId}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ function fnModalCancel() {
|
|||||||
function fnRecordDelete(row: Record<string, any>) {
|
function fnRecordDelete(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: `确认删除网元编号为 【${row.id}】 的数据项?`,
|
content: `确认删除网元编号为 【${row.neName}】 的数据项?`,
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'delNotice';
|
const key = 'delNotice';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
@@ -447,14 +447,14 @@ function fnRecordDelete(row: Record<string, any>) {
|
|||||||
function fnRecordExport(row: Record<string, any>) {
|
function fnRecordExport(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: `确认导出网元编号为 【${row.id}】 的配置信息?`,
|
content: `确认导出网元编号为 【${row.neName}】 的配置信息?`,
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportSet';
|
const key = 'exportSet';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
exportSet(row).then(res => {
|
exportSet(row).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `导出成功`,
|
content: `导出成功,请到备份管理进行下载`,
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -477,7 +477,7 @@ function fnRecordExport(row: Record<string, any>) {
|
|||||||
function fnRecordRestart(row: Record<string, any>) {
|
function fnRecordRestart(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: `确认重启网元编号为 【${row.id}】 的网元?`,
|
content: `确认重启网元编号为 【${row.neName}】 的网元?`,
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'restartNf';
|
const key = 'restartNf';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
@@ -507,7 +507,7 @@ function fnRecordRestart(row: Record<string, any>) {
|
|||||||
function fnRecordStart(row: Record<string, any>) {
|
function fnRecordStart(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: `确认启动网元编号为 【${row.id}】 的网元?`,
|
content: `确认启动网元编号为 【${row.neName}】 的网元?`,
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'startNf';
|
const key = 'startNf';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
@@ -537,7 +537,7 @@ function fnRecordStart(row: Record<string, any>) {
|
|||||||
function fnRecordStop(row: Record<string, any>) {
|
function fnRecordStop(row: Record<string, any>) {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: `确认停止网元编号为 【${row.id}】 的网元?`,
|
content: `确认停止网元编号为 【${row.neName}】 的网元?`,
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'stopNf';
|
const key = 'stopNf';
|
||||||
message.loading({ content: '请稍等...', key });
|
message.loading({ content: '请稍等...', key });
|
||||||
|
|||||||
Reference in New Issue
Block a user