帐号治理-项目治理--初步优化

This commit is contained in:
Cheng Zhou
2025-12-18 16:58:12 +08:00
parent a4ad087a0a
commit f6b89cb8c4
22 changed files with 30 additions and 29 deletions
+8 -7
View File
@@ -2,17 +2,14 @@
<div class="page">
<el-card>
<div class="header">
<h3>用户账号管理</h3>
<div>
<h3>账号治理系统登录账号</h3>
<p class="sub">账号用于登录系统本身不具备项目或角色权限</p>
</div>
<el-button type="primary" @click="openCreate">新建用户</el-button>
</div>
<el-table :data="users" stripe v-loading="loading" style="width: 100%">
<el-table-column prop="username" label="用户名" min-width="140" />
<el-table-column prop="role" label="角色" width="120">
<template #default="scope">
<el-tag type="success" v-if="scope.row.role === 'ADMIN'">ADMIN</el-tag>
<el-tag v-else>{{ scope.row.role }}</el-tag>
</template>
</el-table-column>
<el-table-column label="状态" width="120">
<template #default="scope">
<el-tag type="success" v-if="scope.row.is_active">启用</el-tag>
@@ -134,6 +131,10 @@ onMounted(() => {
justify-content: space-between;
margin-bottom: 12px;
}
.sub {
color: #666;
margin-top: 4px;
}
.pagination {
margin-top: 12px;
text-align: right;