From 2966dc5e82d4c0b42b98703c956e9fdafb209dac Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Tue, 15 Jul 2025 18:33:10 +0800 Subject: [PATCH] feat(workspace): workspace manage --- frontend/src/i18n/en.json | 1 + frontend/src/i18n/zh-CN.json | 1 + frontend/src/views/ds/DataTable.vue | 8 +++++++- frontend/src/views/ds/DatasourceForm.vue | 10 +++++----- frontend/src/views/ds/form.vue | 2 +- frontend/src/views/system/workspace/index.vue | 5 +++++ 6 files changed, 20 insertions(+), 7 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 2ebe3367..a89a4972 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -65,6 +65,7 @@ "actions": "Actions", "pieces_in_total": "Showing {ms} records out of {msg}", "test_connection": "Test Connection", + "check": "check", "connection_success": "Connection Successful", "connection_failed": "Connection Failed, Please Check Configuration", "Search Datasource": "Search Datasource", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index a08da126..12dd0e01 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -65,6 +65,7 @@ "pieces_in_total": "显示 {ms} 条数据,共 {msg} 条", "actions": "操作", "test_connection": "测试连接", + "check": "校验", "connection_success": "连接成功", "connection_failed": "连接失败,请检查配置", "Search Datasource": "搜索数据源", diff --git a/frontend/src/views/ds/DataTable.vue b/frontend/src/views/ds/DataTable.vue index bb2659c3..d73ff236 100644 --- a/frontend/src/views/ds/DataTable.vue +++ b/frontend/src/views/ds/DataTable.vue @@ -206,6 +206,7 @@ const changeStatus = (row: any) => { :key="ele.table_name" class="model" :class="currentTable.table_name === ele.table_name && 'isActive'" + :title="ele.table_name" @click="clickTable(ele)" > @@ -372,7 +373,7 @@ const changeStatus = (row: any) => { justify-content: space-between; padding: 8px; - .ed-icon:hover { + .ed-icon { cursor: pointer; color: var(--ed-color-primary); } @@ -392,11 +393,16 @@ const changeStatus = (row: any) => { padding-left: 8px; border-radius: 4px; cursor: pointer; + .name { margin-left: 8px; font-weight: 500; font-size: 14px; line-height: 22px; + max-width: 80%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } &:hover { background: #1f23291a; diff --git a/frontend/src/views/ds/DatasourceForm.vue b/frontend/src/views/ds/DatasourceForm.vue index d5dbc36c..2de3528a 100644 --- a/frontend/src/views/ds/DatasourceForm.vue +++ b/frontend/src/views/ds/DatasourceForm.vue @@ -551,15 +551,15 @@ defineExpose({
{{ t('common.cancel') }} - - {{ t('ds.test_connection') }} + + {{ t('ds.check') }} + + + {{ t('ds.previous') }} {{ t('common.next') }} - - {{ t('ds.previous') }} - {{ t('common.cancel') }} - {{ t('ds.test_connection') }} + {{ t('ds.check') }} {{ t('common.next') }} diff --git a/frontend/src/views/system/workspace/index.vue b/frontend/src/views/system/workspace/index.vue index c99a9632..a7eecff7 100644 --- a/frontend/src/views/system/workspace/index.vue +++ b/frontend/src/views/system/workspace/index.vue @@ -276,6 +276,7 @@ const handleCurrentChange = (val: number) => { :key="ele.name" class="model" :class="currentTable.name === ele.name && 'isActive'" + :title="ele.name" @click="clickTable(ele)" > @@ -609,6 +610,10 @@ const handleCurrentChange = (val: number) => { font-weight: 500; font-size: 14px; line-height: 22px; + max-width: 80%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } &:hover { background: #1f23291a;