新增 删除网元时数据结构的处理

This commit is contained in:
lai
2023-12-28 20:33:35 +08:00
parent 5e463a6ce8
commit 25b5212588

View File

@@ -460,15 +460,19 @@ function fnRecordDelete(row: Record<string, any>) {
delNeInfo(row)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
key,
duration: 2,
});
tableState.loading = false;
fnGetList();
// 刷新缓存的网元信息
useNeInfoStore().fnRefreshNelist();
if (res.data.data && res.data.data.affectedRows) {
message.success({
content: t('common.msgSuccess', {
msg: t('common.deleteText'),
}),
key,
duration: 2,
});
tableState.loading = false;
fnGetList();
// 刷新缓存的网元信息
useNeInfoStore().fnRefreshNelist();
}
} else {
message.error({
content: `${res.msg}`,