diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugDetailDTO.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugDetailDTO.java index 8ed9f05c96..6f6fd8b3a2 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugDetailDTO.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/dto/response/BugDetailDTO.java @@ -17,6 +17,9 @@ public class BugDetailDTO { @Size(min = 1, max = 50, message = "{bug.id.length_range}", groups = {Created.class, Updated.class}) private String id; + @Schema(description = "业务ID") + private Integer num; + @Schema(description = "缺陷标题") @Size(min = 1, max = 300, message = "{bug.title.length_range}", groups = {Created.class, Updated.class}) private String title; diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java index 95201488c4..ba70f382c0 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugService.java @@ -252,6 +252,7 @@ public class BugService { List allCustomFields = extBugCustomFieldMapper.getBugAllCustomFields(List.of(id), bug.getProjectId()); BugDetailDTO detail = new BugDetailDTO(); detail.setId(id); + detail.setNum(bug.getNum()); detail.setProjectId(bug.getProjectId()); detail.setTemplateId(template.getId()); detail.setPlatformDefault(template.getPlatformDefault()); diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index ad812a80ca..aa80f1a476 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -4,7 +4,7 @@ v-model:visible="showDrawerVisible" :width="1200" :footer="false" - :title="t('bugManagement.detail.title', { id: detailInfo?.id, name: detailInfo?.title })" + :title="t('bugManagement.detail.title', { id: detailInfo?.num, name: detailInfo?.title })" :detail-id="props.detailId" :detail-index="props.detailIndex" :get-detail-func="getBugDetail" @@ -159,43 +159,43 @@