dir-pagination指令angularjs:过滤

时间:2016-05-09 09:34:19

标签: angularjs pagination

使用dir-pagination指令进行分页,其工作正常,但过滤分页时没有获得更新

Error-Dir-Pagination

以下是我的代码:

     <tbody dir-paginate="booking in bookinglist | itemsPerPage: 30 | orderBy:sortKey:reverse">
        <tr ng-repeat="orders in booking.order | filter: booking_filter | dateRange: startDate : endDate | orderBy:sortKey:reverse">
          <td>{{booking.customer_name}}</td>
          <td>{{orders.order_id}}</td>
          <td>{{orders.service_name}}</td>
          <td>{{orders.employee_name}}</td>
          <td>{{orders.area_name}}</td>
          <td>{{orders.booking_date | date:"dd/MM/yyyy"}}</td>
          <td>{{orders.booking_time}}</td>
          <td>{{orders.status}}</td>
          <td class="g-btn-full-width">
            <button type="button" ng-click="EditBooking(orders._id)" class="btn btn-primary"><span class="fa fa-pencil"></span></button>
            <button type="button" ng-click="DeleteBooking(orders._id)" class="btn btn-danger"><span class="fa fa-trash"></span></button>
            <button type="button" ng-click="InvoiceGenerate(orders._id)" class="btn btn-warning">Invoice</button>
          </td>
        </tr>
      </tbody>
    </table>
    <dir-pagination-controls>
        max-size="5"
        direction-links="true"
        boundary-links="true"
    </dir-pagination-controls>
    </div>

我坚持这个......帮助将非常感激

2 个答案:

答案 0 :(得分:1)

您必须在标记中使用SQLJDBC_XA.dll filter: booking_filter

dir-paginate

答案 1 :(得分:0)

更新过滤器功能中的预订列表对象。 由于其双向数据绑定更新预订列表对象可能会重新计算已过滤的分页。