From 11715f2b47e1589cd443a13395559efdec24ae1b Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 8 Jul 2021 21:11:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E9=A1=B5=E9=9D=A2=E5=88=9B=E5=BB=BA=E4=BA=BA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/track/issue/TapdPlatform.java | 2 ++ .../io/metersphere/track/issue/client/TapdClient.java | 1 + .../components/track/case/components/ShowMoreBtn.vue | 2 +- .../components/track/case/components/TestCaseList.vue | 10 +++++++++- 4 files changed, 13 insertions(+), 2 deletions(-) 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 8dda12e7c9..15cc81bf9c 100644 --- a/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java +++ b/backend/src/main/java/io/metersphere/track/issue/TapdPlatform.java @@ -201,6 +201,8 @@ public class TapdPlatform extends AbstractIssuePlatform { .map(Issues::getId) .collect(Collectors.toList()); + LogUtil.info("ids: " + ids); + if (CollectionUtils.isEmpty(ids)) { return; } diff --git a/backend/src/main/java/io/metersphere/track/issue/client/TapdClient.java b/backend/src/main/java/io/metersphere/track/issue/client/TapdClient.java index 65fbaafc24..e5289cd1d4 100644 --- a/backend/src/main/java/io/metersphere/track/issue/client/TapdClient.java +++ b/backend/src/main/java/io/metersphere/track/issue/client/TapdClient.java @@ -51,6 +51,7 @@ public class TapdClient extends BaseClient { url += "&id={5}"; } String fields = "id,title,description,priority,severity,reporter,status"; + LogUtil.info("ids: " + idStr); ResponseEntity response = restTemplate.exchange(url, HttpMethod.GET, getAuthHttpEntity(), String.class, projectId, pageNum, limit, fields, idStr); return (TapdGetIssueResponse) getResultForObject(TapdGetIssueResponse.class, response); diff --git a/frontend/src/business/components/track/case/components/ShowMoreBtn.vue b/frontend/src/business/components/track/case/components/ShowMoreBtn.vue index d6c4b8a3e5..f211ab299c 100644 --- a/frontend/src/business/components/track/case/components/ShowMoreBtn.vue +++ b/frontend/src/business/components/track/case/components/ShowMoreBtn.vue @@ -35,7 +35,7 @@ buttons: Array, row: Object, size: Number, - hasShowed: Object + hasShowed: Boolean }, created() { if (this.trashEnable) { diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index b0f2713582..417ea51bdb 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -56,7 +56,11 @@ :field="item" :fields-width="fieldsWidth" :label="$t('commons.create_user')" - min-width="120"/> + min-width="120"> + + { this.members = data; + this.members.forEach(item => { + this.memberMap.set(item.id, item.name); + }); }); let p2 = getTestTemplate(); Promise.all([p1, p2]).then((data) => {