<div class="row rt-margin-bottom-before-box">
    <div class="col-sm-8">
    </div>
    <div class="col-sm-4">
        <form class="input-group">
            <input type="search" placeholder="搜索手机号......" class="form-control" ng-model="vm.view.searchText" />
            <span class="input-group-btn" ng-click="vm.view.search(1)">
                <button type="submit" class="btn btn-default">
                    <i class="fa fa-search"></i>
                </button>
            </span>
        </form>
    </div>
</div>

<div class="box box-primary">
    <div class="box-header" style="cursor: move;">
        <div class="pull-left">
            <div class="btn-group">
                <button class="btn btn-default dropdown-toggle" id="dropdownMenuViewSelect" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    {{vm.view.selectedView.ViewName}}
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownMenuViewSelect">
                    <li ng-repeat="view in vm.view.list track by view.Id" ng-click="vm.view.select(view)"><a href="javascript:void(0)">{{view.ViewName}}</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="nav-tabs-custom">
        <rt-data-grid rt-page-record-count="vm.page.recordCount"  rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.view.search()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-selected-ids="vm.view.selectedIds" rt-auto-height="{{vm.view.autoHeight}}">
            <table class="table table-condensed table-hover" style="table-layout: fixed;">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th>手机号</th>
                        <th>验证码</th>
                        <th>超期时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data">
                        <td>
                            {{row.phonenumber}}
                        </td>
                        <td>
                            {{row.verification_code}}
                        </td>
                        <td>
                            {{row.expon | date:'yyyy-MM-dd HH:mm:ss' }}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>