<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-times"></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.addApprover()">
                        <i class="fa fa-check"></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">
        <rt-section rt-title="最近选择人员"></rt-section>
        <rt-data-grid-no-page 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="userWasSelected" rt-selected-ids="vm.view.selectedIds2"
            rt-auto-height="vm.view.autoHeight">
            <table class="table table-condensed table-hover">
                <thead>
                    <tr>
                        <th>
                            <rt-header-checkbox></rt-header-checkbox>
                        </th>
                        <th>用户名称</th>
                        <th>部门</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in userWasSelected track by $index">
                        <td>
                            <rt-data-checkbox value="{{row.OwnerId.Id}}" />
                        </td>
                        <td>{{row.OwnerId.Name}}</td>
                        <td>{{row.OwnerId.businessunitidname}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid-no-page>

        <rt-section rt-title="所有人员"></rt-section>
        <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>用户名称</th>
                        <th>部门</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.Data">
                        <td>
                            <rt-data-checkbox value="{{row.id}}" />
                        </td>
                        <td>{{row.name}}</td>
                        <td>{{row.tblbusinessunitidname}}</td>
                    </tr>
                </tbody>
            </table>
        </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] -->