网元删除时表格锁定

This commit is contained in:
lai
2023-12-22 14:58:56 +08:00
parent fbd41e2ebf
commit 61df24059c

View File

@@ -453,9 +453,11 @@ function fnRecordDelete(row: Record<string, any>) {
title: t('common.tipTitle'), title: t('common.tipTitle'),
content: t('views.configManage.neManage.delSure', { msg: row.neName }), content: t('views.configManage.neManage.delSure', { msg: row.neName }),
onOk() { onOk() {
tableState.loading = true;
const key = 'delNotice'; const key = 'delNotice';
message.loading({ content: t('common.loading'), key }); message.loading({ content: t('common.loading'), key });
delNeInfo(row).then(res => { delNeInfo(row)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
message.success({ message.success({
content: t('common.msgSuccess', { msg: t('common.deleteText') }), content: t('common.msgSuccess', { msg: t('common.deleteText') }),
@@ -472,6 +474,9 @@ function fnRecordDelete(row: Record<string, any>) {
duration: 2, duration: 2,
}); });
} }
})
.finally(() => {
tableState.loading = false;
}); });
}, },
}); });
@@ -902,7 +907,9 @@ onMounted(() => {
</a-menu-item> </a-menu-item>
<a-menu-item <a-menu-item
key="reload" key="reload"
v-if="!['OMC', 'PCF', 'IMS', 'MME'].includes(record.neType)" v-if="
!['OMC', 'PCF', 'IMS', 'MME'].includes(record.neType)
"
> >
<SyncOutlined /> <SyncOutlined />
{{ t('views.configManage.neManage.reload') }} {{ t('views.configManage.neManage.reload') }}