From 334b607b94d252a6bb7149a43b021c62c6fac164 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Sat, 18 Sep 2021 14:30:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=B7=B2=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/track/service/TestCaseReviewService.java | 3 ++- .../api/definition/components/list/ApiCaseSimpleList.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java index 963d2577d5..3bffd865eb 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java @@ -231,7 +231,8 @@ public class TestCaseReviewService { TestCaseReviewExample example = new TestCaseReviewExample(); TestCaseReviewExample.Criteria criteria = example .createCriteria() - .andNameEqualTo(testCaseReview.getName()); + .andNameEqualTo(testCaseReview.getName()) + .andProjectIdEqualTo(testCaseReview.getProjectId()); if (StringUtils.isNotBlank(testCaseReview.getId())) { criteria.andIdNotEqualTo(testCaseReview.getId()); diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index 9554637247..fed6ae513b 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -68,6 +68,7 @@ :field="item" :fields-width="fieldsWidth" prop="name" + sortable min-width="160px" :label="$t('test_track.case.name')"/>