diff --git a/edc-web/app/templates/device_logs.html b/edc-web/app/templates/device_logs.html index 405abd5..df0c2dc 100644 --- a/edc-web/app/templates/device_logs.html +++ b/edc-web/app/templates/device_logs.html @@ -13,6 +13,8 @@ + + @@ -68,6 +70,8 @@ function renderTable(records) { if (r.event_type === 'online' || r.event_type === 'login') typeStyle = 'color:#27ae60;font-weight:bold;'; else if (r.event_type === 'offline') typeStyle = 'color:#e74c3c;font-weight:bold;'; else if (r.event_type === 'poor') typeStyle = 'color:#f39c12;font-weight:bold;'; + else if (r.event_type === 'tcp_disconnect') typeStyle = 'color:#e74c3c;'; + else if (r.event_type === 'tcp_connect') typeStyle = 'color:#3498db;'; return ` ${r.id} @@ -81,7 +85,8 @@ function renderTable(records) { } function eventLabel(t) { - const m = {login: '登录', online: '在线', offline: '离线', poor: '通信不良'}; + const m = {login: '登录', online: '在线', offline: '离线', poor: '通信不良', + tcp_connect: 'TCP连接', tcp_disconnect: 'TCP断开'}; return m[t] || t; } diff --git a/edc_server b/edc_server index 11f1c4f..c875cf3 160000 --- a/edc_server +++ b/edc_server @@ -1 +1 @@ -Subproject commit 11f1c4f55bee79239ea0b7de9d88ab64e81e9c4a +Subproject commit c875cf383ba9cb149a7d48fe23f2d102b622b475