esayui--下拉列表框只能选择当前数据往后的(不可逆的)

时间:2022-09-03 15:06:12

1.下拉列表框中的所有的效果图
esayui--下拉列表框只能选择当前数据往后的(不可逆的)
2.只能选择当前选中的和后面的
esayui--下拉列表框只能选择当前数据往后的(不可逆的)

3.jsp代码

<tr>
    <th>执行状态</th>
    <td >
         <c:if test="${rafficManagerPageModel.status==0}">
            <select   name="status" data-options="panelHeight:'auto'" class="easyui-combobox"  >
                <option value="0" ${rafficManagerPageModel.status=='0'?'selected':''}>待发</option>
                <option value="1" ${rafficManagerPageModel.status=='1'?'selected':''}>加载中</option>
                <option value="2" ${rafficManagerPageModel.status=='2'?'selected':''}>执行中</option> 
                <option value="3" ${rafficManagerPageModel.status=='3'?'selected':''}>暂停</option>
                <option value="4" ${rafficManagerPageModel.status=='4'?'selected':''}>停止</option>
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
        <c:if test="${rafficManagerPageModel.status==1}">
            <select   name="status" data-options="panelHeight:'auto'" class="easyui-combobox"  >
                <option value="1" ${rafficManagerPageModel.status=='1'?'selected':''}>加载中</option>
                <option value="2" ${rafficManagerPageModel.status=='2'?'selected':''}>执行中</option>
                <option value="3" ${rafficManagerPageModel.status=='3'?'selected':''}>暂停</option>
                <option value="4" ${rafficManagerPageModel.status=='4'?'selected':''}>停止</option>
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
        <c:if test="${rafficManagerPageModel.status==2}">
            <select   name="status" data-options="panelHeight:'auto'" class="easyui-combobox" >
                <option value="2" ${rafficManagerPageModel.status=='2'?'selected':''}>执行中</option>
                <option value="3" ${rafficManagerPageModel.status=='3'?'selected':''}>暂停</option>
                <option value="4" ${rafficManagerPageModel.status=='4'?'selected':''}>停止</option>
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
        <c:if test="${rafficManagerPageModel.status==3}">
            <select  name="status" data-options="panelHeight:'auto'" class="easyui-combobox" >
                <option value="3" ${rafficManagerPageModel.status=='3'?'selected':''}>暂停</option>
                <option value="4" ${rafficManagerPageModel.status=='4'?'selected':''}>停止</option>
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
        <c:if test="${rafficManagerPageModel.status==4}">
            <select   name="status" data-options="panelHeight:'auto'" class="easyui-combobox" >
                <option value="4" ${rafficManagerPageModel.status=='4'?'selected':''}>停止</option>
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
        <c:if test="${rafficManagerPageModel.status==5}">
            <select  name="status" data-options="panelHeight:'auto'" class="easyui-combobox" >
                <option value="5" ${rafficManagerPageModel.status=='5'?'selected':''}>完成</option>
            </select>
        </c:if>
    </td>       
</tr>