
<el-container>
  <template >

    <div class="report-container" v-if="viewRes.kpis.length>0">
      <div class="report-title">
        {{viewRes.reportName}}
      </div>
      <template v-if=" viewRes.groupKpi===null">
        <!--未设置分组字段-->
        <report-component
          :queryDefaultSortKpiCode="report.queryDefaultSortKpiCode"
          :queryDefaultOrder="report.queryDefaultOrder"
          :ifOutsideParam="report.ifOutsideParam"
          :ifOutsideParamValue="ifOutsideParamValue"

          :totalShowType="report.totalShowType"
          :ifDrillDown="report.ifDrillDown"
          :drillDownRelated="report.drillDowns"
          :reportId="id"
          :ifTotal="report.ifTotal"
          :ifPage="report.ifPage"
          :queryArr="report.querys"
          :tableLabelArr="report.kpis"
          :reportLayer="layerClass.reportClass"
          :chartLayer="layerClass.chartClass"
          :chartColor="chartColor.data"
          :ifBarAndLine="report.barAndLineCharts.length>0"
          :ifPie="report.pieViews.length>0"

          :useOperableGroup="report.useOperableGroup"
          :operableGroupKpis="report.operableGroupKpis"
          :defaultGroupKpis="report.defaultGroupKpis"
        ></report-component>
      </template>
      <template v-else>
        <!--按照分组字段展示-->
        <template v-for="(group, index) in viewRes.groupKpi.groupKpiList">
          <div class="report-group-title">
            {{group}}
           </div>
          <report-component
            :groupKpiCode="viewRes.groupKpi.kpiCode"
            :groupKpiValue="group"
            :groupIndex="viewRes.reportId+index"

            :queryDefaultSortKpiCode="report.queryDefaultSortKpiCode"
            :queryDefaultOrder="report.queryDefaultOrder"
            :ifOutsideParam="report.ifOutsideParam"
            :ifOutsideParamValue="ifOutsideParamValue"

            :totalShowType="report.totalShowType"
            :ifDrillDown="report.ifDrillDown"
            :drillDownRelated="report.drillDowns"
            :reportId="id"
            :ifTotal="report.ifTotal"
            :ifPage="report.ifPage"
            :queryArr="report.querys"
            :tableLabelArr="report.kpis"
            :reportLayer="layerClass.reportClass"
            :chartLayer="layerClass.chartClass"
            :chartColor="chartColor.data"
            :ifBarAndLine="report.barAndLineCharts.length>0"
            :ifPie="report.pieViews.length>0"

            :useOperableGroup="report.useOperableGroup"
            :operableGroupKpis="report.operableGroupKpis"
            :defaultGroupKpis="report.defaultGroupKpis"
          ></report-component>
        </template>
      </template>
    </div>

  </template>





  <!--主列表数据-->

  <!--弹框-->

</el-container>








