+
@@ -451,6 +447,8 @@
return e;
});
emit('folderNodeSelect', _selectedKeys, offspringIds);
+ } else if (node.type === 'API') {
+ emit('clickApiNode', node);
}
}
diff --git a/frontend/src/views/api-test/management/locale/en-US.ts b/frontend/src/views/api-test/management/locale/en-US.ts
index b1a520ba21..0cb611e02d 100644
--- a/frontend/src/views/api-test/management/locale/en-US.ts
+++ b/frontend/src/views/api-test/management/locale/en-US.ts
@@ -131,4 +131,17 @@ export default {
'apiTestManagement.paramsType': 'Param type',
'apiTestManagement.required': 'Required',
'apiTestManagement.requestData': 'Request data',
+ 'apiTestManagement.apiNameRequired': 'Interface name cannot be empty',
+ 'apiTestManagement.historyListTip':
+ 'View and compare historical changes. According to the rules set by the administrator, the change history data will be automatically deleted.',
+ 'apiTestManagement.changeOrder': 'Change serial number',
+ 'apiTestManagement.type': 'Type',
+ 'apiTestManagement.recover': 'Recover',
+ 'apiTestManagement.quote': 'Quote',
+ 'apiTestManagement.resourceName': 'Resource name',
+ 'apiTestManagement.resourceType': 'Resource type',
+ 'apiTestManagement.quoteType': 'Quote type',
+ 'apiTestManagement.belongOrg': 'Organization',
+ 'apiTestManagement.belongProject': 'Project',
+ 'apiTestManagement.quoteSearchPlaceholder': 'Enter ID or name to search',
};
diff --git a/frontend/src/views/api-test/management/locale/zh-CN.ts b/frontend/src/views/api-test/management/locale/zh-CN.ts
index b554f71190..a62a8ce570 100644
--- a/frontend/src/views/api-test/management/locale/zh-CN.ts
+++ b/frontend/src/views/api-test/management/locale/zh-CN.ts
@@ -125,4 +125,18 @@ export default {
'apiTestManagement.paramsType': '参数类型',
'apiTestManagement.required': '必填',
'apiTestManagement.requestData': '请求数据',
+ 'apiTestManagement.apiNameRequired': '接口名称不能为空',
+ 'apiTestManagement.historyListTip': '查看、对比历史修改,根据管理员设置规则,变更历史数据将自动删除',
+ 'apiTestManagement.changeOrder': '变更序号',
+ 'apiTestManagement.type': '类型',
+ 'apiTestManagement.recover': '恢复',
+ 'apiTestManagement.quote': '引用',
+ 'apiTestManagement.resourceName': '资源名称',
+ 'apiTestManagement.resourceType': '资源类型',
+ 'apiTestManagement.quoteType': '引用类型',
+ 'apiTestManagement.belongOrg': '所属组织',
+ 'apiTestManagement.belongProject': '所属项目',
+ 'apiTestManagement.quoteSearchPlaceholder': '输入 ID 或名称搜索',
+ 'apiTestManagement.click': '点击',
+ 'apiTestManagement.getResponse': '获取响应内容',
};
diff --git a/frontend/src/views/base/no-project/index.vue b/frontend/src/views/base/no-project/index.vue
index 71a366065e..cd12d66229 100644
--- a/frontend/src/views/base/no-project/index.vue
+++ b/frontend/src/views/base/no-project/index.vue
@@ -76,8 +76,8 @@
name: getFirstRouteNameByPermission(router.getRoutes()),
query: {
...route.query,
- organizationId: appStore.currentOrgId,
- projectId: appStore.currentProjectId,
+ orgId: appStore.currentOrgId,
+ pId: appStore.currentProjectId,
},
});
}
diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue
index 91d3fdea9d..957fa182b5 100644
--- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue
+++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue
@@ -352,7 +352,7 @@
function shareHandler() {
const { origin } = window.location;
- const url = `${origin}/#${route.path}?id=${detailInfo.value.id}&projectId=${appStore.currentProjectId}&organizationId=${appStore.currentOrgId}`;
+ const url = `${origin}/#${route.path}?id=${detailInfo.value.id}&pId=${appStore.currentProjectId}&orgId=${appStore.currentOrgId}`;
if (navigator.clipboard) {
navigator.clipboard.writeText(url).then(
() => {
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue
index 570bcf2a29..9f8268a815 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue
+++ b/frontend/src/views/case-management/caseManagementFeature/components/caseDetail.vue
@@ -86,7 +86,7 @@
Message.success(t('caseManagement.featureCase.editSuccess'));
router.push({
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE,
- query: { organizationId: route.query.orgId, projectId: route.query.pId },
+ query: { orgId: route.query.orgId, pId: route.query.pId },
});
setState(true);
// 创建用例
@@ -120,8 +120,8 @@
router.push({
name: CaseManagementRouteEnum.CASE_MANAGEMENT_CASE,
query: {
- organizationId: route.query.orgId,
- projectId: route.query.pId,
+ orgId: route.query.orgId,
+ pId: route.query.pId,
},
});
}
diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue
index fe92329aa6..54d8b669c3 100644
--- a/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue
+++ b/frontend/src/views/case-management/caseManagementFeature/components/caseDetailDrawer.vue
@@ -414,7 +414,7 @@
function shareHandler() {
const { origin } = window.location;
- const url = `${origin}/#${route.path}?id=${detailInfo.value.id}&projectId=${appStore.currentProjectId}&organizationId=${appStore.currentOrgId}`;
+ const url = `${origin}/#${route.path}?id=${detailInfo.value.id}&pId=${appStore.currentProjectId}&orgId=${appStore.currentOrgId}`;
if (navigator.clipboard) {
navigator.clipboard.writeText(url).then(
() => {
diff --git a/frontend/src/views/login/components/login-form.vue b/frontend/src/views/login/components/login-form.vue
index 31dea1bb9d..021e21b739 100644
--- a/frontend/src/views/login/components/login-form.vue
+++ b/frontend/src/views/login/components/login-form.vue
@@ -166,8 +166,8 @@
name: redirectHasPermission ? (redirect as string) : currentRouteName,
query: {
...othersQuery,
- organizationId: appStore.currentOrgId,
- projectId: appStore.currentProjectId,
+ orgId: appStore.currentOrgId,
+ pId: appStore.currentProjectId,
},
});
} catch (err) {
diff --git a/frontend/src/views/setting/system/log/components/logCards.vue b/frontend/src/views/setting/system/log/components/logCards.vue
index 7f7c38eee2..ead8ef7cfa 100644
--- a/frontend/src/views/setting/system/log/components/logCards.vue
+++ b/frontend/src/views/setting/system/log/components/logCards.vue
@@ -552,15 +552,15 @@
function handleNameClick(record: LogItem) {
const routeQuery: Record
= {
- organizationId: record.organizationId,
- projectId: record.projectId,
+ orgId: record.organizationId,
+ pId: record.projectId,
id: record.sourceId,
};
if (record.organizationId === 'SYSTEM') {
- delete routeQuery.organizationId;
+ delete routeQuery.orgId;
}
if (record.projectId === 'SYSTEM' || record.projectId === 'ORGANIZATION') {
- delete routeQuery.projectId;
+ delete routeQuery.pId;
}
jumpRouteByMapKey(record.module, routeQuery, true);
}