提交 09bdada6 authored 作者: pengxiaohui's avatar pengxiaohui

样式优化

上级 1c42a605
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-table-column> </el-table-column>
<el-table-column label="角色" min-width="80"> <el-table-column label="角色" min-width="80">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p class="table-item-role" v-for="item in row.roles" :key="item.name"><span :class="{doted: true, 'color-red': item.id === 47, 'color-blue': item.id === 56}" v-if="[47, 56].includes(item.id)">·</span>{{item.display_name}}</p> <p class="table-item-role" v-for="item in row.roles" :key="item.name"><span :class="{doted: true, 'color-red': item.name === 'administrator'}" v-if="['administrator', 'ordinary_user'].includes(item.name)">·</span>{{item.display_name}}</p>
<span v-if="!row.roles || !row.roles.length">-</span> <span v-if="!row.roles || !row.roles.length">-</span>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<el-table-column label="操作" min-width="80" v-if="isSuperAdmin"> <el-table-column label="操作" min-width="80" v-if="isSuperAdmin">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button> <el-button type="text" size="small" @click="handleEdit(scope.row)">编辑</el-button>
<el-button type="text" size="small" @click="handleDelete(scope.row.userid)">删除</el-button> <!-- <el-button type="text" size="small" @click="handleDelete(scope.row.userid)">删除</el-button> -->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论