0
以下のコードを使用すると、なぜ私のタイムリーフがこのような大きなギャップを作りますか?Thymeleafテーブルはどのようにしてギャップを作りますか?
BAD/WARNING
</h3>
<h3>
APPLICATION PROCESSING
</h3>
<table class="tablebad">
<tr>
<th> Status </th>
<th> HostName </th>
<th> Process Name </th>
<th> Process Count </th>
</tr>
<tr th:each="DartModel, iterStat : ${countlist}">
<td th:if ="${DartModel.Status == 'BAD'}" th:text="${DartModel.Status}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.host}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.processName}"></td>
<td th:if="${DartModel.Status == 'BAD'}" th:text="${DartModel.processCount}"></td>
</tr>
</table>
<h3>
APPLICATION PROCESSING
</h3>
<table class="tableok">
<thead>
<tr>
<th> Status </th>
<th> HostName </th>
<th> Process Name </th>
<th> Process Count </th>
</tr>
</thead>
<tbody>
<tr th:each="DartModel, iterStat : ${countlist}">
<td th:if="${DartModel.Status == 'OK'}" th:text ="${DartModel.Status}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.host}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.processName}"></td>
<td th:if="${DartModel.Status == 'OK'}" th:text="${DartModel.processCount}"></td>
</tr>
</tbody>
</table>
と、この下には、 "OK" の状態でプリントアウトし、すべての私のデータになります。私は最終的に価値に基づいてデータをソートしようとしています。私はjavascript/jqueryで作業しようとしましたが、複雑すぎます。値に基づいてデータ行を分割する方法を見つけました。値が「悪い」の場合は上記の表を上記の表に表示し、「OK」の値を表示する これは間違っていますか? I
なぜなら、私はそれをタグの下に置いたときに空の行を引き起こすのですか?ありがとうございました! – Jesse
私は答えの冒頭で説明しました。 '
divタグでこのロジックを使用することはできますか? Stats = "Critical"の場合はdivを表示 – Jesse
関連する問題