style: 刷新网元授权状态更新时间局部变化
This commit is contained in:
@@ -103,18 +103,6 @@ let tableColumns = ref<TableColumnsType>([
|
|||||||
align: 'left',
|
align: 'left',
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: t('views.ne.common.capability'),
|
|
||||||
dataIndex: 'capability',
|
|
||||||
align: 'left',
|
|
||||||
customRender(opt) {
|
|
||||||
if (['UDM', 'AMF', 'MME'].includes(opt.record.neType)) {
|
|
||||||
return opt.value;
|
|
||||||
}
|
|
||||||
return '-';
|
|
||||||
},
|
|
||||||
width: 100,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: t('common.remark'),
|
title: t('common.remark'),
|
||||||
dataIndex: 'remark',
|
dataIndex: 'remark',
|
||||||
@@ -286,6 +274,7 @@ function fnRecordState(row: Record<string, any>) {
|
|||||||
row.status = '1';
|
row.status = '1';
|
||||||
row.serialNum = res.data.sn;
|
row.serialNum = res.data.sn;
|
||||||
row.expiryDate = res.data.expire;
|
row.expiryDate = res.data.expire;
|
||||||
|
row.updateTime = new Date().getTime();
|
||||||
message.success(
|
message.success(
|
||||||
`${row.neType} ${row.neId} ${dictStatus.value[1].label}`,
|
`${row.neType} ${row.neId} ${dictStatus.value[1].label}`,
|
||||||
3
|
3
|
||||||
@@ -319,18 +308,13 @@ function fnRecordStateReload() {
|
|||||||
if (row.neType.toUpperCase() === 'OMC') {
|
if (row.neType.toUpperCase() === 'OMC') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const res = await stateNeLicense(row.neType, row.neId);
|
await stateNeLicense(row.neType, row.neId);
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
|
||||||
row.status = '1';
|
|
||||||
row.serialNum = res.data.sn;
|
|
||||||
row.expiryDate = res.data.expire;
|
|
||||||
} else {
|
|
||||||
row.status = '0';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
message.success(t('common.operateOk'), 3);
|
|
||||||
hide();
|
hide();
|
||||||
|
message.success(t('common.operateOk'), 3);
|
||||||
modalState.confirmLoading = false;
|
modalState.confirmLoading = false;
|
||||||
|
// 获取列表数据
|
||||||
|
fnGetList();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user