阅读背景:

datatable每行中的数据转成json串传给后台,并将json转化为list

来源:互联网 

1.前端datatable中的数据

<div class="table-responsive">
    <table class="table table-hover" id="adslotRebateTableId">
        <thead>
        <tr height="89">
            <th style="display: none">Id</th>
            <th>媒体</th>
            <th>频道</th>
            <th>广告位</th>
            <th>代理返点</th>
            <th>客户返点</th>
        </tr>
        </thead>
        <tbody id="adslotRebateTbodyId">
        <c:forEach items="${orderItemList}" var="item">
            <tr height="89">
                <th style="display: none"><c:out value="${item.id}"/></th>
                <th><c:out value="${item.mediaName }"/></th>
                <th><c:out value="${item.channelType }"/></th>
                <th><c:out value="${item.slotName }"/></th>
                <th>
                    <select size="1" style="width:100%;height: 100%;" id="agentRule${item.id}">
                        <option value="">请选择</option>
                        <c:forEach items="${allAgentList.get(item.id)}" var="agent">
                                <option name="agentId" value="${agent.id}"
                                        <c:if test="${item.agentRebateRuleId==agent.id}">
                                            <c:out value="selected"/>
                                        </c:if>
                                >返点周期:
                                    <fmt:formatDate value="${agent.startDate}" pattern="yyyy-MM-dd"/>--
                                    <fmt:formatDate value="${agent.endDate}" pattern="yyyy-MM-dd"/>                                 
                                </option>
                        </c:forEach>
                    </select>
                </th>
                <th>
                    <select size="1" style="width:100%;height: 100%;" id="customerRule${item.id}">
                        <option value="">请选择</option>
                        <c:forEach items="${allCustomerList.get(item.id)}" var="customer">
                            <option name="customerId" value="${customer.id}"
                                    <c:if test="${item.customerRuleId==customer.id}">
                                        <c:out value="selected"/>
                                    </c:if>
                            >返点周期:
                                <fmt:formatDate value="${customer.startDate}" pattern="yyyy-MM-dd"/>--
                                <fmt:formatDate value="${customer.endDate}" pattern="yyyy-MM-dd"/>                               
                            </option>
                            </c:forEach>
                    </select>
                </th>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div><div class="table-respo



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: