Revert "Revert "fix:中英提示修复""

This reverts commit 3abb4dd4bd.
This commit is contained in:
zhongzm
2024-10-24 10:12:51 +08:00
parent 3abb4dd4bd
commit 56e4419e77

View File

@@ -697,7 +697,7 @@ const saveCurrentLayout = async (layoutName: string) => {
selectedTypes: selectedNeTypes.value selectedTypes: selectedNeTypes.value
}; };
localStorage.setItem('savedLayouts', JSON.stringify(savedLayouts)); localStorage.setItem('savedLayouts', JSON.stringify(savedLayouts));
message.success(t('layout.saveSuccess', { name: t(`layout.${layoutName}`) })); message.success(t('views.perfManage.kpiKeyTarget.saveSuccess', { name: t(`views.perfManage.kpiKeyTarget.${layoutName}`)}));
}; };
//恢复已保存的布局 //恢复已保存的布局
const restoreSavedLayout = async (layoutName: string) => { const restoreSavedLayout = async (layoutName: string) => {
@@ -732,9 +732,9 @@ const restoreSavedLayout = async (layoutName: string) => {
await nextTick(); await nextTick();
await initCharts(); await initCharts();
message.success(t('layout.restoreSavedSuccess', { name: t(`layout.${layoutName}`) })); message.success(t('views.perfManage.kpiKeyTarget.restoreSavedSuccess', { name: t(`views.perfManage.kpiKeyTarget.${layoutName}`)}));
} else { } else {
message.warning(t('layout.noSavedLayout', { name: t(`layout.${layoutName}`) })); message.warning(t('views.perfManage.kpiKeyTarget.noSavedLayout', { name: t(`views.perfManage.kpiKeyTarget.${layoutName}`)}));
} }
}; };
@@ -827,7 +827,6 @@ const applyTwoColumnLayout = () => {
</a-menu> </a-menu>
</template> </template>
</a-dropdown> </a-dropdown>
<a-dropdown :disabled="isRestoring"> <a-dropdown :disabled="isRestoring">
<a-button :loading="isRestoring"> <a-button :loading="isRestoring">
{{ t('views.perfManage.kpiKeyTarget.restoreSaved') }} {{ t('views.perfManage.kpiKeyTarget.restoreSaved') }}
@@ -841,11 +840,9 @@ const applyTwoColumnLayout = () => {
</a-menu> </a-menu>
</template> </template>
</a-dropdown> </a-dropdown>
<a-button @click="applyFullWidthLayout"> <a-button @click="applyFullWidthLayout">
{{ t('views.perfManage.kpiKeyTarget.fullWidthLayout') }} {{ t('views.perfManage.kpiKeyTarget.fullWidthLayout') }}
</a-button> </a-button>
<a-button @click="applyTwoColumnLayout"> <a-button @click="applyTwoColumnLayout">
{{ t('views.perfManage.kpiKeyTarget.twoColumnLayout') }} {{ t('views.perfManage.kpiKeyTarget.twoColumnLayout') }}
</a-button> </a-button>