fix: User management does not display roles
--bug=1057486 --user=王孝刚 【用户管理】企业版-用户管理列表-未显示角色字段 https://www.tapd.cn/62980211/s/1718526
This commit is contained in:
parent
40fcc5bcb9
commit
86e87e554e
@ -71,6 +71,11 @@
|
|||||||
{{ row.phone || '-' }}
|
{{ row.phone || '-' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="role" :label="$t('views.role.member.role')" min-width="100" v-if="user.isEE()">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<TagGroup :tags="row.role"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="source" :label="$t('views.userManage.source.label')">
|
<el-table-column prop="source" :label="$t('views.userManage.source.label')">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{
|
{{
|
||||||
@ -152,7 +157,7 @@ import {MsgSuccess, MsgConfirm} from '@/utils/message'
|
|||||||
import {t} from '@/locales'
|
import {t} from '@/locales'
|
||||||
import {ValidCount, ValidType} from "@/enums/common.ts";
|
import {ValidCount, ValidType} from "@/enums/common.ts";
|
||||||
import useStore from "@/stores";
|
import useStore from "@/stores";
|
||||||
const {common } = useStore()
|
const {user, common} = useStore()
|
||||||
const search_type = ref('name')
|
const search_type = ref('name')
|
||||||
const search_form = ref<{
|
const search_form = ref<{
|
||||||
name: string
|
name: string
|
||||||
@ -227,7 +232,8 @@ function createUser() {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
window.open('https://maxkb.cn/pricing.html', '_blank')
|
window.open('https://maxkb.cn/pricing.html', '_blank')
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user