From 7de403fc49ee083e62b045f87fd12fc4e0705a96 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 15 Oct 2021 11:27:46 +0800 Subject: [PATCH] =?UTF-8?q?feat=5F=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA=5F?= =?UTF-8?q?=E7=BC=BA=E9=99=B7=E7=AE=A1=E7=90=86=5F=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E4=BA=BA=E5=A2=9E=E5=8A=A0=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtIssuesMapper.xml | 7 +++++++ .../components/track/issue/IssueList.vue | 19 ++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index 3b6e5a6b33..fa3cdd28b3 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -89,10 +89,17 @@ #{value} + + AND issues.creator IN + + #{value} + + + diff --git a/frontend/src/business/components/track/issue/IssueList.vue b/frontend/src/business/components/track/issue/IssueList.vue index fd57441afc..0168b8849f 100644 --- a/frontend/src/business/components/track/issue/IssueList.vue +++ b/frontend/src/business/components/track/issue/IssueList.vue @@ -86,8 +86,9 @@ :field="item" :fields-width="fieldsWidth" column-key="creator" + :filters="creatorFilters" sortable - min-width="100" + min-width="100px" :label="$t('custom_field.issue_creator')" prop="creatorName"> @@ -186,6 +187,7 @@ import MsMainContainer from "@/business/components/common/components/MsMainConta import {getCurrentProjectID} from "@/common/js/utils"; import {getIssueTemplate} from "@/network/custom-field-template"; import {getProjectMember} from "@/network/user"; +import {post} from "@/common/js/ajax"; export default { name: "IssueList", @@ -221,7 +223,8 @@ export default { ], issueTemplate: {}, members: [], - isThirdPart: false + isThirdPart: false, + creatorFilters: [] }; }, watch: { @@ -279,6 +282,9 @@ export default { return getCurrentProjectID(); } }, + created() { + this.getMaintainerOptions(); + }, methods: { tableDoLayout() { this.$refs.table.doLayout(); @@ -289,9 +295,16 @@ export default { getIssues() { this.page.condition.projectId = this.projectId; this.page.condition.orders = getLastTableSortField(this.tableHeaderKey); - this.page.result = getIssues(this.page); }, + getMaintainerOptions() { + this.$post('/user/project/member/tester/list', {projectId: getCurrentProjectID()}, response => { + this.creatorFilters = response.data.map(u => { + return {text: u.name, value: u.id}; + }); + }); + + }, handleEdit(data) { this.$refs.issueEdit.open(data); },