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

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) delNeInfo(row)
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
message.success({ if (res.data.data && res.data.data.affectedRows) {
content: t('common.msgSuccess', { msg: t('common.deleteText') }), message.success({
key, content: t('common.msgSuccess', {
duration: 2, msg: t('common.deleteText'),
}); }),
tableState.loading = false; key,
fnGetList(); duration: 2,
// 刷新缓存的网元信息 });
useNeInfoStore().fnRefreshNelist(); tableState.loading = false;
fnGetList();
// 刷新缓存的网元信息
useNeInfoStore().fnRefreshNelist();
}
} else { } else {
message.error({ message.error({
content: `${res.msg}`, content: `${res.msg}`,