feat(项目设置): 应用管理说明修改&补充英文

This commit is contained in:
RubyLiu 2023-11-07 17:18:30 +08:00 committed by 刘瑞斌
parent fd644b81a4
commit 3d3b1cac7f
7 changed files with 182 additions and 15 deletions

View File

@ -124,6 +124,14 @@
const systemSpan = ref(1);
const projectSpan = ref(1);
const organizationSpan = ref(1);
const workstationSpan = ref(1);
const testPlanSpan = ref(1);
const bugManagementSpan = ref(1);
const caseManagementSpan = ref(1);
const uiTestSpan = ref(1);
const apiTestSpan = ref(1);
const loadTestSpan = ref(1);
//
const allChecked = ref(false);
const allIndeterminate = ref(false);
@ -159,6 +167,41 @@
rowspan: projectSpan.value,
};
}
if (record.isWorkstation) {
return {
rowspan: workstationSpan.value,
};
}
if (record.isTestPlan) {
return {
rowspan: testPlanSpan.value,
};
}
if (record.isBugManagement) {
return {
rowspan: bugManagementSpan.value,
};
}
if (record.isCaseManagement) {
return {
rowspan: caseManagementSpan.value,
};
}
if (record.isUiTest) {
return {
rowspan: uiTestSpan.value,
};
}
if (record.isApiTest) {
return {
rowspan: apiTestSpan.value,
};
}
if (record.isLoadTest) {
return {
rowspan: loadTestSpan.value,
};
}
}
};
@ -196,6 +239,13 @@
isSystem: index === 0 && type === 'SYSTEM',
isOrganization: index === 0 && type === 'ORGANIZATION',
isProject: index === 0 && type === 'PROJECT',
isWorkstation: index === 0 && type === 'WORKSTATION',
isTestPlan: index === 0 && type === 'TEST_PLAN',
isBugManagement: index === 0 && type === 'BUG_MANAGEMENT',
isCaseManagement: index === 0 && type === 'CASE_MANAGEMENT',
isUiTest: index === 0 && type === 'UI_TEST',
isLoadTest: index === 0 && type === 'LOAD_TEST',
isApiTest: index === 0 && type === 'API_TEST',
});
});
return result;
@ -206,12 +256,24 @@
data.forEach((item) => {
if (item.type === 'SYSTEM') {
systemSpan.value = item.children?.length || 0;
}
if (item.type === 'PROJECT') {
} else if (item.type === 'PROJECT') {
projectSpan.value = item.children?.length || 0;
}
if (item.type === 'ORGANIZATION') {
} else if (item.type === 'ORGANIZATION') {
organizationSpan.value = item.children?.length || 0;
} else if (item.type === 'WORKSTATION') {
workstationSpan.value = item.children?.length || 0;
} else if (item.type === 'TEST_PLAN') {
testPlanSpan.value = item.children?.length || 0;
} else if (item.type === 'BUG_MANAGEMENT') {
bugManagementSpan.value = item.children?.length || 0;
} else if (item.type === 'CASE_MANAGEMENT') {
caseManagementSpan.value = item.children?.length || 0;
} else if (item.type === 'UI_TEST') {
uiTestSpan.value = item.children?.length || 0;
} else if (item.type === 'API_TEST') {
apiTestSpan.value = item.children?.length || 0;
} else if (item.type === 'LOAD_TEST') {
loadTestSpan.value = item.children?.length || 0;
}
result.push(...makeData(item, item.id));
});

View File

@ -17,7 +17,17 @@ export interface CustomMoreActionItem {
}
export type RenameType = 'rename' | 'auth';
export type AuthScopeType = 'SYSTEM' | 'PROJECT' | 'ORGANIZATION';
export type AuthScopeType =
| 'SYSTEM'
| 'PROJECT'
| 'ORGANIZATION'
| 'WORKSTATION'
| 'TEST_PLAN'
| 'BUG_MANAGEMENT'
| 'CASE_MANAGEMENT'
| 'API_TEST'
| 'UI_TEST'
| 'LOAD_TEST';
export interface UserGroupItem {
// 组ID
@ -104,6 +114,14 @@ export interface AuthTableItem {
isSystem?: boolean;
isOrganization?: boolean;
isProject?: boolean;
isWorkstation?: boolean;
isTestPlan?: boolean;
isBugManagement?: boolean;
isCaseManagement?: boolean;
isApiTest?: boolean;
isUiTest?: boolean;
isLoadTest?: boolean;
indeterminate?: boolean;
}
export interface SavePermissions {

View File

@ -62,7 +62,7 @@
ref="batchFormRef"
:models="batchFormModels"
:form-mode="ruleFormMode"
add-text="project.menu.rule.addResource"
add-text="project.menu.rule.addRule"
:default-vals="currentList"
show-enable
:is-show-drag="false"
@ -114,7 +114,7 @@
const headerOptions = computed(() => [
{ label: 'Response Headers', value: 'headers' },
{ label: 'Response Data', value: 'data' },
{ label: 'Response Body', value: 'body' },
{ label: 'Response Code', value: 'code' },
]);
const relationOptions = computed(() => [
{ label: '包含', value: 'contain' },

View File

@ -1,3 +1,77 @@
export default {
'project.menu.management': 'Add Member',
'project.menu.management': 'Application Management',
'project.menu.manageTip':
'You can configure the switch of each function according to the usage scenario. After closing, the function entry will be hidden, and members cannot access this function and data; the data already generated will not be affected by this rule; when it is turned on again, it will be restored to the state before closing',
'project.menu.name': 'Menu Name',
'project.menu.description': 'Description',
'project.menu.pleaseConfig': 'Please Configure',
'project.menu.count': 'Items',
'project.menu.WORKSTATION_SYNC_RULE': 'Interface Test Update Synchronization Rule',
'project.menu.TEST_PLAN_CLEAN_REPORT': 'Report Retention Time Range',
'project.menu.TEST_PLAN_SHARE_REPORT': 'Report Link Validity Period',
'project.menu.UI_CLEAN_REPORT': 'Report Retention Time Range',
'project.menu.UI_SHARE_REPORT': 'Report Link Validity Period',
'project.menu.UI_RESOURCE_POOL': 'Execution Resource Pool',
'project.menu.UI_RESOURCE_POOL_TIP': 'The current resource pool is: {name}; you can switch resource pools',
'project.menu.PERFORMANCE_TEST_CLEAN_REPORT': 'Report Retention Time Range',
'project.menu.PERFORMANCE_TEST_SHARE_REPORT': 'Report Link Validity Period',
'project.menu.PERFORMANCE_TEST_SCRIPT_REVIEWER': 'Script Review',
'project.menu.PERFORMANCE_TEST_SCRIPT_REVIEWER_TIP':
'The interface case contains script steps that need to be reviewed by a designated user; the reviewer can be changed',
'project.menu.API_URL_REPEATABLE': 'Interface Definition URL Can Be Repeated',
'project.menu.API_CLEAN_REPORT': 'Report Retention Time Range',
'project.menu.API_SHARE_REPORT': 'Report Link Validity Period',
'project.menu.API_RESOURCE_POOL': 'Execution Resource Pool',
'project.menu.API_RESOURCE_POOL_TIP': 'The current resource pool is: {name}; you can switch resource pools',
'project.menu.API_SCRIPT_REVIEWER': 'Script Review',
'project.menu.API_SCRIPT_REVIEWER_TIP':
'The interface case contains script steps that need to be reviewed by a designated user; the reviewer can be changed',
'project.menu.API_ERROR_REPORT_RULE': 'False Report Rule',
'project.menu.API_ERROR_REPORT_RULE_TIP':
'When the interface return result matches the false report rule, the interface result will be treated as a false report',
'project.menu.API_SYNC_CASE': 'Change Sync CASE',
'project.menu.CASE_PUBLIC': 'Public Case Library',
'project.menu.CASE_RE_REVIEW': 'Resubmit for Review',
'project.menu.CASE_RELATED': 'Related Requirements',
'project.menu.BUG_SYNC': 'Sync Defects',
'project.menu.SYNC_ENABLE': 'Status',
'project.menu.MECHANISM': 'Interface Test Update Synchronization Rule',
'project.menu.row1': 'The system displays the data that meets the set rules in my to-do list-to be updated',
'project.menu.row2': 'Sync the defects created by the platform to the third-party project management platform',
'project.menu.row3': 'You can add cases to the public case library for shared use',
'project.menu.row4': 'You can associate cases with third-party project management platforms',
'project.menu.row5':
'When the case changes during the review activity, the case status automatically switches to resubmit for review',
'project.menu.row6': 'After turning on, the interface definition module repetitiveness check will not check the URL',
'project.menu.row7': 'When the interface definition changes, the interface CASE is automatically synchronized',
'project.menu.notConfig': 'Third-party information is not configured, click',
'project.menu.configure': 'to configure',
'project.menu.status': 'Status',
'project.menu.incrementalSync': 'Incremental Sync',
'project.menu.incrementalSyncTip': 'Only sync the changes in the defect content created in MeterSphere',
'project.menu.fullSync': 'Full Sync',
'project.menu.fullSyncTip': 'Sync all defects on the third-party platform to the MeterSphere platform',
'project.menu.platformPlaceholder':
'No third-party platform integrated yet, please contact the organization administrator to integrate',
'project.menu.platformLabel': 'Third-party Project Management Platform',
'project.menu.syncMechanism': 'Sync Mechanism',
'project.menu.CRON_EXPRESSION': 'Sync Frequency',
'project.menu.projectKey': 'Project Key',
'project.menu.projectId': 'Project ID',
'project.menu.organizationId': 'Organization ID',
'project.menu.azureId': 'Azure Filter ID',
'project.menu.defectType': 'Defect Type',
'project.menu.howGetJiraKey': 'How to get JIRA project key',
'project.menu.preview': 'Preview',
'project.menu.pleaseInputJiraKey': 'Please enter JIRA project key',
'project.menu.addFalseAlertRules': 'Add False Alert Rules',
'project.menu.nameSearch': 'Search by Name',
// Sync defects
'project.menu.defect.enableTip':
'Turn on: The defects created by the platform are synced to the third-party project management platform',
'project.menu.defect.closeTip':
'Turn off: The defects created by the platform cannot be synced to the third-party project management platform',
'project.menu.defect.customLabel': 'Custom Frequency',
};

View File

@ -80,12 +80,11 @@ export default {
'project.menu.rule.ruleNameNotNull': '规则名称不能为空',
'project.menu.rule.ruleNameRepeat': '名称重复请修改',
'project.menu.rule.expressionNotNull': '限制条件不能为空',
'project.menu.rule.addResource': '添加资源',
'project.menu.rule.addRule': '添加规则',
'project.menu.rule.disableRule': '禁用规则',
'project.menu.rule.disableRuleTip': '禁用后,不展示在规则切换列表',
'project.menu.rule.disableRuleTip': '禁用后,接口返回结果不再进行该误报规则匹配。',
'project.menu.rule.enableRule': '启用规则',
'project.menu.rule.enableRuleTip': '开启后,展示在规则切换列表',
'project.menu.rule.enableRuleTip': '启用后,接口返回结果会优先进行误报规则匹配。',
'project.menu.rule.deleteRule': '确认删除 {size} 条误报规则吗?',
'project.menu.rule.deleteRuleTip': '删除后,仅对新执行的测试报告生效,请谨慎操作!',
'project.menu.rule.goBackMenu': '返回应用管理',
};

View File

@ -37,9 +37,16 @@ export default {
confirm: 'Confirm',
global: 'Global',
searchPlaceholder: 'Search by ID/Name',
SYSTEM: '系统',
PROJECT: '项目',
ORGANIZATION: '组织',
SYSTEM: 'System',
PROJECT: 'Project',
ORGANIZATION: 'Organization',
WORKSTATION: 'Workstation',
TEST_PLAN: 'Test plan',
BUG_MANAGEMENT: 'Bug management',
CASE_MANAGEMENT: 'Case management',
UI_TEST: 'UI test',
API_TEST: 'API test',
LOAD_TEST: 'Performance test',
isDeleteUserGroup: 'Delete or not: {name}?',
beforeDeleteUserGroup:
'After deletion, the project data under the organization will be deleted together. Please operate with caution!',

View File

@ -40,6 +40,13 @@ export default {
SYSTEM: '系统',
PROJECT: '项目',
ORGANIZATION: '组织',
WORKSTATION: '工作台',
TEST_PLAN: '测试计划',
BUG_MANAGEMENT: '缺陷管理',
CASE_MANAGEMENT: '用例管理',
UI_TEST: 'UI测试',
API_TEST: 'API测试',
LOAD_TEST: '性能测试',
isDeleteUserGroup: '是否删除: {name}?',
beforeDeleteUserGroup: '删除后,该组织下的项目数据将一起删除,请谨慎操作!',
confirmDelete: '确认删除',