diff --git a/frontend/src/api/modules/test-plan/report.ts b/frontend/src/api/modules/test-plan/report.ts index df13c52416..95a4d4b823 100644 --- a/frontend/src/api/modules/test-plan/report.ts +++ b/frontend/src/api/modules/test-plan/report.ts @@ -29,11 +29,26 @@ export function getReportBugList(data: TableQueryParams) { return MSR.post>({ url: reportUrl.ReportBugListUrl, data }); } +// 测试计划-报告-详情-缺陷分页查询 (分享) +export function getReportShareBugList(data: TableQueryParams) { + return MSR.post>({ url: reportUrl.ReportShareBugListUrl, data }); +} + // 测试计划-报告-详情-功能用例分页查询 export function getReportFeatureCaseList(data: TableQueryParams) { return MSR.post>({ url: reportUrl.ReportFeatureCaseListUrl, data }); } +// 测试计划-报告-详情-功能用例分页查询 (分享) +export function getReportShareFeatureCaseList(data: TableQueryParams) { + return MSR.post>({ url: reportUrl.ReportShareFeatureCaseListUrl, data }); +} + +// 测试计划-报告-详情-富文本编辑器上传图片文件 +export function editorUploadFile(data: { fileList: File[] }) { + return MSR.uploadFile({ url: reportUrl.EditorUploadFileUrl }, { fileList: data.fileList }, '', false); +} + // 测试计划-报告-详情-报告内容更新 export function updateReportDetail(data: UpdateReportDetailParams) { return MSR.post({ url: reportUrl.UpdateReportDetailUrl, data }); diff --git a/frontend/src/api/requrls/test-plan/report.ts b/frontend/src/api/requrls/test-plan/report.ts index 5ed230342a..15b2568b0e 100644 --- a/frontend/src/api/requrls/test-plan/report.ts +++ b/frontend/src/api/requrls/test-plan/report.ts @@ -10,7 +10,13 @@ export const PlanBatchDeleteUrl = '/test-plan/report/batch-delete'; export const PlanReportDetailUrl = '/test-plan/report/get'; // 测试计划-报告-详情-缺陷分页查询 export const ReportBugListUrl = '/test-plan/report/detail/bug/page'; +// 测试计划-报告-详情-缺陷分页查询(分享) +export const ReportShareBugListUrl = '/test-plan/report/share/detail/bug/page'; // 测试计划-报告-详情-功能用例分页查询 export const ReportFeatureCaseListUrl = '/test-plan/report/detail/functional/case/page'; +// 测试计划-报告-详情-功能用例分页查询(分享) +export const ReportShareFeatureCaseListUrl = '/test-plan/report/share/detail/functional/case/page'; // 测试计划-报告-详情-报告内容更新 export const UpdateReportDetailUrl = '/test-plan/report/detail/edit'; +// 测试计划-报告-详情-富文本编辑器上传图片文件 +export const EditorUploadFileUrl = '/test-plan/report/upload/md/file'; diff --git a/frontend/src/views/test-plan/report/detail/component/bugTable.vue b/frontend/src/views/test-plan/report/detail/component/bugTable.vue index 0207e09feb..0e9b8556c0 100644 --- a/frontend/src/views/test-plan/report/detail/component/bugTable.vue +++ b/frontend/src/views/test-plan/report/detail/component/bugTable.vue @@ -4,23 +4,22 @@