fix(用例管理): 导入结果展示调整

--bug=1035534 --user=王旭 【用例管理】建议不区分大小写,并且给出具体不能为空的字段名称 https://www.tapd.cn/55049933/s/1477584
This commit is contained in:
WangXu10 2024-03-19 16:36:47 +08:00 committed by Craftsman
parent 5d5ee59995
commit e309ea7261
2 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@ public class ExcelValidateHelper {
Field declaredField = obj.getClass().getDeclaredField(cv.getPropertyPath().toString()); Field declaredField = obj.getClass().getDeclaredField(cv.getPropertyPath().toString());
ExcelProperty annotation = declaredField.getAnnotation(ExcelProperty.class); ExcelProperty annotation = declaredField.getAnnotation(ExcelProperty.class);
//拼接错误信息包含当前出错数据的标题名字+错误信息 //拼接错误信息包含当前出错数据的标题名字+错误信息
result.append(annotation.value()[0] + cv.getMessage()).append("; "); result.append("[").append(annotation.value()[0]).append("]").append(cv.getMessage()).append("; ");
} }
} }
return result.toString(); return result.toString();

View File

@ -87,8 +87,10 @@
</a-modal> </a-modal>
<MsDrawer v-model:visible="showMoreFailureCase" :width="960" :footer="false" no-content-padding> <MsDrawer v-model:visible="showMoreFailureCase" :width="960" :footer="false" no-content-padding>
<template #title> <template #title>
{{ t('caseManagement.featureCase.importFailedCases') <div class="justify-start">
}}<span class="text-[var(--color-text-4)]">({{ validateResultInfo.failCount }})</span> {{ t('caseManagement.featureCase.importFailedCases')
}}<span class="text-[var(--color-text-4)]">({{ validateResultInfo.failCount }})</span>
</div>
</template> </template>
<MsList <MsList
mode="static" mode="static"