From e05f6ebc09ab798384cff79841c6bc7efbf27ab9 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 5 Aug 2022 11:12:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E9=A1=B5=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=9A=84=E6=B5=8B=E8=AF=95=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E6=B2=A1=E5=B1=95=E7=A4=BA=E6=96=B0=E5=A2=9E=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1015676 --user=李玉号 【测试跟踪】github#16670,测试计划页高级搜索的测试阶段,没展示新增字段 https://www.tapd.cn/55049933/s/1219813 Closes #16670 --- .../common/components/search/MsTableAdvSearchBar.vue | 5 +---- .../components/track/plan/components/TestPlanList.vue | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue index 8c38eacb38..879a0faedb 100644 --- a/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue +++ b/frontend/src/business/components/common/components/search/MsTableAdvSearchBar.vue @@ -111,10 +111,7 @@ export default { setCondition(condition, component) { // 某些字段储存在自定义表但是其 custom 的值是 false // 因为需求要把这些字段在有选项分类时归为 系统字段 ? - if (component.custom || - (component.label === '严重程度' || component.label === '处理人' || component.label === '状态' - || component.label === '用例状态' || component.label === '责任人' || component.label === '用例等级' - || component.label === '测试阶段')) { + if (component.custom || ['严重程度', '处理人', '状态', '用例状态', '责任人', '用例等级'].indexOf(component.label) > -1) { this.handleCustomField(condition, component); return; } diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index cbd5a36095..aff30b8aea 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -495,6 +495,7 @@ export default { this.condition.orders = getLastTableSortField(this.tableHeaderKey); getPlanStageOption((data) => { this.stageOption = data; + this.setAdvSearchStageOption(); if (this.stageOption.length > 0) { this.stageFilters = this.stageOption; this.stageFilters.forEach((stage) => { @@ -510,6 +511,12 @@ export default { this.initTableData(); }, methods: { + setAdvSearchStageOption() { + let comp = this.condition.components.find(c => c.key === 'stage'); + if (comp) { + comp.options = this.stageOption; + } + }, currentUser: () => { return getCurrentUser(); },