1. 指标子集映射
This commit is contained in:
parent
ff5126f80b
commit
07139664a5
|
@ -427,6 +427,9 @@ public class CoreEvaluationServiceImpl implements CoreEvaluationService {
|
|||
WsEvaluationServer.sendTips(
|
||||
"分批次结束评估" + originalList.size() + "条记录,耗时:" + diff + "秒",
|
||||
request.getRandomKey());
|
||||
//推送成功
|
||||
WsEvaluationServer.sendTips("success(" + request.getProjectId() + ")",
|
||||
request.getRandomKey());
|
||||
}
|
||||
|
||||
private void saveResult(List<IndicatorNode> resultList) {
|
||||
|
|
|
@ -255,9 +255,20 @@
|
|||
appendLog("WS closed");
|
||||
},
|
||||
onMessage: (ev) => {
|
||||
// ev 可能是字符串或事件对象(取决于 connectWs 封装)
|
||||
// ev 这里直接是解析好的数据数据
|
||||
if(ev.indexOf("success")>0){
|
||||
//提取ev中的projectId
|
||||
let result = ev.match(/\((\d+)\)/);
|
||||
let num = result ? result[1] : null; // num = "1"
|
||||
|
||||
_projectHistory(num)
|
||||
|
||||
|
||||
}else{
|
||||
appendLog(ev);
|
||||
}
|
||||
|
||||
|
||||
appendLog(ev);
|
||||
},
|
||||
onError: (err) => {
|
||||
appendLog("WS error");
|
||||
|
|
Loading…
Reference in New Issue
Block a user