提交 4a8ba5c3 authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 b64ced0e
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
<template v-slot:table-roles="{ row }"> <template v-slot:table-roles="{ row }">
<el-tag v-for="(item, index) in row.roles" :key="index" style="margin: 5px 5px 5px 0">{{ item.name }}</el-tag> <el-tag v-for="(item, index) in row.roles" :key="index" style="margin: 5px 5px 5px 0">{{ item.name }}</el-tag>
</template> </template>
<template v-slot:table-app-manager="{ row }">
<el-tag v-if="row.is_app_manager"></el-tag>
<el-tag type="info" v-else></el-tag>
</template>
<template v-slot:table-status="{ row }"> <template v-slot:table-status="{ row }">
<el-switch <el-switch
v-model="row.status" v-model="row.status"
...@@ -80,9 +84,10 @@ export default { ...@@ -80,9 +84,10 @@ export default {
columns: [ columns: [
{ type: 'selection' }, { type: 'selection' },
// { label: 'SSO ID', prop: 'sso_id' }, // { label: 'SSO ID', prop: 'sso_id' },
{ label: '姓名', prop: 'sso_user.realname' },
{ label: '角色', prop: 'roles', slots: 'table-roles' },
{ label: '昵称', prop: 'sso_user.nickname' }, { label: '昵称', prop: 'sso_user.nickname' },
{ label: '角色', prop: 'roles', slots: 'table-roles' },
{ label: '应用管理员', prop: 'is_app_manager', slots: 'table-app-manager' },
{ label: '姓名', prop: 'sso_user.realname' },
{ label: '手机号', prop: 'sso_user.mobile' }, { label: '手机号', prop: 'sso_user.mobile' },
{ label: '邮箱', prop: 'sso_user.email' }, { label: '邮箱', prop: 'sso_user.email' },
// { label: '创建时间', prop: 'created_at' }, // { label: '创建时间', prop: 'created_at' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论