{# 单个维度详细分析(在 for 循环内 include) #} {# 需要外部传入: dim_name, dim_data, part_id, part_number #}

第{{ part_number }}部分 {{ dim_name }}表现

一、整体表现

{{ dim_name }}得分
{{ "%.1f"|format(dim_data.score) }}
{{ "%+.1f"|format(dim_data.diff_district) }} vs 区均值
同类学校均值
{{ "%.1f"|format(dim_data.same_type_avg) }}
区内排名
{{ dim_data.rank_in_district }}/{{ overall.total_schools }}
维度类型
{{ dim_data.get('cluster', '-') }}
{% set part_num = part_id | replace('part', '') %}
图{{ part_num }}-1 {{ dim_name }}得分情况
图{{ part_num }}-2 {{ dim_name }}各子维度得分情况
{{ llm_sections.get(part_id + '_caption_dim_score', '') | safe }}
图{{ part_num }}-3 {{ dim_name }}各子维度对比详情
图{{ part_num }}-4 {{ dim_name }}各子维度水平分布
{{ llm_sections.get(part_id + '_caption_sub_detail', '') | safe }}
图{{ part_num }}-5 {{ dim_name }}聚类分析散点图
{{ llm_sections.get(part_id + '_caption_scatter', '') | safe }}
{{ llm_sections.get(part_id + '_overall', '

分析加载中...

') | safe }}

{{ dim_name }}各子维度水平对比(表{{ part_num }}-1)

{% for sub_dim in framework[dim_name].sub_dimensions %} {% set sd = sub_dimensions.get(sub_dim, {}) %} {% if sd %} {% endif %} {% endfor %}
子维度 {{ school }} 得分 区均值 排名
{{ sub_dim }} 水平{{ sd.level }} {{ "%.1f"|format(sd.score) }} {{ "%.1f"|format(sd.district_avg) }} {{ sd.rank_in_district }}/{{ overall.total_schools }}

{% for sub_dim in framework[dim_name].sub_dimensions %} {% set sd = sub_dimensions.get(sub_dim, {}) %} {% if sd %} {% set sub_index = loop.index %} {% include 'sections/sub_dimension.html' %} {% if not loop.last %}
{% endif %} {% endif %} {% endfor %}