refactor: 用户组标签显示优化
This commit is contained in:
parent
776fd0f0e8
commit
5d5f6f9391
|
@ -1,10 +1,9 @@
|
|||
<template>
|
||||
<div>
|
||||
<ms-tag v-for="(role, index) in roles"
|
||||
:key="index"
|
||||
:effect="effect"
|
||||
:type="type"
|
||||
:content="role.name"/>
|
||||
<span v-for="(role, index) in roles" :key="index">
|
||||
<el-tag :type="type" :effect="effect" color="" size="mini">{{role.name}}</el-tag>
|
||||
<br>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<el-table-column prop="name" :label="$t('commons.username')"/>
|
||||
<el-table-column prop="email" :label="$t('commons.email')"/>
|
||||
<el-table-column prop="phone" :label="$t('commons.phone')"/>
|
||||
<el-table-column label="用户组" width="120">
|
||||
<el-table-column label="用户组" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.groups" type="success"/>
|
||||
</template>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<el-table-column prop="name" :label="$t('commons.username')"/>
|
||||
<el-table-column prop="email" :label="$t('commons.email')"/>
|
||||
<el-table-column prop="phone" :label="$t('commons.phone')"/>
|
||||
<el-table-column prop="groups" label="用户组" width="120">
|
||||
<el-table-column prop="groups" label="用户组" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.groups" type="success"/>
|
||||
</template>
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<el-table-column prop="name" :label="$t('commons.username')"/>
|
||||
<el-table-column prop="email" :label="$t('commons.email')"/>
|
||||
<el-table-column prop="phone" :label="$t('commons.phone')"/>
|
||||
<el-table-column label="用户组" width="120">
|
||||
<el-table-column label="用户组" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.groups" type="success"/>
|
||||
</template>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<el-table-column prop="id" label="ID"/>
|
||||
<el-table-column prop="name" :label="$t('commons.name')" width="200"/>
|
||||
|
||||
<el-table-column :label="$t('commons.group')" width="140">
|
||||
<el-table-column :label="$t('commons.group')" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.roles"/>
|
||||
</template>
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
<el-table-column prop="name" :label="$t('commons.username')"/>
|
||||
<el-table-column prop="email" :label="$t('commons.email')"/>
|
||||
<el-table-column prop="phone" :label="$t('commons.phone')"/>
|
||||
<el-table-column label="用户组" width="120">
|
||||
<el-table-column label="用户组" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.groups" type="success"/>
|
||||
</template>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<el-table-column prop="name" :label="$t('commons.username')"/>
|
||||
<el-table-column prop="email" :label="$t('commons.email')"/>
|
||||
<el-table-column prop="phone" :label="$t('commons.phone')"/>
|
||||
<el-table-column prop="groups" label="用户组" width="120">
|
||||
<el-table-column prop="groups" label="用户组" width="150">
|
||||
<template v-slot:default="scope">
|
||||
<ms-roles-tag :roles="scope.row.groups" type="success"/>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue