fix(项目管理): 修复误报相关问题

This commit is contained in:
wxg0103 2024-04-02 10:45:05 +08:00 committed by 刘瑞斌
parent ae6094f04c
commit 81ec648efb
2 changed files with 2 additions and 5 deletions

View File

@ -96,9 +96,8 @@ public class ApiReportSendNoticeService {
// TODO 是否需要区分场景和用例
noticeType = NoticeConstants.TaskType.API_DEFINITION_TASK;
reportUrl = String.format(reportUrl, project.getOrganizationId(), project.getId(), API_CASE, report.getId());
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(noticeDTO.getReportId());
reportUrl = String.format(reportUrl, project.getOrganizationId(), project.getId(), API_CASE, apiReport.getId());
BeanUtils.copyBean(report, apiReport);
if (StringUtils.endsWithIgnoreCase(noticeDTO.getReportStatus(), ApiReportStatus.SUCCESS.name())) {
event = NoticeConstants.Event.CASE_EXECUTE_SUCCESSFUL;

View File

@ -396,7 +396,7 @@
currentList.value = record;
} else {
//
if (typeof record.type === 'string') {
if (typeof record.type === 'string' && record.type) {
record.type = record.type.split(',');
}
currentList.value = [record];
@ -412,8 +412,6 @@
fetchData();
}
addVisible.value = false;
batchFormRef.value.resetForm();
currentList.value = [];
};
const handleConfirm = () => {