refactor: simplify schema names and remove provider id columns
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
<template #empty><el-empty description="目前無系統" /></template>
|
||||
<el-table-column prop="system_key" label="System Key" width="200" />
|
||||
<el-table-column prop="name" label="系統名稱" min-width="180" />
|
||||
<el-table-column prop="provider_client_id" label="Provider Client ID" min-width="220" />
|
||||
<el-table-column prop="status" label="狀態" width="110" />
|
||||
<el-table-column label="操作" width="120">
|
||||
<template #default="{ row }">
|
||||
@@ -35,7 +34,6 @@
|
||||
<template #empty><el-empty description="此系統目前沒有角色" /></template>
|
||||
<el-table-column prop="role_key" label="Role Key" width="200" />
|
||||
<el-table-column prop="name" label="角色名稱" min-width="200" />
|
||||
<el-table-column prop="provider_role_name" label="Provider Role" min-width="210" />
|
||||
<el-table-column prop="status" label="狀態" width="110" />
|
||||
</el-table>
|
||||
<template #footer>
|
||||
@@ -82,8 +80,7 @@ async function handleSync() {
|
||||
const res = await adminHttp.post('/admin/sync/from-provider', null, { params: { force: true } })
|
||||
const summary = [
|
||||
`systems +${res.data?.systems_created ?? 0}`,
|
||||
`roles +${res.data?.roles_created ?? 0}`,
|
||||
`users upsert ${res.data?.users_upserted ?? 0}`
|
||||
`roles +${res.data?.roles_created ?? 0}`
|
||||
].join(' / ')
|
||||
ElMessage.success(`同步完成:${summary}`)
|
||||
await load()
|
||||
|
||||
Reference in New Issue
Block a user