fix(项目管理): 修复误报相关问题
This commit is contained in:
parent
ae6094f04c
commit
81ec648efb
|
@ -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;
|
||||
|
|
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue