style: 网元授权状态更新容量和更新时间局部变化
This commit is contained in:
@@ -245,20 +245,7 @@ function fnModalVisibleByEdit(licenseId: number) {
|
|||||||
function fnModalOk(e: any) {
|
function fnModalOk(e: any) {
|
||||||
const next = () => {
|
const next = () => {
|
||||||
// 刷新授权状态
|
// 刷新授权状态
|
||||||
stateNeLicense(e.neType, e.neId).then(res => {
|
stateNeLicense(e.neType, e.neId);
|
||||||
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';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// 获取列表数据
|
// 获取列表数据
|
||||||
fnGetList();
|
fnGetList();
|
||||||
};
|
};
|
||||||
@@ -322,18 +309,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