feat(frontend): migrate admin UI to role-site model and clean legacy pages
This commit is contained in:
@@ -21,23 +21,20 @@
|
||||
Sub:<span class="font-mono">{{ snapshot.user_sub }}</span>
|
||||
</p>
|
||||
|
||||
<el-empty
|
||||
v-if="snapshot.permissions.length === 0"
|
||||
description="目前沒有任何權限"
|
||||
/>
|
||||
<el-empty v-if="snapshot.roles.length === 0" description="目前沒有任何角色" />
|
||||
|
||||
<el-table
|
||||
v-else
|
||||
:data="snapshot.permissions"
|
||||
:data="snapshot.roles"
|
||||
stripe
|
||||
border
|
||||
class="w-full shadow-sm"
|
||||
>
|
||||
<el-table-column prop="scope_type" label="Scope 類型" width="100" />
|
||||
<el-table-column prop="scope_id" label="Scope ID" min-width="140" />
|
||||
<el-table-column prop="system" label="系統" width="120" />
|
||||
<el-table-column prop="module" label="模組" width="120" />
|
||||
<el-table-column prop="action" label="操作" width="100" />
|
||||
<el-table-column prop="company_display_name" label="公司" min-width="150" />
|
||||
<el-table-column prop="site_display_name" label="站台" min-width="160" />
|
||||
<el-table-column prop="system_name" label="系統" min-width="150" />
|
||||
<el-table-column prop="role_name" label="角色" min-width="160" />
|
||||
<el-table-column prop="idp_role_name" label="Keycloak Role" min-width="180" />
|
||||
</el-table>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user