fix:中英提示修复
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user