feat: 完善周期报告与用户行为分析
- 支持可配置周报月报模板与登录后异步补生成\n- 增加用户行为埋点和后台分析页面\n- 移除主题额度并保留实修回顾结算\n- 修复历史会话续聊上下文丢失
This commit is contained in:
@@ -53,6 +53,7 @@ const AdminManagementView = defineAsyncComponent(
|
||||
() => import("./components/AdminManagementView.vue"),
|
||||
);
|
||||
const FeedbackManagementView = defineAsyncComponent(() => import("./components/FeedbackManagementView.vue"));
|
||||
const UserBehaviorAnalysisView = defineAsyncComponent(() => import("./components/UserBehaviorAnalysisView.vue"));
|
||||
|
||||
const admin = ref<AdminProfile | null>(null);
|
||||
const activeMenu = ref("dashboard");
|
||||
@@ -68,6 +69,7 @@ const menuPermissions: Record<string, string> = {
|
||||
"content-generation": "content-generation.view", configs: "configs.view", sso: "sso.view",
|
||||
records: "records.view", retrievals: "retrievals.view", attention: "attention.view", admins: "admins.view",
|
||||
feedback: "feedback.view",
|
||||
behavior: "behavior.view",
|
||||
};
|
||||
|
||||
const entitlementPlans = ref<EntitlementPlan[]>([]);
|
||||
@@ -717,6 +719,11 @@ async function clearFeishuCache() {
|
||||
:class="{ active: activeMenu === 'feedback' }"
|
||||
@click="switchMenu('feedback')"
|
||||
>反馈管理</button>
|
||||
<button
|
||||
v-if="can('behavior.view')"
|
||||
:class="{ active: activeMenu === 'behavior' }"
|
||||
@click="switchMenu('behavior')"
|
||||
>用户行为分析</button>
|
||||
<button
|
||||
v-if="can('attention.view')"
|
||||
:class="{ active: activeMenu === 'attention' }"
|
||||
@@ -1126,6 +1133,7 @@ async function clearFeishuCache() {
|
||||
:can-detail="can('feedback.detail')"
|
||||
:can-export="can('feedback.export')"
|
||||
/>
|
||||
<UserBehaviorAnalysisView v-if="activeMenu === 'behavior'" />
|
||||
<RecordAuditView v-if="activeMenu === 'records'" />
|
||||
<AdminManagementView v-if="activeMenu === 'admins'" />
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user