网元删除时表格锁定

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

View File

@@ -453,26 +453,31 @@ 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)
if (res.code === RESULT_CODE_SUCCESS) { .then(res => {
message.success({ if (res.code === RESULT_CODE_SUCCESS) {
content: t('common.msgSuccess', { msg: t('common.deleteText') }), message.success({
key, content: t('common.msgSuccess', { msg: t('common.deleteText') }),
duration: 2, key,
}); duration: 2,
fnGetList(); });
// 刷新缓存的网元信息 fnGetList();
useNeInfoStore().fnRefreshNelist(); // 刷新缓存的网元信息
} else { useNeInfoStore().fnRefreshNelist();
message.error({ } else {
content: `${res.msg}`, message.error({
key: key, content: `${res.msg}`,
duration: 2, key: key,
}); 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') }}