kongdeqiang
2023-02-17 ac94b1d939373a684344764e5b00dac44feabd81
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>