feat(ui): converge 6 page-level entity selectors to read-only session tag

- DataQuality / ProductMatrix / AlertList / ActionPlanLibrary /
  views.GrowthQuality / PredictAccuracy: drop entity el-select
  (including the "all entities" option), show read-only session
  entity tag (not clickable), same style as the top bar tag
- drop page-level entity param from those requests; backend resolves
  entity from the session token (assert_entity_scope / get_entity_id)
- utils/entity.ts: add sessionEntityName() (cma_entity_name else id map)
- P3: ReportCenter header emoji removed; components/GrowthQuality
  detail drill-down el-dialog -> MyDialog

(cma-entity-selectors-converge-6pages-20260914)
This commit is contained in:
Hermes CI Fix
2026-09-14 11:32:52 +08:00
parent 115a0ec755
commit e6dd8f61f0
9 changed files with 54 additions and 45 deletions
+3 -2
View File
@@ -98,7 +98,7 @@
<el-empty v-else-if="!loading" description="点击「诊断」查看当前账套增长质量" />
<!-- 明细下钻弹窗 -->
<el-dialog v-model="showDetail" :title="currentDimLabel + ' — ' + (result?.entity_name || '')" width="550px">
<MyDialog v-model="showDetail" :title="currentDimLabel + ' — ' + (result?.entity_name || '')" :width="550">
<template v-if="currentDimKey && result?.detail?.[currentDimKey]">
<div class="detail-header">
<span class="detail-score-badge" :class="scoreClass(result.detail[currentDimKey].score)">
@@ -130,7 +130,7 @@
</div>
</div>
</template>
</el-dialog>
</MyDialog>
</div>
</template>
@@ -139,6 +139,7 @@ import { ref, computed } from 'vue'
import VChart from 'vue-echarts'
import 'echarts'
import { predictApi } from '../api/index'
import MyDialog from './MyDialog.vue'
import { ElMessage } from 'element-plus'
const loading = ref(false)