From 4079c27bf99ea3b6aa68d8175093f48f3aaff9cf Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 11 一月 2024 15:49:03 +0800 Subject: [PATCH] 1 --- TEWin/Resources/SpaceStatistics/SpaceStatistics.html | 44 +++++++++++++++++++++++++++++--------------- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html index 21edfdf..6529d9c 100644 --- a/TEWin/Resources/SpaceStatistics/SpaceStatistics.html +++ b/TEWin/Resources/SpaceStatistics/SpaceStatistics.html @@ -25,6 +25,30 @@ var gDebug = false; var groupName = "绌洪棿缁熻"; + var rs = { + count: 0, // 瑕佺礌鎬讳釜鏁� + + lineLen: 0, // 绾垮璞¢暱搴� + + polyArea: 0, // 澶氳竟褰㈤潰绉� + + volume: 0, // 涓夌淮浣撲綋绉� + + reset: function () { + this.count = 0; + this.lineLen = 0; + this.polyArea = 0; + this.valueOf = 0; + }, + + setVal: function () { + $("#totalNum").html(this.count.toString()); + $("#lineLen").html(this.lineLen.toString()); + $("#polyArea").html(this.polyArea.toString()); + $("#volume").html(this.volume.toString()); + } + }; + $(function () { init(); }); @@ -58,12 +82,9 @@ } function clear(e) { - $("#totalNum").html("0"); //瑕佺礌鎬讳釜鏁� - $("#lineLen").html("0"); // 绾垮璞¢暱搴� - $("#polyArea").html("0"); // 澶氳竟褰㈤潰绉� - $("#volume").html("0"); // 涓夌淮浣撲綋绉� - $("#minHeight").html("0"); //涓夌淮浣撴渶浣庨珮搴� - $("#maxHeight").html("0"); // 涓夌淮浣撴渶楂橀珮搴� + rs.reset(); + rs.setVal(); + delGroup(); } function startQuery(e) { @@ -153,21 +174,14 @@ <td class="s8b"> <label for="Mode" class="i18n">澶氳竟褰㈤潰绉�</label> </td> - <td> <span id="polyArea">0</span> 骞虫柟鍗冪背 + <td> <span id="polyArea">0</span> 骞虫柟绫� </td> </tr> <tr> <td class="s8b"> <label for="Mode" class="i18n">涓夌淮浣撲綋绉�</label> </td> - <td> <span id="volume">0</span> 绔嬫柟鍗冪背 - </td> - </tr> - <tr> - <td class="s8b"> - <label for="Mode" class="i18n">涓夌淮浣撻珮搴�</label> - </td> - <td> 鏈�浣� <span id="minHeight">0</span> 绫筹紝鏈�楂� <span id="maxHeight">0</span> 绫� + <td> <span id="volume">0</span> 绔嬫柟绫� </td> </tr> </table> -- Gitblit v1.9.3