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