<div c
    <div class="btn-toolbar">
        <div class="btn-group pull-left">
            <div class="btn-group">
                <button class="btn btn-default dropdown-toggle" id="dropdownSrcSelect" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    {{vm.srcSelected.name}}
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownSrcSelect">
                    <li ng-repeat="c in vm.clientList" ng-click="vm.srcSelected=c;vm.getContactList()"><a href="javascript:void(0)">{{c.name}}</a></li>
                </ul>
            </div>
            <div class="btn-group">
                <button class="btn btn-default dropdown-toggle" id="dropdownContactTypeSelect" data-toggle="dropdown" aria-haspopup="true"
                    aria-expanded="false">
                    {{vm.contactTypeSelected.Name}}
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="dropdownContactTypeSelect">
                    <li ng-repeat="a in vm.contactTypeList" ng-click="vm.contactTypeSelected=a;vm.getContactList()"><a href="javascript:void(0)">{{a.Name}}</a></li>
                </ul>
            </div>

        </div>
        <form class="col-sm-4 pull-right" style="position:fixed;top:8px;right:150px;z-index:10000">
            <div class="input-group">
                <input type="search" placeholder="输入名称或客户名称快速搜索..." class="form-control" ng-model="vm.queryValue" />
                <span class="input-group-btn" ng-click="vm.getContactList()">
                    <button type="submit" class="btn btn-default">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </form>
        <!-- div[.col-sm-4] -->
    </div>
</div>
<!-- div[.row]-->
<div class="listview">
    <div class="viewlist">
        <rt-data-grid rt-page-record-count="vm.recordCount"  rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.getContactList()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-auto-height="{{vm.view.autoHeight}}">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="name">名称</th>
                        <th rt-field-code="contactnumber">编码</th>
                        <th>类型</th>
                        <th rt-field-code="provinceidName">省市县</th>
                        <th rt-field-code="statecode">状态</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td ng-if="vm.view.type=='default'">
                            <a id="{{row.contactId}}" data-toggle="sidebar" data-target=".sidebar-right" ui-sref=".edit({id:row.Id})"
                                ui-sref-opts="{location:true}">{{row.name}}</a>
                        </td>
                        <td>
                            {{row.contactnumber}}
                        </td>
                        <td>
                            {{row.contact_type.Name}}
                        </td>
                        <td>
                            {{row.provinceid.Name}}{{row.cityid.Name}}{{row.countyid.Name}}
                        </td>
                        <td>{{row.StateCode.Name}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
        <!-- rt-data-grid  -->
    </div>
    <!-- div[.panel-default] -->
</div>
<!-- div[.listview] -->

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