diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index e22264505a..df64032df2 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -26,6 +26,35 @@ export default { delete_success: 'Delete success', no_auth_tips: 'Missing menu permissions, please contact the administrator' }, + work_branch: { + recommended_dashboard: 'Recommended dashboard', + template_market_official: + 'If you have not obtained the template download link, please contact the template market official', + create_quickly: 'Create quickly', + permission_to_create: 'Missing permission to create', + new_using_template: 'Create new using template', + template_center: 'Template Center', + view_all: 'view all', + relevant_templates_found: 'No relevant templates found', + last_edited_by: 'Last edited by', + last_edit_time: 'last edit time', + big_data_screen: 'Big data screen', + dashboard: 'Dashboard', + data_set: 'data set', + data_source: 'data source', + recently_used: 'Recently Used', + my_collection: 'my collection', + relevant_content_found: 'No relevant content found', + no_content_yet: 'no content yet', + no_favorites_yet: 'No favorites yet', + search_keyword: 'search keyword', + new_page_preview: 'New page preview', + permission_denied: 'permission denied', + cancel_favorites: 'Cancel favorites', + open_dataset: 'Open dataset', + administrator_for_authorization: + 'There is no business menu permission, please contact the administrator for authorization' + }, login: { welcome: 'Welcome', btn: 'Login', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 2b26f80104..fde885df35 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -51,6 +51,33 @@ export default { no_auth_tips: '缺少菜单权限,请联系管理员', no_menu_tips: '未找到资源 401错误' }, + work_branch: { + recommended_dashboard: '推荐仪表板', + template_market_official: '未获取模板下载链接请联系模板市场官方', + create_quickly: '快速创建', + permission_to_create: '缺少创建权限', + new_using_template: '使用模板新建', + template_center: '模板中心', + view_all: '查看全部', + relevant_templates_found: '没有找到相关模板', + last_edited_by: '最近编辑人', + last_edit_time: '最近编辑时间', + big_data_screen: '数据大屏', + dashboard: '仪表板', + data_set: '数据集', + data_source: '数据源', + recently_used: '最近使用', + my_collection: '我的收藏', + relevant_content_found: '没有找到相关内容', + no_content_yet: '暂无内容', + no_favorites_yet: '暂无收藏', + permission_denied: '没有权限', + search_keyword: '搜索关键词', + new_page_preview: '新页面预览', + cancel_favorites: '取消收藏', + open_dataset: '打开数据集', + administrator_for_authorization: '没有任何业务菜单权限,请联系管理员授权' + }, dynamic_time: { set_default: '设置默认值', fix: '固定时间', diff --git a/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue b/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue index be9d907b38..2a2a8ed1df 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/ExportExcel.vue @@ -310,15 +310,6 @@ const handleSelectionChange = val => { multipleSelection.value = val } -const confirmDelete = () => { - const options = { - title: '确定删除该任务吗?', - type: 'primary', - cb: deleteField - } - // handlerConfirm(options) -} - const delAll = () => { if (multipleSelection.value.length === 0) { ElMessageBox.confirm(t('data_export.sure_del_all'), { diff --git a/core/core-frontend/src/views/workbranch/JumpLinkageBack.vue b/core/core-frontend/src/views/workbranch/JumpLinkageBack.vue deleted file mode 100644 index 2f99383e7b..0000000000 --- a/core/core-frontend/src/views/workbranch/JumpLinkageBack.vue +++ /dev/null @@ -1,406 +0,0 @@ - - - - - diff --git a/core/core-frontend/src/views/workbranch/ShortcutOption.ts b/core/core-frontend/src/views/workbranch/ShortcutOption.ts index 791e165c34..81d1e0bd96 100644 --- a/core/core-frontend/src/views/workbranch/ShortcutOption.ts +++ b/core/core-frontend/src/views/workbranch/ShortcutOption.ts @@ -36,8 +36,8 @@ class ShortcutOption { columnList: [ { field: 'type', label: t('datasource.type') }, { field: 'creator', label: t('visualization.create_by') }, - { field: 'lastEditor', label: '最近编辑人' }, - { field: 'lastEditTime', label: '最近编辑时间', type: 'time' } + { field: 'lastEditor', label: t('work_branch.last_edited_by') }, + { field: 'lastEditTime', label: t('work_branch.last_edit_time'), type: 'time' } ] }, store: { @@ -47,8 +47,8 @@ class ShortcutOption { columnList: [ { field: 'type', label: t('datasource.type') }, { field: 'creator', label: t('visualization.create_by') }, - { field: 'lastEditor', label: '最近编辑人' }, - { field: 'lastEditTime', label: '最近编辑时间', type: 'time' } + { field: 'lastEditor', label: t('work_branch.last_edited_by') }, + { field: 'lastEditTime', label: t('work_branch.last_edit_time'), type: 'time' } ] } } diff --git a/core/core-frontend/src/views/workbranch/ShortcutTable.vue b/core/core-frontend/src/views/workbranch/ShortcutTable.vue index 512d748c8a..8d5ec781a5 100644 --- a/core/core-frontend/src/views/workbranch/ShortcutTable.vue +++ b/core/core-frontend/src/views/workbranch/ShortcutTable.vue @@ -102,12 +102,12 @@ const formatterTime = (_, _column, cellValue) => { } const typeMap = { - screen: '数据大屏', - dataV: '数据大屏', - dashboard: '仪表板', - panel: '仪表板', - dataset: '数据集', - datasource: '数据源' + screen: t('work_branch.big_data_screen'), + dataV: t('work_branch.big_data_screen'), + dashboard: t('work_branch.dashboard'), + panel: t('work_branch.dashboard'), + dataset: t('work_branch.data_set'), + datasource: t('work_branch.data_source') } const loadTableData = () => { @@ -134,8 +134,8 @@ const loadTableData = () => { } */ const tablePaneList = ref([ - { title: '最近使用', name: 'recent', disabled: false }, - { title: '我的收藏', name: 'store', disabled: false }, + { title: t('work_branch.recently_used'), name: 'recent', disabled: false }, + { title: t('work_branch.my_collection'), name: 'store', disabled: false }, { title: t('visualization.share_out'), name: 'share', disabled: false } ]) @@ -223,13 +223,13 @@ const getEmptyImg = (): string => { const getEmptyDesc = (): string => { if (panelKeyword.value) { - return '没有找到相关内容' + return t('work_branch.relevant_content_found') } if (activeName.value === 'recent') { - return '暂无内容' + return t('work_branch.no_content_yet') } if (activeName.value === 'store') { - return '暂无收藏' + return t('work_branch.no_favorites_yet') } return '' } @@ -252,7 +252,11 @@ const getEmptyDesc = (): string => { >