fix: 网元授权文件变更提供重启功能,排除OMC类型
This commit is contained in:
@@ -188,7 +188,7 @@ function fnGetList(pageNum?: number) {
|
||||
listNeLicense(toRaw(queryParams)).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||
tablePagination.total = res.total;
|
||||
tableState.data = res.rows;
|
||||
tableState.data = res.rows.filter(s => s.neType !== 'OMC');
|
||||
if (
|
||||
tablePagination.total <=
|
||||
(queryParams.pageNum - 1) * tablePagination.pageSize &&
|
||||
@@ -261,10 +261,21 @@ function fnRecordRefresh(row: Record<string, any>) {
|
||||
stateNeLicense(row.neType, row.neId)
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
// 获取列表数据
|
||||
fnGetList();
|
||||
row.status = '1';
|
||||
row.serialNum = res.data.sn;
|
||||
row.expiryDate = res.data.expire;
|
||||
message.success(
|
||||
`${row.neType} ${row.neId} ${dictStatus.value[1].label}`,
|
||||
3
|
||||
);
|
||||
} else {
|
||||
message.error(res.msg, 3);
|
||||
row.status = '0';
|
||||
row.serialNum = '-';
|
||||
row.expiryDate = '-';
|
||||
message.success(
|
||||
`${row.neType} ${row.neId} ${dictStatus.value[0].label}`,
|
||||
3
|
||||
);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
@@ -299,6 +310,7 @@ function fnRecordState() {
|
||||
row.serialNum = res.data.sn;
|
||||
row.expiryDate = res.data.expire;
|
||||
}
|
||||
tableState.selectedRowKeys = [];
|
||||
}
|
||||
message.success(t('common.operateOk'), 3);
|
||||
hide();
|
||||
@@ -393,7 +405,7 @@ onMounted(() => {
|
||||
<template #title>
|
||||
<a-space :size="8" align="center">
|
||||
<a-button
|
||||
type="default"
|
||||
type="default"
|
||||
:disabled="tableState.selectedRowKeys.length <= 0"
|
||||
:loading="modalState.confirmLoading"
|
||||
@click.prevent="fnRecordState()"
|
||||
|
||||
Reference in New Issue
Block a user