<div class="listview">
    <div class="panel-heading">
        <div class="row">
            <div class="col-sm-2">
                <button class="btn btn-link"
                        type="button"
                        id="btnClose"
                        ng-click="vm.hide()">
                    <i class="fa fa-sign-out"></i> 关闭
                </button>
            </div><!-- div[.col-sm-2] -->
            <div class="col-sm-10">
                <div class="pull-right">
                    <button class="btn btn-link"
                            type="button"
                            ng-click="vm.conQR()">
                        <i class="fa fa-sign-out"></i> 确定
                    </button>
                </div>
            </div><!-- div[.col-sm-10] -->
        </div><!-- div[.row] -->
        <div class="row">
            <div class="col-sm-14">
                <form class="input-group">
                    <!-- @@ 搜索条件 -->
                    <input type="search"
                           placeholder="搜索..."
                           class="form-control"
                           ng-model="vm.searchText"/>
                <span class="input-group-btn"
                      ng-click="vm.getData()">
                    <button type="submit" class="btn btn-default">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
                </form>
            </div><!-- div[.col-sm-4] -->
        </div><!-- div[.row] -->
    </div><!-- div[.panel-heading] -->
    <div class="viewlist" style="height:{{(vm.data.length+2)*33}}px">
        <ul class="nav nav-tabs">
            <li ng-repeat="view in vm.view.list track by view.Id"
                ng-class="{true:'active',false:'inactive'}[view.Id == vm.view.selectedView.Id]"
                ng-click="vm.view.select(view)">
                <a href="#1"
                   onclick="return false;"
                   data-toggle="tab">{{view.ViewName}}</a>
            </li>
        </ul>
        <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.getData()"
                      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">
                <thead>
                <tr>
                    <th><rt-header-checkbox></rt-header-checkbox></th>
                    <!-- @@ 视图表头 -->
                    <th rt-field-code="name">用户名称</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="row in vm.data">
                    <td>
                        <rt-data-checkbox value="{{row.SystemUserId}}" />
                    </td>
                    <!-- @@ 视图列表值 -->
                    <td>
                        {{row.UserName}}
                    </td>
                </tr>
                </tbody>
            </table>
        </rt-data-grid><!-- rt-data-grid  -->
    </div><!-- div[.panel-default] -->
</div><!-- div[.listview] -->

<div class="editview borderShadow sidebar sidebar-right sidebar-animate"
     ng-if="vm.view.type=='default'">
    <div ui-view class="content"></div>
</div><!-- div[.editview] -->