付延余
2022-12-16 f0f8ee8c4a945adbc742d9bab69382b28ad311fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<select class="duallistbox"  style="height:300px" name="hostnames" multiple="multiple">
    <th:block th:each="item,iterStat : ${systemInfoList}">
        <th:block th:if="${item.remark} == null or ${item.remark} == ''">
            <th:block th:if="${item.selected} == null or ${item.selected} == ''">
                <option  th:value="${item.hostname}" th:text="${item.hostname}">Alabama</option>
            </th:block>
            <th:block th:if="${item.selected} == 'selected'">
                <option  th:value="${item.hostname}" selected th:text="${item.hostname}">Alabama</option>
            </th:block>
        </th:block>
        <th:block th:if="${item.remark} != null and ${item.remark} != ''">
            <th:block th:if="${item.selected} == null or ${item.selected} == ''">
                <option  th:value="${item.hostname}" th:text="${item.hostname}+'('+${item.remark}+')'">Alabama</option>
            </th:block>
            <th:block th:if="${item.selected} == 'selected'">
                <option  th:value="${item.hostname}" selected th:text="${item.hostname}+'('+${item.remark}+')'">Alabama</option>
            </th:block>
        </th:block>
    </th:block>
</select>