1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-01 13:33:58 +08:00

Added user name and user status fields to user view

This commit is contained in:
Chad Derya 2019-09-11 19:17:39 +01:00
parent cb86b920be
commit 131e790e26

View File

@ -18,6 +18,12 @@
</template>
</el-table-column>
<el-table-column align="center" label="Username" width="200">
<template slot-scope="scope">
<span>{{ scope.row.username }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="Account" width="200">
<template slot-scope="scope">
<span>{{ scope.row.account.name }}</span>
@ -36,6 +42,14 @@
</template>
</el-table-column>
<el-table-column align="center" label="Status" width="200">
<template slot-scope="scope">
<span v-if="scope.row.status_id===100">Active</span>
<span v-if="scope.row.status_id===200">Inactive</span>
<span v-if="scope.row.status_id===300">Locked</span>
</template>
</el-table-column>
<el-table-column align="center" label="Actions" width="120">
<template slot-scope="scope">
<router-link :to="'/users/edit/' + scope.row.id">