fix: 移除无用loding和危险操作高亮红色

This commit is contained in:
TsMask
2024-05-24 16:18:52 +08:00
parent 206d3755a0
commit 1b50708786
2 changed files with 5 additions and 7 deletions

View File

@@ -119,7 +119,6 @@ function fnRecordState() {
onOk: async () => {
if (state.confirmLoading) return;
state.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);
// 勾选的网元数据
const selectRows = state.data.filter(item =>
state.selectedRowKeys.includes(item.id)
@@ -139,7 +138,6 @@ function fnRecordState() {
}
}
message.success(t('common.operateOk'), 3);
hide();
state.confirmLoading = false;
},
});
@@ -153,7 +151,6 @@ function fnRecordCode() {
onOk: async () => {
if (state.confirmLoading) return;
state.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);
// 勾选的网元数据
const selectRows = state.data.filter(item =>
state.selectedRowKeys.includes(item.id)
@@ -179,7 +176,6 @@ function fnRecordCode() {
saveAs(blob, `Activation_Request_Code_${new Date().getTime()}.txt`);
}
hide();
state.confirmLoading = false;
},
});
@@ -226,7 +222,7 @@ function fnStepNext(stepName: 'Done') {
h('p', t('views.system.quickStart.stepLicenseStepNext')),
h(
'div',
{ style: { color: '#ff4d4f' } },
{ style: { color: '#f5222d' } },
t('views.system.quickStart.stepLicenseStepNext2')
),
]),
@@ -320,7 +316,7 @@ onMounted(() => {
{{ state.selectedRowKeys.length || '' }}
</a-button>
<a-button type="primary" @click="fnStepNext('Done')">
<a-button type="primary" @click="fnStepNext('Done')">
{{ t('views.system.quickStart.stepLicenseEnd') }}
</a-button>
</a-space>

View File

@@ -77,7 +77,9 @@ function fnModalCancel() {
@ok="fnModalOk()"
@cancel="fnModalCancel()"
>
{{ t('views.system.setting.resetTipContent') }}
<div style="color: #f5222d">
{{ t('views.system.setting.resetTipContent') }}
</div>
</a-modal>
<a-col :lg="12" :md="12" :xs="24">