提交 a065ffda authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

refactor: 优化用户列表样式

上级 ff07d481
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
</template> </template>
<el-table-column prop="username" label="ID" /> <el-table-column prop="username" label="ID" />
<el-table-column prop="nickName" sortable="custom" :label="$t('commons.nick_name')" /> <el-table-column :show-overflow-tooltip="true" prop="nickName" sortable="custom" :label="$t('commons.nick_name')" />
<el-table-column prop="gender" :label="$t('commons.gender')" /> <el-table-column prop="gender" :label="$t('commons.gender')" width="60" />
<el-table-column :show-overflow-tooltip="true" prop="phone" :label="$t('commons.phone')" /> <!-- <el-table-column :show-overflow-tooltip="true" prop="phone" :label="$t('commons.phone')" /> -->
<el-table-column :show-overflow-tooltip="true" prop="email" :label="$t('commons.email')" /> <el-table-column :show-overflow-tooltip="true" prop="email" :label="$t('commons.email')" />
<el-table-column :show-overflow-tooltip="true" prop="dept" sortable="custom" :label="$t('commons.organization')"> <el-table-column :show-overflow-tooltip="true" prop="dept" sortable="custom" :label="$t('commons.organization')">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="status" sortable="custom" :label="$t('commons.status')"> <el-table-column prop="status" sortable="custom" :label="$t('commons.status')" width="80">
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-switch v-model="scope.row.enabled" :active-value="1" :inactive-value="0" :disabled="!checkPermission(['user:edit']) || scope.row.isAdmin" inactive-color="#DCDFE6" @change="changeSwitch(scope.row)" /> <el-switch v-model="scope.row.enabled" :active-value="1" :inactive-value="0" :disabled="!checkPermission(['user:edit']) || scope.row.isAdmin" inactive-color="#DCDFE6" @change="changeSwitch(scope.row)" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="createTime" sortable="custom" :label="$t('commons.create_time')"> <el-table-column :show-overflow-tooltip="true" prop="createTime" sortable="custom" :label="$t('commons.create_time')" width="180">
<template v-slot:default="scope"> <template v-slot:default="scope">
<span>{{ scope.row.createTime | timestampFormatDate }}</span> <span>{{ scope.row.createTime | timestampFormatDate }}</span>
</template> </template>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论