新增 删除网元时数据结构的处理
This commit is contained in:
@@ -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}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user