付延余
2022-12-16 f0f8ee8c4a945adbc742d9bab69382b28ad311fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<table class="table table-striped">
    <thead>
    <tr>
        <th>盘符名称</th>
        <th>磁盘空间</th>
        <th>已使用</th>
        <th>可用</th>
        <th>已使用%</th>
    </tr>
    </thead>
    <tbody>
    <th:block th:each="item : ${deskStateList}">
        <tr>
            <td th:text="${item.fileSystem}"></td>
            <td th:text="${item.diskSize}"></td>
            <td th:text="${item.used}"></td>
            <td th:text="${item.avail}"></td>
            <td >
                <div class="progress progress-xs">
                    <div class="progress-bar progress-bar-danger"   th:style="'width:' + ${item.usePer}"></div>
                </div>
                <span th:text="${item.usePer}"></span>
            </td>
        </tr>
    </th:block>
 
    </tbody>
</table>