fix(UI自动化): 修复高级搜素创建人列表只展示当前项目

--bug=1014881 --user=刘瑶 【UI测试】场景列表/回收站列表/测试报告-高级搜索创建人未显示有该项目权限用户 https://www.tapd.cn/55049933/s/1205959
This commit is contained in:
nathan.liu 2022-07-21 14:00:32 +08:00 committed by nathanliu2022
parent 60f61deec8
commit 0234f63978
3 changed files with 37 additions and 4 deletions

@ -1 +1 @@
Subproject commit 27c5c3d5b2cc823dfabd50bb039847d340dfddfe
Subproject commit d39f3b38d753ce678c355b9bf2822c41f593a753

View File

@ -64,7 +64,7 @@ export const OPERATORS = {
},
}
const MS_USER_OPTIONS = { // 获取当前项目的用户列表
const MS_USER_OPTIONS = { // 获取当前工作空间的用户列表
url: "/user/ws/current/member/list",
labelKey: "name",
valueKey: "id",
@ -73,6 +73,16 @@ const MS_USER_OPTIONS = { // 获取当前项目的用户列表
}
}
// 获取当前项目的用户列表
const MS_PROJECT_USER_OPTIONS = {
url: "/user/project/member/list",
labelKey: "name",
valueKey: "id",
showLabel: option => {
return option.label + "(" + option.value + ")";
}
}
// 名称
export const NAME = {
key: "name", // 返回结果Map的key
@ -284,6 +294,29 @@ export const CREATOR = {
return operator !== OPERATORS.CURRENT_USER.value;
}
}
// 创建人(仅当前项目)
export const PROJECT_CREATOR = {
key: "creator",
name: 'MsTableSearchSelect',
label: 'api_test.creator',
operator: {
options: [OPERATORS.IN, OPERATORS.NOT_IN, OPERATORS.CURRENT_USER],
change: function (component, value) { // 运算符change事件
if (value === OPERATORS.CURRENT_USER.value) {
component.value = value;
}
}
},
options: MS_PROJECT_USER_OPTIONS,
props: {
multiple: true
},
isShow: operator => {
return operator !== OPERATORS.CURRENT_USER.value;
}
}
// 执行人
export const EXECUTOR = {
key: "executor",
@ -731,7 +764,7 @@ export const REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, STATUS, CREATOR, TR
export const REPORT_CASE_CONFIGS = [NAME, CREATE_TIME, STATUS, CREATOR, TRIGGER_MODE];
export const UI_REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, UI_REPORT_STATUS, CREATOR, UI_TRIGGER_MODE, UI_MODULE_TREE];
export const UI_REPORT_CONFIGS = [NAME, TEST_NAME, CREATE_TIME, UI_REPORT_STATUS, PROJECT_CREATOR, UI_TRIGGER_MODE, UI_MODULE_TREE];
// 测试跟踪-测试用例 列表
export const TEST_CASE_CONFIGS = [ID, NAME, TAGS, TEST_CASE_MODULE_TREE, CREATE_TIME, UPDATE_TIME, CREATOR, CASE_REVIEW_STATUS, FOLLOW_PEOPLE, CASE_DEMAND];

@ -1 +1 @@
Subproject commit 9c9fc93f55d1a48d00de550c51b2af173e49b93a
Subproject commit f2c87424ad62a875c50bedba6153eaf28000ee18