mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
Merge pull request #13921 from dataease/pr@dev-v2@chart-view-enlarge-i18n
feat(图表): 国际化(图表的查看数据页面)
This commit is contained in:
commit
d0f193d4f7
@ -45,7 +45,7 @@
|
|||||||
"
|
"
|
||||||
@click="downloadViewDetails('view')"
|
@click="downloadViewDetails('view')"
|
||||||
>
|
>
|
||||||
导出Excel
|
{{ t('chart.export_excel') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="m-button"
|
class="m-button"
|
||||||
@ -59,7 +59,7 @@
|
|||||||
requestStore.loadingMap[permissionStore.currentPath] > 0 || state.dataFrom === 'template'
|
requestStore.loadingMap[permissionStore.currentPath] > 0 || state.dataFrom === 'template'
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
导出原始明细
|
{{ t('chart.export_raw_details') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
class="m-button"
|
class="m-button"
|
||||||
@ -70,7 +70,7 @@
|
|||||||
:loading="exportLoading"
|
:loading="exportLoading"
|
||||||
@click="exportAsFormattedExcel"
|
@click="exportAsFormattedExcel"
|
||||||
>
|
>
|
||||||
<span>导出Excel(带格式)</span>
|
<span>{{ t('chart.export_excel_formatter') }}</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-divider
|
<el-divider
|
||||||
class="close-divider"
|
class="close-divider"
|
||||||
@ -80,7 +80,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-loading="downLoading"
|
v-loading="downLoading"
|
||||||
element-loading-text="导出中..."
|
:element-loading-text="t('visualization.export_loading')"
|
||||||
element-loading-background="rgba(122, 122, 122, 1)"
|
element-loading-background="rgba(122, 122, 122, 1)"
|
||||||
class="enlarge-outer"
|
class="enlarge-outer"
|
||||||
v-if="dialogShow"
|
v-if="dialogShow"
|
||||||
@ -330,7 +330,7 @@ const downloadViewDetails = (downloadType = 'view') => {
|
|||||||
const viewDataInfo = dvMainStore.getViewDataDetails(viewInfo.value.id)
|
const viewDataInfo = dvMainStore.getViewDataDetails(viewInfo.value.id)
|
||||||
const viewInfoSource = dvMainStore.getViewDetails(viewInfo.value.id)
|
const viewInfoSource = dvMainStore.getViewDetails(viewInfo.value.id)
|
||||||
if (!viewDataInfo) {
|
if (!viewDataInfo) {
|
||||||
ElMessage.error('当前无字段,无法导出')
|
ElMessage.error(t('chart.field_is_empty_export_error'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const chartExtRequest = dvMainStore.getLastViewRequestInfo(viewInfo.value.id)
|
const chartExtRequest = dvMainStore.getLastViewRequestInfo(viewInfo.value.id)
|
||||||
@ -366,7 +366,7 @@ const openMessageLoading = cb => {
|
|||||||
const customClass = `de-message-loading de-message-export`
|
const customClass = `de-message-loading de-message-export`
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: h('p', null, [
|
message: h('p', null, [
|
||||||
'后台导出中,可前往',
|
t('data_fill.exporting'),
|
||||||
h(
|
h(
|
||||||
ElButton,
|
ElButton,
|
||||||
{
|
{
|
||||||
@ -379,7 +379,7 @@ const openMessageLoading = cb => {
|
|||||||
},
|
},
|
||||||
t('data_export.export_center')
|
t('data_export.export_center')
|
||||||
),
|
),
|
||||||
'查看进度,进行下载'
|
t('data_fill.progress_to_download')
|
||||||
]),
|
]),
|
||||||
iconClass,
|
iconClass,
|
||||||
icon: h(RefreshLeft),
|
icon: h(RefreshLeft),
|
||||||
|
@ -1858,7 +1858,11 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
|
|||||||
font_family_hei_ti: 'SimHei',
|
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]`,
|
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',
|
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: {
|
dataset: {
|
||||||
scope_edit: 'only effective when editing',
|
scope_edit: 'only effective when editing',
|
||||||
|
@ -1818,7 +1818,11 @@ export default {
|
|||||||
font_family_hei_ti: '黑體',
|
font_family_hei_ti: '黑體',
|
||||||
gauge_condition_style_tips: `條件樣式設定,決定儀表板區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增<br/>例如:輸入 30,70;表示:分為3段,分別為[0,30],(30,70],(70,100]`,
|
gauge_condition_style_tips: `條件樣式設定,決定儀表板區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增<br/>例如:輸入 30,70;表示:分為3段,分別為[0,30],(30,70],(70,100]`,
|
||||||
light_theme: '浅色主題',
|
light_theme: '浅色主題',
|
||||||
dark_theme: '暗色主題'
|
dark_theme: '暗色主題',
|
||||||
|
export_excel: '導出Excel',
|
||||||
|
export_excel_formatter: '導出Excel(帶格式)',
|
||||||
|
export_raw_details: '導出原始明細',
|
||||||
|
field_is_empty_export_error: '目前無欄位,無法匯出'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: '僅編輯時生效',
|
scope_edit: '僅編輯時生效',
|
||||||
|
@ -1820,7 +1820,11 @@ export default {
|
|||||||
font_family_hei_ti: '黑体',
|
font_family_hei_ti: '黑体',
|
||||||
gauge_condition_style_tips: `条件样式设置,决定仪表盘区间颜色,为空则不开启阈值,范围(0-100),逐级递增<br/>例如:输入 30,70;表示:分为3段,分别为[0,30],(30,70],(70,100]`,
|
gauge_condition_style_tips: `条件样式设置,决定仪表盘区间颜色,为空则不开启阈值,范围(0-100),逐级递增<br/>例如:输入 30,70;表示:分为3段,分别为[0,30],(30,70],(70,100]`,
|
||||||
light_theme: '浅色主题',
|
light_theme: '浅色主题',
|
||||||
dark_theme: '深色主题'
|
dark_theme: '深色主题',
|
||||||
|
export_excel: '导出Excel',
|
||||||
|
export_excel_formatter: '导出Excel(带格式)',
|
||||||
|
export_raw_details: '导出原始明细',
|
||||||
|
field_is_empty_export_error: '当前无字段,无法导出'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
scope_edit: '仅编辑时生效',
|
scope_edit: '仅编辑时生效',
|
||||||
|
Loading…
Reference in New Issue
Block a user