forked from github/dataease
feat(错误信息): 抽取数据的错误信息仅显示错误基本描述
This commit is contained in:
parent
440342e757
commit
fd7d70e86a
@ -410,7 +410,9 @@ public class ExtractDataService {
|
||||
userIds.forEach(userId -> {
|
||||
Map<String,Object> param = new HashMap<>();
|
||||
param.put("tableId", id);
|
||||
param.put("taskId", taskId);
|
||||
if(StringUtils.isNotEmpty(taskId)){
|
||||
param.put("taskId", taskId);
|
||||
}
|
||||
DeMsgutil.sendMsg(userId, 1, "数据集【"+datasetTable.getName()+"】同步"+msg, gson.toJson(param));
|
||||
});
|
||||
}
|
||||
@ -443,7 +445,7 @@ public class ExtractDataService {
|
||||
if(CollectionUtils.isNotEmpty(datasetTableTaskLogs)){
|
||||
datasetTableTaskLog = datasetTableTaskLogs.get(0);
|
||||
datasetTableTaskLog.setStatus(JobStatus.Error.name());
|
||||
datasetTableTaskLog.setInfo(ExceptionUtils.getStackTrace(e));
|
||||
datasetTableTaskLog.setInfo(e.getMessage());
|
||||
datasetTableTaskLog.setEndTime(System.currentTimeMillis());
|
||||
dataSetTableTaskLogService.save(datasetTableTaskLog);
|
||||
}
|
||||
|
@ -71,7 +71,8 @@
|
||||
width="50%"
|
||||
class="dialog-css"
|
||||
>
|
||||
<span>{{ error_massage }}</span>
|
||||
<span class="err-msg">{{ error_massage }}
|
||||
</span>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button size="mini" @click="show_error_massage = false">{{ $t('dataset.close') }}</el-button>
|
||||
</span>
|
||||
@ -703,7 +704,17 @@ export default {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
span{
|
||||
.err-msg{
|
||||
font-size: 12px;
|
||||
word-break:normal;
|
||||
width:auto;
|
||||
display:block;
|
||||
white-space:pre-wrap;
|
||||
word-wrap : break-word ;
|
||||
overflow: hidden ;
|
||||
}
|
||||
|
||||
.span{
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user