From 07139664a50b1bbc362af25889b6184c93858a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=8E=89=E4=B8=9C?= <129883742+liyudong2018@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:46:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=8C=87=E6=A0=87=E5=AD=90=E9=9B=86?= =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CoreEvaluationServiceImpl.java | 3 +++ .../main/resources/templates/project/list.html | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/manager-admin/src/main/java/com/hshh/evaluation/service/impl/CoreEvaluationServiceImpl.java b/manager-admin/src/main/java/com/hshh/evaluation/service/impl/CoreEvaluationServiceImpl.java index 9bc6a7d..5dae8fd 100644 --- a/manager-admin/src/main/java/com/hshh/evaluation/service/impl/CoreEvaluationServiceImpl.java +++ b/manager-admin/src/main/java/com/hshh/evaluation/service/impl/CoreEvaluationServiceImpl.java @@ -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 resultList) { diff --git a/manager-admin/src/main/resources/templates/project/list.html b/manager-admin/src/main/resources/templates/project/list.html index ffbfbd0..166422f 100644 --- a/manager-admin/src/main/resources/templates/project/list.html +++ b/manager-admin/src/main/resources/templates/project/list.html @@ -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");