From 61df24059cf4d78d65a9164c1e604426354a4fde Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Fri, 22 Dec 2023 14:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E5=85=83=E5=88=A0=E9=99=A4=E6=97=B6?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E9=94=81=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/neManage/index.vue | 45 +++++++++++++---------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue index 90df704d..3cb2e5b6 100644 --- a/src/views/configManage/neManage/index.vue +++ b/src/views/configManage/neManage/index.vue @@ -453,26 +453,31 @@ function fnRecordDelete(row: Record) { title: t('common.tipTitle'), content: t('views.configManage.neManage.delSure', { msg: row.neName }), onOk() { + tableState.loading = true; const key = 'delNotice'; message.loading({ content: t('common.loading'), key }); - delNeInfo(row).then(res => { - if (res.code === RESULT_CODE_SUCCESS) { - message.success({ - content: t('common.msgSuccess', { msg: t('common.deleteText') }), - key, - duration: 2, - }); - fnGetList(); - // 刷新缓存的网元信息 - useNeInfoStore().fnRefreshNelist(); - } else { - message.error({ - content: `${res.msg}`, - key: key, - duration: 2, - }); - } - }); + delNeInfo(row) + .then(res => { + if (res.code === RESULT_CODE_SUCCESS) { + message.success({ + content: t('common.msgSuccess', { msg: t('common.deleteText') }), + key, + duration: 2, + }); + fnGetList(); + // 刷新缓存的网元信息 + useNeInfoStore().fnRefreshNelist(); + } else { + message.error({ + content: `${res.msg}`, + key: key, + duration: 2, + }); + } + }) + .finally(() => { + tableState.loading = false; + }); }, }); } @@ -902,7 +907,9 @@ onMounted(() => { {{ t('views.configManage.neManage.reload') }}