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') }}