From df1c5b29627292185d30d4f9ca1f201b0cdafa73 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 9 Jul 2021 14:21:19 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BC=BA=E9=99=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=BB=A4=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/mapper/ext/ExtIssuesMapper.xml | 30 +++++++++---------- .../metersphere/track/issue/TapdPlatform.java | 4 +-- .../common/components/table/MsTableColumn.vue | 10 +++++-- .../components/track/issue/IssueList.vue | 10 +++++-- frontend/src/common/js/tableUtils.js | 6 ++-- 5 files changed, 35 insertions(+), 25 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 0983f88adf..adabd9ee1c 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 @@ -71,22 +71,20 @@ - - - - - - - - - - - - - - - - + + + + + + AND issues.platform IN + + #{value} + + + + + + diff --git a/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java b/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java index 15cc81bf9c..453b22a0c3 100644 --- a/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java @@ -194,8 +194,8 @@ public class TapdPlatform extends AbstractIssuePlatform { @Override public void syncIssues(Project project, List tapdIssues) { int pageNum = 1; - int limit = 200; - int count = 200; + int limit = 50; + int count = 50; List ids = tapdIssues.stream() .map(Issues::getId) diff --git a/frontend/src/business/components/common/components/table/MsTableColumn.vue b/frontend/src/business/components/common/components/table/MsTableColumn.vue index 1ff4370c44..2473b91b3b 100644 --- a/frontend/src/business/components/common/components/table/MsTableColumn.vue +++ b/frontend/src/business/components/common/components/table/MsTableColumn.vue @@ -6,7 +6,7 @@ :fixed="fixed" :filters="filters" :prop="prop" - :column-key="prop" + :column-key="columnKey ? columnKey : prop" :label="label" :sortable="sortable" :show-overflow-tooltip="showOverflowTooltip"> @@ -50,7 +50,13 @@ export default { } }, // 保存自定义列宽 - fieldsWidth: Object + fieldsWidth: Object, + columnKey: { + type: String, + default() { + return null; + } + } } }; diff --git a/frontend/src/business/components/track/issue/IssueList.vue b/frontend/src/business/components/track/issue/IssueList.vue index 2a3cb8c1a1..01fd791929 100644 --- a/frontend/src/business/components/track/issue/IssueList.vue +++ b/frontend/src/business/components/track/issue/IssueList.vue @@ -62,6 +62,7 @@ @@ -69,6 +70,7 @@