diff --git a/frontend/src/components/pure/navbar/index.vue b/frontend/src/components/pure/navbar/index.vue index 2057b83a6c..346585d482 100644 --- a/frontend/src/components/pure/navbar/index.vue +++ b/frontend/src/components/pure/navbar/index.vue @@ -69,7 +69,7 @@ >
@@ -145,6 +145,7 @@ import { useClipboard } from '@vueuse/core'; import { Message } from '@arco-design/web-vue'; + import MessageBox from '@/components/pure/message-box/index.vue'; import MessageCenterDrawer from '@/components/business/ms-message/MessageCenterDrawer.vue'; import TopMenu from '@/components/business/ms-top-menu/index.vue'; import TaskCenterModal from './taskCenterModal.vue'; diff --git a/frontend/src/models/projectManagement/environmental.ts b/frontend/src/models/projectManagement/environmental.ts index ff289f4488..3c83a59046 100644 --- a/frontend/src/models/projectManagement/environmental.ts +++ b/frontend/src/models/projectManagement/environmental.ts @@ -17,15 +17,14 @@ export interface EnvGroupListItem { projectList: EnvGroupProjectListItem[]; } export interface DataSourceItem { - id?: string; - name: string; - driverId?: string; - dbUrl: string; - username: string; - password?: string; - poolMax?: number; - timeout?: number; - enable?: boolean; + id: string; + dataSource: string; // 数据源名称 + driverId: string; // 驱动id + dbUrl: string; // 数据库连接url + username: string; // 用户名 + password: string; // 密码 + poolMax?: number; // 最大连接数 + timeout?: number; // 超时时间 } export interface EnvConfigItem { @@ -101,6 +100,7 @@ export interface EnvPluginScript { script: any[]; scriptType: string; tabName: string; + fields: string[]; } export interface EnvPluginListItem { pluginId: string; @@ -130,10 +130,13 @@ export interface DragParam { export interface HttpForm { id?: string; + protocol: string; description?: string; hostname: string; - enableCondition: string; + type: string; + headers: Record[]; + // pathMatchRule: { path: string; - operator: string; - headerParams: any[]; + condition: string; + // }; } diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue index 6bbbfe2f6f..391ef7ef91 100644 --- a/frontend/src/views/api-test/components/paramTable.vue +++ b/frontend/src/views/api-test/components/paramTable.vue @@ -706,7 +706,7 @@ }; const handleEnvironment = (obj: Record, record: Record) => { - record.host = obj.host; + record.domain = {}; emit('change', propsRes.value.data); }; diff --git a/frontend/src/views/project-management/environmental/components/AllParamBox.vue b/frontend/src/views/project-management/environmental/components/AllParamBox.vue index d866c63b57..035cdc894d 100644 --- a/frontend/src/views/project-management/environmental/components/AllParamBox.vue +++ b/frontend/src/views/project-management/environmental/components/AllParamBox.vue @@ -1,16 +1,16 @@ diff --git a/frontend/src/views/project-management/environmental/components/envParams/popUp/AddHttpDrawer.vue b/frontend/src/views/project-management/environmental/components/envParams/popUp/AddHttpDrawer.vue index 037c2b1d02..325520b2ca 100644 --- a/frontend/src/views/project-management/environmental/components/envParams/popUp/AddHttpDrawer.vue +++ b/frontend/src/views/project-management/environmental/components/envParams/popUp/AddHttpDrawer.vue @@ -18,7 +18,7 @@ :label="t('project.environmental.http.hostName')" :rules="[{ required: true, message: t('project.environmental.http.hostNameRequired') }]" > - - + --> + + + + http:// + https:// + + + - - - {{ t('project.environmental.http.none') }} - {{ t('project.environmental.http.module') }} - {{ t('project.environmental.http.path') }} + + + {{ t('project.environmental.http.none') }} + {{ t('project.environmental.http.module') }} + {{ t('project.environmental.http.path') }} @@ -50,7 +68,7 @@ --> - + + + + - - - + + + {{ t(item.label) }} + + + - + diff --git a/frontend/src/views/project-management/environmental/index.vue b/frontend/src/views/project-management/environmental/index.vue index 429da1ccc7..2608f9c4c2 100644 --- a/frontend/src/views/project-management/environmental/index.vue +++ b/frontend/src/views/project-management/environmental/index.vue @@ -424,8 +424,7 @@ if (envList.value[_newIndex + 1].id) { params.moveMode = 'BEFORE'; params.moveId = envList.value[_newIndex + 1].id; - } - if (envList.value[_newIndex - 1].id) { + } else if (envList.value[_newIndex - 1].id && !envList.value[_newIndex + 1].id) { params.moveMode = 'AFTER'; params.moveId = envList.value[_newIndex - 1].id; } @@ -434,8 +433,7 @@ if (evnGroupList.value[_newIndex + 1].id) { params.moveMode = 'AFTER'; params.moveId = evnGroupList.value[_newIndex + 1].id; - } - if (evnGroupList.value[_newIndex - 1].id) { + } else if (evnGroupList.value[_newIndex - 1].id && !evnGroupList.value[_newIndex + 1].id) { params.moveMode = 'BEFORE'; params.moveId = evnGroupList.value[_newIndex - 1].id; } @@ -494,8 +492,8 @@ function changeShowType(value: string | number | boolean) { if (value === 'PROJECT_GROUP') { - initGroupList(); - store.setCurrentGroupId(''); + initGroupList(keyword.value, true); + // store.setCurrentGroupId(''); } } diff --git a/frontend/src/views/project-management/environmental/locale/en-US.ts b/frontend/src/views/project-management/environmental/locale/en-US.ts index b02b72da72..fe85a0f3e0 100644 --- a/frontend/src/views/project-management/environmental/locale/en-US.ts +++ b/frontend/src/views/project-management/environmental/locale/en-US.ts @@ -45,6 +45,7 @@ export default { 'project.environmental.http.enableScope': 'Enable Scope', 'project.environmental.http.value': 'Value', 'project.environmental.http.add': 'Add HTTP', + 'project.environmental.http.edit': 'Update HTTP', 'project.environmental.http.hostName': 'Host Name', 'project.environmental.http.hostNameRequired': 'Host name is required', 'project.environmental.http.httpHostNamePlaceholder': 'For example: http://127.0.0.1', diff --git a/frontend/src/views/project-management/environmental/locale/zh-CN.ts b/frontend/src/views/project-management/environmental/locale/zh-CN.ts index 56f6ed0c31..48db3218f0 100644 --- a/frontend/src/views/project-management/environmental/locale/zh-CN.ts +++ b/frontend/src/views/project-management/environmental/locale/zh-CN.ts @@ -52,6 +52,7 @@ export default { 'project.environmental.http.enableScope': '启用范围', 'project.environmental.http.value': '值', 'project.environmental.http.add': '添加HTTP', + 'project.environmental.http.edit': '更新HTTP', 'project.environmental.http.hostName': '域名', 'project.environmental.http.hostNameRequired': '域名必填', 'project.environmental.http.httpHostNamePlaceholder': '例如:http://127.0.0.1',