From a117a53b0ba702e45193c39bd0157a166d0681dd Mon Sep 17 00:00:00 2001 From: "Frank.R.Wu" Date: Sat, 14 Aug 2021 21:05:50 +0800 Subject: [PATCH] feat: optimize the view of TrustUnits just show node names in the view of TrustUnits --- js/NodeConfig.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/NodeConfig.js b/js/NodeConfig.js index 63c677a..2ec6eda 100644 --- a/js/NodeConfig.js +++ b/js/NodeConfig.js @@ -262,7 +262,7 @@ function showNodeTrustUnits(obj) { } }; let html = "" + - "" + + "" + ""; const tableTail = "
序号ID类型创建者节点数目节点公钥
序号ID类型创建者节点数目节点列表
"; if (global.nodeUnits) { @@ -275,13 +275,13 @@ function showNodeTrustUnits(obj) { TCP ${global.nodeUnits[i].key.substring(0, at_ - 1)} ${nodes.length} - ${JSON.stringify(nodes)} + ${nodes.map(x => x.nodeName).sort().join(',')} ` } } if (global.p2pNodes) { - html += "" + (i+1) + " P2PUnitP2P bdledger " + global.p2pNodes.length + " " + JSON.stringify(global.p2pNodes) + " "; - } + html += "" + (i + 1) + " P2PUnitP2P bdledger " + global.p2pNodes.length + " " + JSON.stringify(global.p2pNodes) + " "; + } html += tableTail; $("#trustNodesUnitTabDiv").html(html); $("#trustNodesUnitTabDivTab").DataTable({