table表多项条件筛选

这篇博客介绍了如何使用HTML和JavaScript实现一个表格的多项条件筛选功能。内容包括输入框、下拉选择和日期选择等元素,允许用户根据UM账号、部门名称、请求系统名称及时间范围进行数据过滤,并提供了导出Excel的功能。
 <table class="am-table am-table-striped am-table-hover table-main" id="table1">


                            <span class="hhh"><label for="">UM账号: &nbsp;&nbsp;</label>


                                <input type="text" name="UM" id="UM" value="${mockSearchCondition.UM?default('')}"></span>






                            <span class="hhh"><label for="">部门名称:&nbsp;&nbsp;</label>


                                    <span class="am-form-group">


                                            <select data-am-selected="{btnSize: 'sm'}" id="groupName" name="groupName">


                                                <option value="all">查询所有</option>


                                                <#if groupNameList?exists>


                                                         <#list groupNameList as groupName>


                                                             <#if groupName=="${mockSearchCondition.groupName?default('')}">


                                                           <option value="${groupName}" selected>${groupName}</option>


                                                                 <#else>


                                                            <option value="${groupName}" >${groupName}</option>


                                                             </#if>


                                                         </#list>


                                                    </#if>


                                            </select>


                                        </span>


                                </span>






                            <span class="hhh"><label for="">请求系统名称:&nbsp;&nbsp; </label>


                                        <input type="text" name="requestSystem"id="requestSystem" value="${mockSearchCondition.requestSystem?default('')}">


                            </span>






                            <span class="hhh">


                                        <label for="">开始时间: &nbsp;</label>


                                         <input type="Date" name="beginTime" placeholder="时间" id="beginTime" value="${mockSearchCondition.beginTime?default('')}">


                          </span>






                            <span class="hhh">


                                        <label for="">截止时间: &nbsp;</label>


                                        <input type="Date" name="endTime" placeholder="时间" id="endTime" value="${mockSearchCondition.endTime?default('')}">


                            </span>






                             <span>


                                 <button type="button" class="am-btn am-btn-primary am-btn-xs" onclick="goPage(1)" >搜索</button>


                                 <!--<input type="submit" class="am-btn am-btn-primary am-btn-xs"  value="搜索">-->


                             </span>


                            <a onclick="javascript:exportExcel();"   class="am-btn am-btn-primary am-btn-xs">导出</a>


                        </table>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值