style: 网元授权状态更新容量和更新时间局部变化
This commit is contained in:
@@ -245,20 +245,7 @@ function fnModalVisibleByEdit(licenseId: number) {
|
||||
function fnModalOk(e: any) {
|
||||
const next = () => {
|
||||
// 刷新授权状态
|
||||
stateNeLicense(e.neType, e.neId).then(res => {
|
||||
const row = tableState.data.find(
|
||||
(item: any) => e.neType === item.neType && e.neId === item.neId
|
||||
);
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
row.status = '1';
|
||||
row.serialNum = res.data.sn;
|
||||
row.expiryDate = res.data.expire;
|
||||
row.capability = res.data.capability;
|
||||
row.updateTime = new Date().getTime();
|
||||
} else {
|
||||
row.status = '0';
|
||||
}
|
||||
});
|
||||
stateNeLicense(e.neType, e.neId);
|
||||
// 获取列表数据
|
||||
fnGetList();
|
||||
};
|
||||
@@ -322,18 +309,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