From 31687125f8da2134c92e055c889f8018852c42d2 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 25 Oct 2023 17:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=85=83=E9=87=8D?= =?UTF-8?q?=E5=90=AF,=E5=90=AF=E5=8A=A8=E5=81=9C=E6=AD=A2=E5=8A=9F?= =?UTF-8?q?=E8=83=BD,=E4=BB=A5=E5=8F=8A=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/configManage/neManage.ts | 6 +++--- src/views/configManage/neManage/index.vue | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/api/configManage/neManage.ts b/src/api/configManage/neManage.ts index f4c67092..27b1b9ad 100644 --- a/src/api/configManage/neManage.ts +++ b/src/api/configManage/neManage.ts @@ -211,7 +211,7 @@ export async function listServerFile(data: Record) { */ export function startNf(data: Record) { 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', }); } @@ -223,7 +223,7 @@ export function startNf(data: Record) { */ export function restartNf(data: Record) { 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', }); } @@ -235,7 +235,7 @@ export function restartNf(data: Record) { */ export function stopNf(data: Record) { 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', }); } diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue index 1bb47223..4bb4f381 100644 --- a/src/views/configManage/neManage/index.vue +++ b/src/views/configManage/neManage/index.vue @@ -414,7 +414,7 @@ function fnModalCancel() { function fnRecordDelete(row: Record) { Modal.confirm({ title: '提示', - content: `确认删除网元编号为 【${row.id}】 的数据项?`, + content: `确认删除网元编号为 【${row.neName}】 的数据项?`, onOk() { const key = 'delNotice'; message.loading({ content: '请稍等...', key }); @@ -447,14 +447,14 @@ function fnRecordDelete(row: Record) { function fnRecordExport(row: Record) { Modal.confirm({ title: '提示', - content: `确认导出网元编号为 【${row.id}】 的配置信息?`, + content: `确认导出网元编号为 【${row.neName}】 的配置信息?`, onOk() { const key = 'exportSet'; message.loading({ content: '请稍等...', key }); exportSet(row).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `导出成功`, + content: `导出成功,请到备份管理进行下载`, key, duration: 2, }); @@ -477,7 +477,7 @@ function fnRecordExport(row: Record) { function fnRecordRestart(row: Record) { Modal.confirm({ title: '提示', - content: `确认重启网元编号为 【${row.id}】 的网元?`, + content: `确认重启网元编号为 【${row.neName}】 的网元?`, onOk() { const key = 'restartNf'; message.loading({ content: '请稍等...', key }); @@ -507,7 +507,7 @@ function fnRecordRestart(row: Record) { function fnRecordStart(row: Record) { Modal.confirm({ title: '提示', - content: `确认启动网元编号为 【${row.id}】 的网元?`, + content: `确认启动网元编号为 【${row.neName}】 的网元?`, onOk() { const key = 'startNf'; message.loading({ content: '请稍等...', key }); @@ -537,7 +537,7 @@ function fnRecordStart(row: Record) { function fnRecordStop(row: Record) { Modal.confirm({ title: '提示', - content: `确认停止网元编号为 【${row.id}】 的网元?`, + content: `确认停止网元编号为 【${row.neName}】 的网元?`, onOk() { const key = 'stopNf'; message.loading({ content: '请稍等...', key });