<div>
    <div class="row">
        <div class="col-sm-8">
            <div class="btn-group">
                <button class="btn btn-link" data-toggle="sidebar" data-target=".sidebar-right" ng-if="vm.view.type=='default'" ng-show="vm.privilege.IsCreate"
                    ui-sref=".edit1({id:''})" ui-sref-opts="{location:true}">
                    <i class="fa fa-plus"></i> 新建
                </button>
                <button class="btn btn-link" ng-if="vm.view.type=='grid'" ng-click="vm.actions.showForm('','OA/FlowRole/flowRoleUserEditView.html','flowRoleUserEditController')" ng-show="vm.privilege.IsCreate">
                    <i class="fa fa-plus"></i> 新建
                </button>
                <button class="btn btn-link" ng-click="vm.actions.del()" ng-show="vm.privilege.IsDelete">
                    <i class="fa fa-trash"></i> 删除
                </button>
            </div>
        </div>
    </div>
    <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-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 track by row.Id">
                <td>
                    <rt-data-checkbox value="{{row.Id}}" />
                </td>
                <!-- @@ 视图列表值 -->
                <td ng-if="vm.view.type=='default'">
                    <a id="{{row.Id}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".edit1({id:row.Id})" ui-sref-opts="{location:true}">{{row.userinfoId.Name}}</a>
                </td>
                <td ng-if="vm.view.type=='grid'">
                    <a href="javascript:;" ng-click="vm.actions.showForm(row.Id,'OA/FlowRole/flowRoleUserEditView.html','flowRoleUserEditController')">{{row.userinfoId.Name}}</a>
                </td>
                <td>
                    {{row.CreatedOn| date:'yyyy-MM-dd HH:mm:ss'}}
                </td>
            </tr>
        </tbody>
    </table>
</rt-data-grid>
</div>