fix: 网元授权勾选重置

This commit is contained in:
TsMask
2024-05-24 17:41:47 +08:00
parent b1c7a068cf
commit d82d6b7b47

View File

@@ -116,7 +116,7 @@ function fnRecordState() {
Modal.confirm({
title: t('common.tipTitle'),
content: t('views.system.quickStart.stepLicenseReloadTip'),
onOk: async () => {
async onOk() {
if (state.confirmLoading) return;
state.confirmLoading = true;
// 勾选的网元数据
@@ -137,8 +137,10 @@ function fnRecordState() {
row.status = '0';
}
}
message.success(t('common.operateOk'), 3);
state.confirmLoading = false;
state.selectedRowKeys = [];
},
});
}
@@ -177,6 +179,7 @@ function fnRecordCode() {
}
state.confirmLoading = false;
state.selectedRowKeys = [];
},
});
}
@@ -287,7 +290,11 @@ onMounted(() => {
{{ t('views.system.quickStart.stepPrev') }}
</a-button>
<a-button type="dashed" @click.prevent="fnModalOpen">
<a-button
type="dashed"
:disabled="state.selectedRowKeys.length < 1"
@click.prevent="fnModalOpen"
>
<template #icon><UploadOutlined /></template>
{{ t('views.ne.neLicense.uploadBatch') }}
</a-button>
@@ -301,7 +308,6 @@ onMounted(() => {
>
<template #icon><SecurityScanOutlined /></template>
{{ t('views.system.quickStart.stepLicenseReload') }}
{{ state.selectedRowKeys.length || '' }}
</a-button>
<a-button
@@ -313,7 +319,6 @@ onMounted(() => {
>
<template #icon><DownloadOutlined /></template>
{{ t('views.system.quickStart.stepLicenseDownCode') }}
{{ state.selectedRowKeys.length || '' }}
</a-button>
<a-button type="primary" @click="fnStepNext('Done')">