feat(图表): 国际化(图表的查看数据页面)

This commit is contained in:
jianneng-fit2cloud 2024-12-09 19:05:58 +08:00
parent 02b757f62a
commit 8ea0fba426
4 changed files with 22 additions and 10 deletions

View File

@ -45,7 +45,7 @@
"
@click="downloadViewDetails('view')"
>
导出Excel
{{ t('chart.export_excel') }}
</el-button>
<el-button
class="m-button"
@ -59,7 +59,7 @@
requestStore.loadingMap[permissionStore.currentPath] > 0 || state.dataFrom === 'template'
"
>
导出原始明细
{{ t('chart.export_raw_details') }}
</el-button>
<el-button
class="m-button"
@ -70,7 +70,7 @@
:loading="exportLoading"
@click="exportAsFormattedExcel"
>
<span>导出Excel(带格式)</span>
<span>{{ t('chart.export_excel_formatter') }}</span>
</el-button>
<el-divider
class="close-divider"
@ -80,7 +80,7 @@
</div>
<div
v-loading="downLoading"
element-loading-text="导出中..."
:element-loading-text="t('visualization.export_loading')"
element-loading-background="rgba(122, 122, 122, 1)"
class="enlarge-outer"
v-if="dialogShow"
@ -330,7 +330,7 @@ const downloadViewDetails = (downloadType = 'view') => {
const viewDataInfo = dvMainStore.getViewDataDetails(viewInfo.value.id)
const viewInfoSource = dvMainStore.getViewDetails(viewInfo.value.id)
if (!viewDataInfo) {
ElMessage.error('当前无字段,无法导出')
ElMessage.error(t('chart.field_is_empty_export_error'))
return
}
const chartExtRequest = dvMainStore.getLastViewRequestInfo(viewInfo.value.id)
@ -366,7 +366,7 @@ const openMessageLoading = cb => {
const customClass = `de-message-loading de-message-export`
ElMessage({
message: h('p', null, [
'后台导出中,可前往',
t('data_fill.exporting'),
h(
ElButton,
{
@ -379,7 +379,7 @@ const openMessageLoading = cb => {
},
t('data_export.export_center')
),
'查看进度,进行下载'
t('data_fill.progress_to_download')
]),
iconClass,
icon: h(RefreshLeft),

View File

@ -1858,7 +1858,11 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
font_family_hei_ti: 'SimHei',
gauge_condition_style_tips: `Condition style settings, determine dashboard interval colors, leave blank to disable thresholds, range (0-100), incremental levels<br>Example: input 30,70; this means: divided into 3 segments, namely [0,30], (30,70], (70,100]`,
light_theme: 'Light Theme',
dark_theme: 'Dark Theme'
dark_theme: 'Dark Theme',
export_excel: 'Excel',
export_excel_formatter: 'Excel(with Formatting)',
export_raw_details: 'Raw Details',
field_is_empty_export_error: 'No fields available, unable to export'
},
dataset: {
scope_edit: 'only effective when editing',

View File

@ -1818,7 +1818,11 @@ export default {
font_family_hei_ti: '黑體',
gauge_condition_style_tips: `條件樣式設定決定儀表板區間顏色為空則不啟用閾值範圍(0-100)逐級遞增<br/>例如輸入 30,70表示分為3段分別為[0,30],(30,70],(70,100]`,
light_theme: '浅色主題',
dark_theme: '暗色主題'
dark_theme: '暗色主題',
export_excel: '導出Excel',
export_excel_formatter: '導出Excel(帶格式)',
export_raw_details: '導出原始明細',
field_is_empty_export_error: '目前無欄位無法匯出'
},
dataset: {
scope_edit: '僅編輯時生效',

View File

@ -1820,7 +1820,11 @@ export default {
font_family_hei_ti: '黑体',
gauge_condition_style_tips: `条件样式设置决定仪表盘区间颜色为空则不开启阈值范围(0-100)逐级递增<br/>例如输入 30,70表示分为3段分别为[0,30],(30,70],(70,100]`,
light_theme: '浅色主题',
dark_theme: '深色主题'
dark_theme: '深色主题',
export_excel: '导出Excel',
export_excel_formatter: '导出Excel(带格式)',
export_raw_details: '导出原始明细',
field_is_empty_export_error: '当前无字段无法导出'
},
dataset: {
scope_edit: '仅编辑时生效',