{{ t('common.cancel') }}
{{ t('common.confirm') }}
@@ -121,7 +121,7 @@
@closed="closeField"
>
{{ t('ds.edit.field_comment_label') }}
-
+
{{ t('common.cancel') }}
{{ t('common.confirm') }}
diff --git a/frontend/src/views/ds/js/ds-type.ts b/frontend/src/views/ds/js/ds-type.ts
index 2fb2ed86..8a022be9 100644
--- a/frontend/src/views/ds/js/ds-type.ts
+++ b/frontend/src/views/ds/js/ds-type.ts
@@ -1,3 +1,9 @@
+import mysql_ds from '@/assets/datasource/icon_mysql.png'
+import excel from '@/assets/datasource/icon_excel.png'
+import oracle from '@/assets/datasource/icon_oracle.png'
+import pg from '@/assets/datasource/icon_PostgreSQL.png'
+import sqlServer from '@/assets/datasource/icon_SQL_Server.png'
+
export const dsType = [
{ label: 'MySQL', value: 'mysql' },
{ label: 'PostgreSQL', value: 'pg' },
@@ -6,4 +12,12 @@ export const dsType = [
{ label: 'Excel/CSV', value: 'excel' },
]
+export const dsTypeWithImg = [
+ { name: 'MySQL', type: 'mysql', img: mysql_ds },
+ { name: 'PostgreSQL', type: 'pg', img: pg },
+ { name: 'Microsoft SQL Server', type: 'sqlServer', img: sqlServer },
+ { name: 'Oracle', type: 'oracle', img: oracle },
+ { name: '本地 Excel/CSV', type: 'excel', img: excel },
+]
+
export const haveSchema = ['sqlServer', 'pg', 'oracle']
diff --git a/frontend/src/views/system/model/Card.vue b/frontend/src/views/system/model/Card.vue
index 5ce7cd5d..b8ecc5ae 100644
--- a/frontend/src/views/system/model/Card.vue
+++ b/frontend/src/views/system/model/Card.vue
@@ -48,14 +48,14 @@ const handleDel = () => {
-
+
-
+
diff --git a/frontend/src/views/system/model/Model.vue b/frontend/src/views/system/model/Model.vue
index fb465679..c641aad4 100644
--- a/frontend/src/views/system/model/Model.vue
+++ b/frontend/src/views/system/model/Model.vue
@@ -193,8 +193,8 @@ const submit = (item: any) => {
AI 模型配置
diff --git a/frontend/src/views/system/model/ModelList.vue b/frontend/src/views/system/model/ModelList.vue
index 710691d7..0271b025 100644
--- a/frontend/src/views/system/model/ModelList.vue
+++ b/frontend/src/views/system/model/ModelList.vue
@@ -36,8 +36,8 @@ const handleModelClick = (item: any) => {
选择供应商
@@ -49,10 +49,10 @@ const handleModelClick = (item: any) => {
{{ ele.name }}
@@ -61,7 +61,7 @@ const handleModelClick = (item: any) => {
v-if="!!keywords && !modelListWithSearch.length"
:description="'没有找到相关内容'"
img-type="tree"
- style="width: 100%;margin-top: 100px;"
+ style="width: 100%; margin-top: 100px"
/>
@@ -71,7 +71,7 @@ const handleModelClick = (item: any) => {
.model-list {
width: 800px;
margin: 0 auto;
- height: 100%;
+ max-height: 100%;
padding-top: 24px;
.title {
font-weight: 500;
@@ -86,6 +86,10 @@ const handleModelClick = (item: any) => {
justify-content: space-between;
height: calc(100% - 40px);
+ .model:nth-child(odd) {
+ margin-left: 0;
+ }
+
.model {
width: 392px;
height: 64px;
@@ -93,6 +97,7 @@ const handleModelClick = (item: any) => {
align-items: center;
padding-left: 16px;
margin-bottom: 16px;
+ margin-left: 16px;
flex-wrap: wrap;
border: 1px solid #dee0e3;
border-radius: 4px;
diff --git a/frontend/src/views/system/model/ModelListSide.vue b/frontend/src/views/system/model/ModelListSide.vue
index c256b690..c63d9c5f 100644
--- a/frontend/src/views/system/model/ModelListSide.vue
+++ b/frontend/src/views/system/model/ModelListSide.vue
@@ -43,8 +43,8 @@ const handleModelClick = (item: any) => {
@@ -56,11 +56,11 @@ const handleModelClick = (item: any) => {
{{ ele.name }}
diff --git a/frontend/src/views/system/model/ParamsForm.vue b/frontend/src/views/system/model/ParamsForm.vue
index c75f9199..6ec21448 100644
--- a/frontend/src/views/system/model/ParamsForm.vue
+++ b/frontend/src/views/system/model/ParamsForm.vue
@@ -66,11 +66,11 @@ defineExpose({
controls-position="right"
/>
-
+