<!-- head -->
<div class="cat__core__top-sidebar cat__core__top-sidebar--bg">
	<span class="cat__core__title"> <strong>{{ cfg.title }}</strong></span>
</div>
<!-- body -->
<div class="card-block animated bounceInRight">
    <div class="card">
        <div class="card-block">
            <div class="row t-martop">
                <div class="col-lg-12">
                    <div class="form-group row">
                        <div class="col-md-3 pull-right">
                            <input type="text" class="form-control" ng-keyup="keySearch($event)" ng-model="queryCondition.condition" placeholder="{{cfg.conditionLabel}}">
                        </div>
                        <div class="col-md-9">
                            <button class="btn btn-primary mr-2 mb-2" ng-click="query()"><i class="fa fa-arrow-right icon-on-right">搜索</i></button>
                            <button type="button" class="btn btn-info mr-2 mb-2" ng-click="condition()"><i class="fa fa-search-plus icon-on-right">筛选</i></button>
                            <button type="button" class="btn btn-warning mr-2 mb-2"><i class="fa fa-download icon-on-right">导出</i></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="card">
        <div class="card-block">
            <div class="row">
                <div class="col-lg-12">
                    <div class="mb-5">
                        <!-- 按钮区域-->
                        <div class="row">
                            <div class="col-lg-12" style="text-align: right;margin-left: 2px;">
                                <button type="button" class="btn btn-outline-primary mr-2 mb-2 btn-sm" ng-click="add()"><i class="fa fa-plus icon-on-left">添加</i></button>
                                <button type="button" class="btn btn-outline-success mr-2 mb-2 btn-sm" ><i class="fa fa-upload icon-on-left">导入</i></button>
                                <button type="button" class="btn btn-outline-secondary mr-2 mb-2 btn-sm" table-column-config data-target="rdTable" key="rdListCtrl"><i class="fa fa-cog icon-on-left">设置字段</i></button>
                            </div>
                        </div>

                        <!-- 按钮区域END-->
                        <!-- 表格区域-->
                        <div class="row table-responsive" style="min-height:400px">
                            <table class="table table-hover nowrap table-bordered"  width="100%" id="rdTable" >
                                <thead>
                                <tr>
                                    <th >序号</th>
                                    <th title="操作">操作</th>
                                    <th ng-repeat="field in cfg.field_label" title="{{ field }}">{{ field }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="row in rows" on-finish-render-filters>
                                    <td>{{pageOptions.param.startPosition + $index + 1}}</td>
                                    <td>
                                        <i class="fa fa-search-plus icon-info mr-2 mb-2" title="详情"  ng-click="detail(row)"></i>
                                        <i class="fa fa-pencil icon-primary mr-2" title="修改"  ng-click="update(row)"></i>
                                        <i class="fa fa-trash-o icon-danger mr-2" title="删除"  ng-click="del(row.id)"></i>
                                    </td>
                                    <td ng-repeat="field in cfg.field" title="{{dealField(row, field)}}" ng-bind-html="dealField(row, field)"> </td>
                                </tr>
                                </tbody>
                            </table>

                            <paging action="operatePaging(total, rows)" options="pageOptions"></paging>
                        </div>
                        <!-- 表格区域END-->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>