refactor(数据大屏): 数据大屏跳转弹框支持配色 (#17570)

This commit is contained in:
王嘉豪
2025-12-10 15:13:44 +08:00
committed by wangjiahao
parent 7ae090d395
commit 75b902620a
7 changed files with 172 additions and 322 deletions

View File

@@ -27,6 +27,10 @@
import { computed, reactive, ref } from 'vue'
import { useEmbedded } from '@/store/modules/embedded'
import { XpackComponent } from '@/components/plugin'
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
import { storeToRefs } from 'pinia'
const dvMainStore = dvMainStoreWithOut()
const { canvasStyleData } = storeToRefs(dvMainStore)
const state = reactive({
dialogShow: false,
name: '',
@@ -39,9 +43,16 @@ const xpackIframe = ref()
const embeddedStore = useEmbedded()
const dialogStyle = computed(() => {
if (state.fullscreen) {
return {}
return [
{ '--ed-dialog-bg-color': canvasStyleData.value.dialogBackgroundColor },
{ '--ed-dialog__close-button': canvasStyleData.value.dialogButton }
]
} else {
return { height: state.height }
return [
{ '--ed-dialog-bg-color': canvasStyleData.value.dialogBackgroundColor },
{ '--ed-dialog__close-button': canvasStyleData.value.dialogButton },
{ height: state.height }
]
}
})
@@ -82,6 +93,9 @@ defineExpose({
<style lang="less">
.preview_pop_custom {
overflow: hidden;
.ed-dialog__close {
color: var(--ed-dialog__close-button);
}
.preview-main-frame-outer {
width: 100%;
height: 100%;

View File

@@ -112,6 +112,43 @@
<img-view-dialog v-model="state.dialogVisible" :image-url="state.dialogImageUrl" />
</div>
</div>
<el-divider class="m-divider" :class="'m-divider-' + themes"></el-divider>
<div class="indented-container">
<div class="indented-item">
<el-form-item
class="form-item"
:class="'form-item-' + themes"
:label="t('visualization.jump_dialog_background')"
>
<el-color-picker
v-model="canvasStyleData.dialogBackgroundColor"
:effect="themes"
:trigger-width="computedBackgroundColorPickerWidth"
is-custom
show-alpha
class="color-picker-style"
:predefine="state.predefineColors"
@change="onBackgroundChange"
/>
</el-form-item>
<el-form-item
class="form-item"
:class="'form-item-' + themes"
:label="t('visualization.jump_dialog_button')"
>
<el-color-picker
v-model="canvasStyleData.dialogButton"
:effect="themes"
:trigger-width="computedBackgroundColorPickerWidth"
is-custom
show-alpha
class="color-picker-style"
:predefine="state.predefineColors"
@change="onBackgroundChange"
/>
</el-form-item>
</div>
</div>
</el-form>
</div>
</template>
@@ -392,6 +429,15 @@ watch(
color: #757575;
}
}
.m-divider {
border-color: rgba(31, 35, 41, 0.15);
margin: 8px 0 8px;
}
.m-divider-dark {
border-color: rgba(233, 236, 241, 0.15) !important;
}
</style>
<style lang="less">

View File

@@ -711,7 +711,12 @@ export default {
delete_custom_area_tip:
'This operation will cause the map using the custom area to fail to display normally, are you sure to delete?',
please_select_area: 'Please select an area',
delete_custom_sub_area_tip: 'Are you sure you want to delete this custom area?'
delete_custom_sub_area_tip: 'Are you sure you want to delete this custom area?',
saml: {
title: 'SAML2 Settings',
request: 'Enable Request Signing',
assertion: 'Enable Assertion Signing'
}
},
components: {
dashboard_style: 'Dashboard style',
@@ -1180,6 +1185,10 @@ export default {
has_same_ds: 'There is a Datasource with the same configuration, confirm to save? ',
app_token: 'app_token',
input_app_token: 'Please enter the app_token',
doc_id: 'doc_id',
input_doc_id: 'Please enter the doc_id',
sheet_id: 'sheet_id',
input_sheet_id: 'Please select a worksheet',
table_id: 'table_id',
input_table_id: 'Please select a data table',
view_id: 'view_id',
@@ -1588,7 +1597,6 @@ export default {
chart_scatter: 'Scatter chart',
chart_multi_scatter: 'Multi-dimensional scatter',
bubble_size: 'Bubble size',
lightness: 'Lightness',
chart_treemap: 'Rectangular treemap',
drill: 'Drill',
drag_block_treemap_label: 'Block label',
@@ -1831,6 +1839,9 @@ export default {
dimension_text_style: 'Name style',
dimension_letter_space: 'Name letter spacing',
name_value_spacing: 'Name/value spacing',
name_position: 'Position',
name_position_top: 'Top',
name_position_bottom: 'Bottom',
font_family: 'Font',
letter_space: 'Letter spacing',
font_shadow: 'Font shadow',
@@ -1876,7 +1887,6 @@ export default {
scatter_tip:
'When this indicator takes effect, the bubble size attribute in the style size will be invalid',
place_name_mapping: 'Place name mapping',
used_global_map_mapping: 'Use global place name mapping',
axis_tip:
'Minimum value, maximum value, and interval are all numeric types; if not filled in, this item will be considered automatic. <br/>Please make sure that the filled value can be calculated correctly, otherwise the axis value will not be displayed normally. ',
format_tip: `The template variables are {a}, {b}, {c}, {d}, which represent the series name, data name, data value, etc. <br>
@@ -1906,7 +1916,7 @@ export default {
end_point: 'Ending point',
line: 'Line',
map_style: 'Map style',
map_style_url: 'Map style URL',
map_style_url: 'Map style URL/ID',
map_pitch: 'Pitch',
map_rotation: 'Rotation',
map_style_normal: 'Standard',
@@ -2126,7 +2136,12 @@ export default {
quota_col_label: 'Quota Column Label',
table_grand_total_label: 'Total Alias',
table_field_total_label: 'Field Alias',
table_row_header_freeze: 'Row Header Freeze'
table_row_header_freeze: 'Row Header Freeze',
value_formatter_total_out_percent: 'Show percentage',
enable_slider_tip: 'After enabling the slider, the carousel prompt will be disabled.',
liquid_show_border: 'Show Border',
liquid_border_width: 'Border Width',
liquid_border_distance: 'Border Distance'
},
dataset: {
field_value: 'Field Value',
@@ -2864,7 +2879,7 @@ export default {
must_be_met:
"Based on the current component's condition, if cascade configuration is required, the following conditions must be met:",
select_data_set:
'1. Display type: Text dropdown component and numeric dropdown component, dropdown tree; 2. Source of option values: Selection dataset',
'1. Display type: text and number drop-down component; 2. Option value source: select Dataset',
add_cascade_configuration: 'Add cascade configuration',
add_cascade_condition: 'Add cascade condition',
query_condition_level: 'Level',
@@ -2941,6 +2956,10 @@ export default {
column_name: 'Field name'
},
visualization: {
jump_dialog_background: 'Jump pop-up background color',
jump_dialog_button: 'Jump pop-up button color',
sqlbot_query_tips: 'Smart Data Query',
cur_sq_dataset: 'Currently selected dataset:',
data_match_type: 'Data match type',
select_resource: 'Select {0}',
change_screen_page: 'Change {0}',
@@ -3074,8 +3093,11 @@ export default {
ds_group_name: 'Dataset Group Name',
ds_group_position: 'Dataset Group Position',
datasource_info: 'Datasource Information',
dataset_info: 'Dataset Information',
app_datasource: 'Application Datasource',
app_dataset: 'Application dataset',
sys_datasource: 'System Datasource',
sys_dataset: 'System dataset',
select_folder: 'Please select the associated folder',
belong_folder: 'Belonging Folder',
no_content: 'No relevant content found',
@@ -3083,6 +3105,7 @@ export default {
cancel: 'Cancel',
select_ds_group_folder: 'Please select the folder for the dataset group',
app_no_datasource_tips: 'There are unconfigured datasources',
app_no_dataset_tips: 'There are unconfigured datasets',
dataset: 'Dataset',
delete: 'Delete',
delete_success: 'Delete successful',
@@ -3251,7 +3274,6 @@ export default {
selected_view: 'Selected View',
used_dataset: 'Used Dataset',
to_select_view: 'Select View',
to_select_field: 'Select Field',
show_selected_only: 'Show Selected Only',
same_dataset: 'Same Dataset',
diff_dataset: 'Different Dataset',
@@ -3317,7 +3339,6 @@ export default {
space_left: 'Left',
space_width: 'Width',
space_height: 'Height',
to_top: 'Move to Top',
down: 'Download',
mobile_style_setting: 'Style Setting',
mobile_style_setting_tips: 'Customize mobile background',
@@ -3803,9 +3824,7 @@ export default {
'flag-all': 'All',
'flag-ds': 'Datasource plug-in',
'flag-view': 'Chart plug-in',
'flag-df': 'Data reporting plug-in',
'flag-sync-source': 'Data Sync - Source plug-in',
'flag-sync-sink': 'Data Sync- Sink plug-in'
'flag-df': 'Data reporting plug-in'
},
online_map: {
geometry: 'Geographic information',
@@ -3985,8 +4004,8 @@ export default {
query_timeout: 'Query timeout',
description: 'Description',
tips: 'Tips',
replication: 'Replicas',
replication_tip: 'Number of replicas used when creating tables. The default is 1.'
replication: 'BACKEND Replicas',
replication_tip: 'Number of BE Nodes'
},
sync_summary: {
summary: 'Overview',
@@ -4233,11 +4252,6 @@ export default {
instance_title: 'Task log',
add_task: 'Add task',
lark_groups: 'Lark group',
dingtalk_groups: ' Dingtalk group',
dingtalk_groups_tips: 'Create an application robot first and add it to the group',
robot_code_place: 'Defaults to the same as APP Key',
click_add_chat: 'Please click the button below to add a group chat',
add_chat_tips: 'Only supports admin-associated accounts using the client',
larksuite_groups: 'Larksuite group',
send_setting: 'Send settings',
retrying_settings: 'Send failed retry settings',
@@ -4617,7 +4631,6 @@ export default {
notification_user: 'Notifier',
notification_email: 'Email notification',
please_enter_email: 'Please enter email, press Enter to confirm',
please_choose_dingtalk_group: 'Please select dingtalk group',
please_choose_lark_group: 'Please select lark group',
notification_content: 'Notification content',
default_msg: 'Default message',
@@ -4706,7 +4719,8 @@ export default {
'After binding, you can log in by scanning the QR code through International Lark',
bind: 'Bind',
unbind_success: 'Unbind successfully',
confirm_unbind_dingtalk: 'Are you sure you want to unbind DingTalk? ',
confirm_unbind_dingtalk: 'Are you sure you want to unbind {0}? ',
unbind_error: 'Current user origin is {0}, cannot unbind',
pls_use: 'Please use ',
bind_use_qr: 'Scan QR code to bind',
pls_use_dingtalk: 'Please use DingTalk to scan QR code to log in',
@@ -4766,14 +4780,6 @@ export default {
security: {
title: 'Security Settings'
},
setting_hmac: {
title: 'HMAC Settings',
enable: 'Enable HMAC Authentication',
clock_skew: 'Clock skew',
clock_skew_tips:
'Unit: seconds, default is 300, which allows a time difference of up to 5 minutes between the request time and server time',
clock_skew_range: 'Clock skew range is 1-{0} seconds'
},
setting_mfa: {
title: 'MFA Settings',
status: 'Global MFA Authentication Enabled',
@@ -4825,84 +4831,5 @@ export default {
content_type: 'Content Type',
del_confirm: 'Are you sure you want to delete this Webhook?',
batch_del_confirm: 'Are you sure you want to delete {0} Webhooks?'
},
spreadsheet: {
title: 'Spreadsheet',
new_folder: 'New Folder',
new_sheet: 'New Spreadsheet',
new_spreadsheet: 'New Spreadsheet',
edit_sheet: 'Edit Spreadsheet',
save: 'Save',
save_success: 'Saved successfully',
delete_success: 'Deleted successfully',
name_placeholder: 'Please enter name',
name_required: 'Name is required',
dataset_binding: 'Dataset Binding',
bind_dataset: 'Bind Dataset',
unbind_dataset: 'Unbind Dataset',
unbind_confirm: 'Are you sure to unbind this dataset?',
refresh_dataset: 'Refresh Data',
refresh_type: 'Refresh Type',
manual_refresh: 'Manual Refresh',
auto_refresh: 'Auto Refresh',
refresh_freq: 'Refresh Frequency',
range_config: 'Fill Range',
sheet_name: 'Sheet Name',
version_history: 'Version History',
publish: 'Publish',
unpublish: 'Unpublish',
published: 'Published',
unpublished: 'Unpublished',
preview: 'Preview',
export: 'Export',
share: 'Share',
copy: 'Copy',
move: 'Move',
rename: 'Rename',
delete: 'Delete',
delete_confirm: 'Are you sure to delete this spreadsheet?',
delete_folder_confirm:
'After deletion, all resources under this folder will be deleted, please proceed with caution.',
save_before_leave: 'Do you want to save before leaving?',
unsaved_changes: 'There are unsaved changes',
loading: 'Loading...',
no_data: 'No data',
save_first: 'Please save the spreadsheet first',
back: 'Back',
discard: 'Discard',
load_error: 'Failed to load',
save_error: 'Failed to save',
update_success: 'Updated successfully',
update_error: 'Failed to update',
select_required: 'Please select a dataset',
tips: 'Tips',
coming_soon: 'Feature coming soon',
toolbar: {
undo: 'Undo',
redo: 'Redo',
bold: 'Bold',
italic: 'Italic',
underline: 'Underline',
strikethrough: 'Strikethrough',
font_color: 'Font Color',
background_color: 'Background Color',
border: 'Border',
merge_cell: 'Merge Cells',
align_left: 'Align Left',
align_center: 'Center',
align_right: 'Align Right',
wrap_text: 'Wrap Text',
insert_row: 'Insert Row',
insert_column: 'Insert Column',
delete_row: 'Delete Row',
delete_column: 'Delete Column',
freeze: 'Freeze',
filter: 'Filter',
sort: 'Sort',
formula: 'Formula',
chart: 'Chart',
image: 'Image',
link: 'Link'
}
}
}

View File

@@ -3,7 +3,7 @@ export default {
display_formats: '展示形式',
dropdown_display: '下拉展示',
tile_display: '平铺展示',
month_to_yesterday: '月初至昨天當月',
month_to_yesterday: '月初至昨天',
to_this_month: '年初至本月',
up_to_options: '最多展示1000個選項',
next_week: '下週',
@@ -686,7 +686,12 @@ export default {
sub_area_tip: '請選擇省份或直轄市',
delete_custom_area_tip: '該操作會導致使用了自定義區域的地圖無法正常展示確定刪除',
please_select_area: '請選擇區域',
delete_custom_sub_area_tip: '確定刪除該自定義區域'
delete_custom_sub_area_tip: '確定刪除該自定義區域',
saml: {
title: 'SAML2 設定',
request: '開啟請求簽名',
assertion: '開啟斷言簽名'
}
},
components: {
effective_during_link: '公共連結生效',
@@ -1143,6 +1148,10 @@ export default {
has_same_ds: '存在相同配置資料來源,確認保存? ',
app_token: 'app_token',
input_app_token: '請輸入app_token',
doc_id: 'doc_id',
input_doc_id: '請輸入doc_id',
sheet_id: 'sheet_id',
input_sheet_id: '請選擇工作表',
table_id: 'table_id',
input_table_id: '請選擇數據表',
view_id: 'view_id',
@@ -1787,6 +1796,9 @@ export default {
dimension_text_style: '名稱樣式',
dimension_letter_space: '名稱字間距',
name_value_spacing: '名稱/值間距',
name_position: '位置',
name_position_top: '上方',
name_position_bottom: '下方',
font_family: '字體',
letter_space: '字間距',
font_shadow: '字體陰影',
@@ -1857,8 +1869,8 @@ export default {
start_point: '起點經緯度',
end_point: '終點經緯度',
line: '線條',
map_style: '地圖風格',
map_style_url: '地圖風格URL',
map_style: '地圖風格 URL',
map_style_url: '地圖風格URL 或 ID',
map_pitch: '傾角',
map_rotation: '旋轉',
map_style_normal: '標準',
@@ -2067,7 +2079,12 @@ export default {
quota_col_label: '指標列名',
table_grand_total_label: '總計別名',
table_field_total_label: '字段別名',
table_row_header_freeze: '行頭凍結'
table_row_header_freeze: '行頭凍結',
value_formatter_total_out_percent: '顯示佔比',
enable_slider_tip: '開啟縮略軸後,輪播提示將會失效',
liquid_show_border: '顯示邊框',
liquid_border_width: '邊框寬度',
liquid_border_distance: '邊框間距'
},
dataset: {
field_value: '欄位值',
@@ -2789,7 +2806,7 @@ export default {
condition_cascade_configuration: '查詢條件級聯配置',
not_reverse_cascade: '(僅上級能級聯下級,不可反向級聯)',
must_be_met: '基於目前查詢元件的查詢條件,如果需要進行級聯配置,需要滿足以下條件:',
select_data_set: '1. 展示類型:文字下拉元件與數字下拉元件,下拉樹2. 選項值來源:選擇資料集',
select_data_set: '1. 展示類型文字下拉元件與數字下拉元件2. 選項值來源:選擇資料集',
add_cascade_configuration: '新增級聯配置',
add_cascade_condition: '新增級聯條件',
query_condition_level: '查詢條件層級',
@@ -2860,6 +2877,10 @@ export default {
column_name: '欄位名稱'
},
visualization: {
jump_dialog_background: '跳轉彈框背景色',
jump_dialog_button: '跳轉彈框按鈕色',
sqlbot_query_tips: '智能問數',
cur_sq_dataset: '當前選擇的數據集:',
data_match_type: '資料匹配方式',
select_resource: '請選擇{0}',
change_screen_page: '更換{0}',
@@ -2990,8 +3011,11 @@ export default {
ds_group_name: '數據集分組名稱',
ds_group_position: '數據集分組位置',
datasource_info: '數據源信息',
dataset_info: '數據集信息',
app_datasource: '應用數據源',
app_dataset: '應用數據集',
sys_datasource: '系統數據源',
sys_dataset: '系統數據集',
select_folder: '請選擇所屬文件夾',
belong_folder: '所屬文件夾',
no_content: '沒有找到相關內容',
@@ -2999,6 +3023,7 @@ export default {
cancel: '取消',
select_ds_group_folder: '請選擇數據集分組所屬文件夾',
app_no_datasource_tips: '存在未配置的數據源',
app_no_dataset_tips: '存在未配置的數據集',
dataset: '數據集',
delete: '刪除',
delete_success: '刪除成功',
@@ -3163,7 +3188,6 @@ export default {
selected_view: '已選圖表',
used_dataset: '所用數據集',
to_select_view: '選擇圖表',
to_select_field: '選擇字段',
same_dataset: '同數據集',
diff_dataset: '不同數據集',
no_available_view: '暫無可用圖表',
@@ -3691,9 +3715,7 @@ export default {
'flag-all': '全部',
'flag-ds': '資料來源插件',
'flag-view': '圖表插件',
'flag-df': '資料填報插件',
'flag-sync-source': '數據同步-源數據源插件',
'flag-sync-sink': '數據同步-目標數據源插件'
'flag-df': '資料填報插件'
},
online_map: {
geometry: '地理資訊',
@@ -3709,7 +3731,7 @@ export default {
frontTimeOut: '請求超時時間 (秒)',
logLiveTime: '操作日誌保留時間 (天)',
thresholdLogLiveTime: '閾值警告記錄保留時間 (天)',
dataFillingLogLiveTime: '数据填报操作日保留时间 (天)',
dataFillingLogLiveTime: '數據填報操作日保留時間 (天)',
exportFileLiveTime: '後台匯出檔案保留時間 (天)',
platformOid: '第三方平台使用者組織',
platformRid: '第三方平台使用者角色',
@@ -3873,8 +3895,8 @@ export default {
query_timeout: '查詢超時',
description: '描述',
tips: '提示',
replication: '本數',
replication_tip: '建表副本數,預設值為 1'
replication: 'BE 複本數',
replication_tip: 'BE 節點數量'
},
sync_summary: {
summary: '概覽',
@@ -4114,11 +4136,6 @@ export default {
instance_title: '任務日誌',
add_task: '新增任務',
lark_groups: '飛書群',
dingtalk_groups: '釘釘群',
dingtalk_groups_tips: '先建立應用機器人並添加到群裡',
robot_code_place: '默認與 APP Key一致',
click_add_chat: '請點擊下方按鈕添加群聊',
add_chat_tips: '僅支持 admin 關聯帳號在客戶端使用',
larksuite_groups: '國際飛書群',
send_setting: '發送設定',
retrying_settings: '發送失敗重試設定',
@@ -4342,7 +4359,7 @@ export default {
ge_check: '值需要大於等於{0}: {1}',
status: '填報狀態',
status_0: '未填報',
status_1: '已完成'
status_1: '已提交'
},
database: {
nvarchar: '字串',
@@ -4485,7 +4502,6 @@ export default {
notification_user: '通知人',
notification_email: '郵件通知',
please_enter_email: '請輸入郵箱,回車確認',
please_choose_dingtalk_group: '請選擇釘釘群',
please_choose_lark_group: '請選擇飛書群',
notification_content: '通知內容',
default_msg: '默認消息',
@@ -4571,7 +4587,8 @@ export default {
international_lark_desc: '綁定後,您可透過國際飛書掃碼登入',
bind: '綁定',
unbind_success: '解綁成功',
confirm_unbind_dingtalk: '確定解除釘釘綁定嗎? ',
confirm_unbind_dingtalk: '確定解除{0}綁定嗎? ',
unbind_error: '當前用戶來源是{0},無法解綁',
pls_use: '請使用',
bind_use_qr: '掃描二維碼綁定',
pls_use_dingtalk: '請使用釘釘掃描二維碼登入',
@@ -4622,13 +4639,6 @@ export default {
security: {
title: '安全設置'
},
setting_hmac: {
title: 'HMAC 設定',
enable: '啟用 HMAC 認證',
clock_skew: '時鐘偏差',
clock_skew_tips: '單位默認為300即允許請求時間與伺服器時間相差5分鐘',
clock_skew_range: '時鐘偏差範圍為 1-{0} 秒'
},
setting_mfa: {
title: 'MFA 設置',
status: '全局啟用 MFA 認證',
@@ -4675,82 +4685,5 @@ export default {
content_type: '內容類型',
del_confirm: '確定刪除該 Webhook嗎',
batch_del_confirm: '確定刪除 {0} 個 Webhook嗎'
},
spreadsheet: {
title: '電子表格',
new_folder: '新建文件夾',
new_sheet: '新建表格',
new_spreadsheet: '新建電子表格',
edit_sheet: '編輯表格',
save: '保存',
save_success: '保存成功',
delete_success: '刪除成功',
name_placeholder: '請輸入名稱',
name_required: '名稱不能為空',
dataset_binding: '資料集綁定',
bind_dataset: '綁定資料集',
unbind_dataset: '解綁資料集',
refresh_dataset: '刷新資料',
refresh_type: '刷新方式',
manual_refresh: '手動刷新',
auto_refresh: '自動刷新',
refresh_freq: '刷新頻率',
range_config: '填充範圍',
sheet_name: '工作表名稱',
version_history: '版本歷史',
publish: '發布',
unpublish: '取消發布',
published: '已發布',
unpublished: '未發布',
preview: '預覽',
export: '匯出',
share: '分享',
copy: '複製',
move: '移動',
rename: '重命名',
delete: '刪除',
delete_confirm: '確定刪除該表格嗎?',
delete_folder_confirm: '刪除後,此文件夾下的所有資源都會被刪除,請謹慎操作。',
save_before_leave: '離開前是否保存?',
unsaved_changes: '有未保存的更改',
loading: '加載中...',
no_data: '暫無資料',
save_first: '請先保存表格',
back: '返回',
discard: '不保存',
load_error: '加載失敗',
save_error: '保存失敗',
update_success: '更新成功',
update_error: '更新失敗',
select_required: '請選擇資料集',
tips: '提示',
coming_soon: '功能開發中,敬請期待',
toolbar: {
undo: '撤銷',
redo: '重做',
bold: '加粗',
italic: '斜體',
underline: '下劃線',
strikethrough: '刪除線',
font_color: '字體顏色',
background_color: '背景顏色',
border: '邊框',
merge_cell: '合併儲存格',
align_left: '左對齊',
align_center: '居中',
align_right: '右對齊',
wrap_text: '自動換行',
insert_row: '插入行',
insert_column: '插入列',
delete_row: '刪除行',
delete_column: '刪除列',
freeze: '凍結',
filter: '篩選',
sort: '排序',
formula: '公式',
chart: '圖表',
image: '圖片',
link: '連結'
}
}
}

View File

@@ -3,7 +3,7 @@ export default {
display_formats: '展示形式',
dropdown_display: '下拉展示',
tile_display: '平铺展示',
month_to_yesterday: '月初至昨天当月',
month_to_yesterday: '月初至昨天',
to_this_month: '年初至本月',
up_to_options: '最多展示1000个选项',
next_week: '下周',
@@ -692,7 +692,9 @@ export default {
please_select_area: '请选择区域',
delete_custom_sub_area_tip: '确定删除该自定义区域',
saml: {
title: 'SAML2 设置'
title: 'SAML2 设置',
request: '开启请求签名',
assertion: '开启断言签名'
}
},
components: {
@@ -1151,6 +1153,10 @@ export default {
has_same_ds: '存在相同配置数据源,确认保存?',
app_token: 'app_token',
input_app_token: '请输入app_token',
doc_id: 'doc_id',
input_doc_id: '请输入doc_id',
sheet_id: 'sheet_id',
input_sheet_id: '请选择工作表',
table_id: 'table_id',
input_table_id: '请选择数据表',
view_id: 'view_id',
@@ -1795,6 +1801,9 @@ export default {
dimension_text_style: '名称样式',
dimension_letter_space: '名称字间距',
name_value_spacing: '名称/值间距',
name_position: '位置',
name_position_top: '上方',
name_position_bottom: '下方',
font_family: '字体',
letter_space: '字间距',
font_shadow: '字体阴影',
@@ -1866,7 +1875,7 @@ export default {
end_point: '终点经纬度',
line: '线条',
map_style: '地图风格',
map_style_url: '地图风格 URL',
map_style_url: '地图风格 URL 或 ID',
map_pitch: '倾角',
map_rotation: '旋转',
map_style_normal: '标准',
@@ -2076,7 +2085,12 @@ export default {
quota_col_label: '指标列名',
table_grand_total_label: '总计别名',
table_field_total_label: '字段别名',
table_row_header_freeze: '行头冻结'
table_row_header_freeze: '行头冻结',
value_formatter_total_out_percent: '显示占比',
enable_slider_tip: '开启缩略轴后,轮播提示将会失效',
liquid_show_border: '显示边框',
liquid_border_width: '边框宽度',
liquid_border_distance: '边框间距'
},
dataset: {
field_value: '字段值',
@@ -2798,7 +2812,7 @@ export default {
condition_cascade_configuration: '查询条件级联配置',
not_reverse_cascade: '(仅上级能级联下级,不可反向级联)',
must_be_met: '基于当前查询组件的查询条件,如果需要进行级联配置,需要满足以下条件:',
select_data_set: '1. 展示类型:文本下拉组件数字下拉组件,下拉树2. 选项值来源:选择数据集',
select_data_set: '1. 展示类型:文本下拉组件数字下拉组件2. 选项值来源:选择数据集',
add_cascade_configuration: '添加级联配置',
add_cascade_condition: '添加级联条件',
query_condition_level: '查询条件层级',
@@ -2869,6 +2883,10 @@ export default {
column_name: '字段名称'
},
visualization: {
jump_dialog_background: '跳转弹框背景色',
jump_dialog_button: '跳转弹框按钮色',
sqlbot_query_tips: '智能问数',
cur_sq_dataset: '当前选择的数据集:',
data_match_type: '数据匹配方式',
select_resource: '请选择{0}',
change_screen_page: '更换{0}',
@@ -3000,8 +3018,11 @@ export default {
ds_group_name: '数据集分组名称',
ds_group_position: '数据集分组位置',
datasource_info: '数据源信息',
dataset_info: '数据集信息',
app_datasource: '应用数据源',
app_dataset: '应用数据集',
sys_datasource: '系统数据源',
sys_dataset: '系统数据集',
select_folder: '请选择所属文件夹',
belong_folder: '所属文件夹',
no_content: '没有找到相关内容',
@@ -3009,6 +3030,7 @@ export default {
cancel: '取消',
select_ds_group_folder: '请选择数据集分组所属文件夹',
app_no_datasource_tips: '存在未配置的数据源',
app_no_dataset_tips: '存在未配置的数据集',
dataset: '数据集',
delete: '删除',
delete_success: '删除成功',
@@ -3172,7 +3194,6 @@ export default {
selected_view: '已选图表',
used_dataset: '所用数据集',
to_select_view: '选择图表',
to_select_field: '选择字段',
same_dataset: '同数据集',
diff_dataset: '不同数据集',
no_available_view: '暂无可用图表',
@@ -3700,9 +3721,7 @@ export default {
'flag-all': '全部',
'flag-ds': '数据源插件',
'flag-view': '图表插件',
'flag-df': '数据填报插件',
'flag-sync-source': '数据同步-源数据源插件',
'flag-sync-sink': '数据同步-目标数据源插件'
'flag-df': '数据填报插件'
},
online_map: {
geometry: '地理信息',
@@ -3879,8 +3898,8 @@ export default {
query_timeout: '查询超时',
description: '描述',
tips: '提示',
replication: '副本数',
replication_tip: '建表副本数,默认值为 1'
replication: 'BE 副本数',
replication_tip: 'BE 节点数量'
},
sync_summary: {
summary: '概览',
@@ -4121,11 +4140,6 @@ export default {
instance_title: '任务日志',
add_task: '添加任务',
lark_groups: '飞书群',
dingtalk_groups: '钉钉群',
dingtalk_groups_tips: '先创建应用机器人并添加到群里',
robot_code_place: '默认与 APP Key一致',
click_add_chat: '请点击下方按钮添加群聊',
add_chat_tips: '仅支持 admin 关联账号在客户端使用',
larksuite_groups: '国际飞书群',
send_setting: '发送设置',
retrying_settings: '发送失败重试设置',
@@ -4169,11 +4183,7 @@ export default {
retrying_rate: '重试间隔(分钟)',
please_input_positive_int: '请输入 {0} 正整数',
rate: '发送频率',
ext_wait_time: '额外等待时间(秒)',
data_permission: '数据权限',
creator_permission: '创建人权限',
reci_permission: '接收人权限',
data_permission_tips: '接收人若为系统内用户,则遵循设置的数据权限规则;否则使用创建人的权限'
ext_wait_time: '额外等待时间(秒)'
},
filter: {
title: '设置查询组件默认值',
@@ -4352,7 +4362,7 @@ export default {
ge_check: '值需要大于等于{0}: {1}',
status: '填报状态',
status_0: '未填报',
status_1: '已完成'
status_1: '已提交'
},
database: {
nvarchar: '字符串',
@@ -4497,7 +4507,6 @@ export default {
notification_user: '通知人',
notification_email: '邮件通知',
please_enter_email: '请输入邮箱,回车确认',
please_choose_dingtalk_group: '请选择钉钉群',
please_choose_lark_group: '请选择飞书群',
notification_content: '通知内容',
default_msg: '默认消息',
@@ -4584,6 +4593,7 @@ export default {
bind: '绑定',
unbind_success: '解绑成功',
confirm_unbind_dingtalk: '确定解除{0}绑定吗?',
unbind_error: '当前用户来源是{0},无法解绑',
pls_use: '请使用',
bind_use_qr: '扫描二维码绑定',
pls_use_dingtalk: '请使用钉钉扫描二维码登录',
@@ -4634,13 +4644,6 @@ export default {
security: {
title: '安全设置'
},
setting_hmac: {
title: 'HMAC 设置',
enable: '启用 HMAC 认证',
clock_skew: '时钟偏差',
clock_skew_tips: '单位默认为300即允许请求时间与服务器时间相差5分钟',
clock_skew_range: '时钟偏差范围为 1-{0} 秒'
},
setting_mfa: {
title: 'MFA 设置',
status: '全局启用 MFA 认证',
@@ -4687,83 +4690,5 @@ export default {
content_type: '内容类型',
del_confirm: '确定删除该 Webhook吗',
batch_del_confirm: '确定删除 {0} 个 Webhook吗'
},
spreadsheet: {
title: '电子表格',
new_folder: '新建文件夹',
new_sheet: '新建表格',
new_spreadsheet: '新建电子表格',
edit_sheet: '编辑表格',
save: '保存',
save_success: '保存成功',
delete_success: '删除成功',
name_placeholder: '请输入名称',
name_required: '名称不能为空',
dataset_binding: '数据集绑定',
bind_dataset: '绑定数据集',
unbind_dataset: '解绑数据集',
unbind_confirm: '确定解绑该数据集吗?',
refresh_dataset: '刷新数据',
refresh_type: '刷新方式',
manual_refresh: '手动刷新',
auto_refresh: '自动刷新',
refresh_freq: '刷新频率',
range_config: '填充范围',
sheet_name: '工作表名称',
version_history: '版本历史',
publish: '发布',
unpublish: '取消发布',
published: '已发布',
unpublished: '未发布',
preview: '预览',
export: '导出',
share: '分享',
copy: '复制',
move: '移动',
rename: '重命名',
delete: '删除',
delete_confirm: '确定删除该表格吗?',
delete_folder_confirm: '删除后,此文件夹下的所有资源都会被删除,请谨慎操作。',
save_before_leave: '离开前是否保存?',
unsaved_changes: '有未保存的更改',
loading: '加载中...',
no_data: '暂无数据',
save_first: '请先保存表格',
back: '返回',
discard: '不保存',
load_error: '加载失败',
save_error: '保存失败',
update_success: '更新成功',
update_error: '更新失败',
select_required: '请选择数据集',
tips: '提示',
coming_soon: '功能开发中,敬请期待',
toolbar: {
undo: '撤销',
redo: '重做',
bold: '加粗',
italic: '斜体',
underline: '下划线',
strikethrough: '删除线',
font_color: '字体颜色',
background_color: '背景颜色',
border: '边框',
merge_cell: '合并单元格',
align_left: '左对齐',
align_center: '居中',
align_right: '右对齐',
wrap_text: '自动换行',
insert_row: '插入行',
insert_column: '插入列',
delete_row: '删除行',
delete_column: '删除列',
freeze: '冻结',
filter: '筛选',
sort: '排序',
formula: '公式',
chart: '图表',
image: '图片',
link: '链接'
}
}
}

View File

@@ -345,6 +345,9 @@ export function historyAdaptor(
canvasStyleResult['popupButtonAvailable'] === undefined
? true
: canvasStyleResult['popupButtonAvailable'] //兼容弹框区域按钮开关
canvasStyleResult['dialogBackgroundColor'] = canvasStyleResult['dialogBackgroundColor'] || '#fff'
canvasStyleResult['dialogButton'] = canvasStyleResult['dialogButton'] || '#020408'
canvasDataResult.forEach(componentItem => {
historyItemAdaptor(componentItem, reportFilterInfo, attachInfo, canvasVersion, canvasInfo)
})

View File

@@ -130,6 +130,8 @@ export const DEFAULT_CANVAS_STYLE_DATA_DARK = {
themeId: '10002',
color: '#fff',
backgroundColor: '#020408',
dialogBackgroundColor: '#fff',
dialogButton: '#020408',
dashboard: DEFAULT_DASHBOARD_STYLE_DARK,
component: PANEL_CHART_INFO_DARK
}