chore: 整合部署文件与管理端源码入仓

- deploy/server.Dockerfile、deploy/client-h5.Dockerfile(自 ai-art 仓库迁出,去重)
- docker-compose.yml 迁入并修正路径(admin 上下文 ./admin),新增可选 h5 服务(profile 隔离)
- admin/:管理前端完整源码(Vite+Vue3,自 workspace/dimension-admin 合并)
This commit is contained in:
2026-09-12 22:34:52 +08:00
parent 92d54adabb
commit 8c33617073
18 changed files with 1877 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
<template>
<div>
<div class="head"><h2>用户管理</h2><el-input v-model="q" placeholder="搜索昵称" style="width:200px" clearable @change="page=1;load()" /></div>
<el-table :data="list">
<el-table-column prop="nickname" label="昵称" width="140" />
<el-table-column label="手机号" width="130"><template #default="{row}">{{ row.phone || '-' }}</template></el-table-column>
<el-table-column label="注册时间" width="160"><template #default="{row}">{{ row.createdAt?.slice(0,10) }}</template></el-table-column>
<el-table-column label="操作"><template #default="{row}"><el-tag size="small">{{ row._id?.slice(-6) }}</el-tag></template></el-table-column>
</el-table>
<el-pagination v-model:current-page="page" layout="prev,pager,next,total" :total="total" :page-size="20" style="margin-top:14px" @current-change="load" />
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import { apiGet } from '../api'
const list = ref([]); const total = ref(0); const page = ref(1); const q = ref('')
async function load() {
const r = await apiGet(`/api/admin/users?q=${q.value}&page=${page.value}`)
list.value = r.users || []; total.value = r.total || 0
}
onMounted(load)
</script>
<style scoped>.head{display:flex;justify-content:space-between;align-items:center}</style>