新增 删除网元时数据结构的处理
This commit is contained in:
@@ -460,8 +460,11 @@ 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) {
|
||||||
|
if (res.data.data && res.data.data.affectedRows) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
content: t('common.msgSuccess', {
|
||||||
|
msg: t('common.deleteText'),
|
||||||
|
}),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -469,6 +472,7 @@ function fnRecordDelete(row: Record<string, any>) {
|
|||||||
fnGetList();
|
fnGetList();
|
||||||
// 刷新缓存的网元信息
|
// 刷新缓存的网元信息
|
||||||
useNeInfoStore().fnRefreshNelist();
|
useNeInfoStore().fnRefreshNelist();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error({
|
message.error({
|
||||||
content: `${res.msg}`,
|
content: `${res.msg}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user