<!-- <style>
    table{
        table-layout: fixed;
        word-break: break-all;
        word-wrap: break-word;
    }
</style> -->
<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" novalidate>
    <div class="row rt-margin-bottom-before-box">
        <div class="col-sm-2">
            <button class="btn btn-link" type="button" id="btnClose" ng-click="vm.hideall()">
                <i class="fa fa-sign-out"></i> 关闭
            </button>
        </div>
    </div>
    <div class="nav-tabs-custom">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">筛选</h3>
                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" data-widget="collapse">
                        <i class="fa fa-minus"></i>
                    </button>
                </div>
            </div>
            <form class="form-horizontal">
                <div class="box-body">
                    <div class="form-group">
                        <rt-datetime ng-model="vm.sYm" rt-type="month" rt-title="月度范围-从" rt-col="3" rt-label-col="2"></rt-datetime>
                        <rt-datetime ng-model="vm.eYm" rt-type="month" rt-title="月度范围-到" rt-col="3" rt-label-col="2"></rt-datetime>
                        <div class="col-sm-1">
                            <button class="btn btn-primary" ng-click="vm.getReportData()">查询</button>
                        </div>
                    </div>
                    <div class="form-group">
                        <rt-picklist rt-title="隐藏相同项" rt-col="3" ng-model="vm.sameSelected" rt-options="vm.sameModel"></rt-picklist>
                    </div>
                </div>
            </form>
        </div>

    </div>
      <!-- 月度历史版本 -->
    <div class="box box-primary">
        <div class="nav-tabs-custom" style="overflow-x:auto;">
            <table border="0" style="width:{{(com+1)*10}}%;table-layout: fixed; word-break: break-all; word-wrap: break-word;">
                <thead></thead>
                <tbody>
                    <tr>
                        <td style="width:150px;height:30px;">项目/月度</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.upload_ym}}</td>
                    </tr>
                    <tr>
                        <td style="font-weight:bolder;width:150px;height:30px;">基本信息</td>
                    </tr>
                    <tr style="display:{{flag0}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;" >名称/编码</td>
                        <td style="width:150px;height:30px;"  ng-repeat="row in vm.reportData">{{row.name == "" ? "-":row.name}}</td>
                    </tr>
                    <tr style="display:{{flag1}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">上级部门</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.parentBusinessUnitId == "" ? "-":row.parentBusinessUnitId}}</td>
                    </tr>
                    <tr style="display:{{flag2}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">部门负责人</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.businessUnitOwnerId == "" ? "-":row.businessUnitOwnerId}}</td>
                    </tr>
                    <tr>
                        <td style="font-weight:bolder;width:150px;height:30px;">小区信息</td>
                    </tr>
                    <tr  style="display:{{flag3}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">小区数量</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.regionCount == null ? "0":row.regionCount}}</td>
                    </tr>
                    <tr  style="display:{{flag4}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">小区清单</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.regionList == "" ? "-":row.regionList|textLengthSet:true:10:'...'}}</td>
                    </tr>
                    <tr  style="display:{{flag5}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">目标机构数量</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.accountCount == null ? "0":row.accountCount}}</td>
                    </tr>
                    <tr  style="display:{{flag6}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">目标医生</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.contactCount == null ? "0":row.contactCount }}</td>
                    </tr>
                    <tr>
                        <td style="font-weight:bolder;width:150px;height:30px;">人员信息</td>
                    </tr>
                    <tr style="display:{{flag7}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">人员数量</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.personCount == null ? "0":row.personCount}}</td>
                    </tr>
                    <tr style="display:{{flag8}};width:{{(com+1)*100}}%">
                        <td style="width:150px;height:30px;">人员清单</td>
                        <td style="width:150px;height:30px;" ng-repeat="row in vm.reportData">{{row.personList == "" ? "-":row.personList|textLengthSet:true:15:'...'}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</rt-form>