看板内容进行优化,同时加入了用户管理模块,将用户信息全局开放,

This commit is contained in:
liuwei
2025-03-24 13:25:11 +08:00
parent 748bdedacd
commit 9ca64f0303
8 changed files with 192 additions and 22 deletions
+24 -4
View File
@@ -61,13 +61,33 @@
<!-- 添加热门用户、群组和插件 -->
<el-row :gutter="20" style="margin-top: 20px;">
<el-col :span="8">
<!-- 活跃用户卡片 -->
<el-card shadow="hover">
<div slot="header">
<span>热门用户</span>
<span>活跃用户</span>
</div>
<el-table :data="topUsers" style="width: 100%">
<el-table-column prop="user_id" label="用户ID"></el-table-column>
<el-table-column prop="total_calls" label="调用次数"></el-table-column>
<el-table {% raw %}:data="topUsers"{% endraw %} style="width: 100%">
<el-table-column label="用户">
<template slot-scope="scope">
{% raw %}{{ scope.row.user_name || scope.row.user_id }} ({{ scope.row.user_id }}){% endraw %}
</template>
</el-table-column>
<!-- ... 其他列 ... -->
</el-table>
</el-card>
<!-- 活跃群组卡片 -->
<el-card shadow="hover">
<div slot="header">
<span>活跃群组</span>
</div>
<el-table {% raw %}:data="topGroups"{% endraw %} style="width: 100%">
<el-table-column label="群组">
<template slot-scope="scope">
{% raw %}{{ scope.row.group_name || scope.row.group_id }} ({{ scope.row.group_id }}){% endraw %}
</template>
</el-table-column>
<!-- ... 其他列 ... -->
</el-table>
</el-card>
</el-col>