用户管理页面调整

This commit is contained in:
王帅 2025-04-29 13:09:13 +08:00
parent 4c90100d18
commit f7deaf30a5

View File

@ -106,12 +106,14 @@
ref="table" ref="table"
bordered bordered
size="middle" size="middle"
:scroll="{x:true}"
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange"> @change="handleTableChange">
<template slot="avatarslot" slot-scope="text, record, index"> <template slot="avatarslot" slot-scope="text, record, index">
@ -178,6 +180,7 @@
</template> </template>
<script> <script>
import '@/assets/less/TableExpand.less';
import UserModal from './modules/UserModal' import UserModal from './modules/UserModal'
import PasswordModal from './modules/PasswordModal' import PasswordModal from './modules/PasswordModal'
import {putAction,getFileAccessHttpUrl} from '@/api/manage'; import {putAction,getFileAccessHttpUrl} from '@/api/manage';
@ -221,19 +224,19 @@
title: '用户账号', title: '用户账号',
align: "center", align: "center",
dataIndex: 'username', dataIndex: 'username',
width: 120, // width: 120,
sorter: true sorter: true
}, },
{ {
title: '用户姓名', title: '用户姓名',
align: "center", align: "center",
width: 100, // width: 100,
dataIndex: 'realname', dataIndex: 'realname',
}, },
{ {
title: '头像', title: '头像',
align: "center", align: "center",
width: 120, // width: 120,
dataIndex: 'avatar', dataIndex: 'avatar',
scopedSlots: {customRender: "avatarslot"} scopedSlots: {customRender: "avatarslot"}
}, },
@ -241,38 +244,38 @@
{ {
title: '性别', title: '性别',
align: "center", align: "center",
width: 80, // width: 80,
dataIndex: 'sex_dictText', dataIndex: 'sex_dictText',
sorter: true sorter: true
}, },
{ {
title: '生日', title: '生日',
align: "center", align: "center",
width: 100, // width: 100,
dataIndex: 'birthday' dataIndex: 'birthday'
}, },
{ {
title: '手机号码', title: '手机号码',
align: "center", align: "center",
width: 100, // width: 100,
dataIndex: 'phone' dataIndex: 'phone'
}, },
{ {
title: '部门', title: '部门',
align: "center", align: "center",
width: 180, // width: 180,
dataIndex: 'orgCodeTxt' dataIndex: 'orgCodeTxt'
}, },
{ {
title: '负责部门', title: '负责部门',
align: "center", align: "center",
width: 180, // width: 180,
dataIndex: 'departIds_dictText' dataIndex: 'departIds_dictText'
}, },
{ {
title: '状态', title: '状态',
align: "center", align: "center",
width: 80, // width: 80,
dataIndex: 'status_dictText' dataIndex: 'status_dictText'
}, },
{ {
@ -280,7 +283,8 @@
dataIndex: 'action', dataIndex: 'action',
scopedSlots: {customRender: 'action'}, scopedSlots: {customRender: 'action'},
align: "center", align: "center",
width: 170 width: 147,
fixed:"right",
} }
], ],
@ -388,5 +392,8 @@
} }
</script> </script>
<style scoped> <style scoped>
@import '~@assets/less/common.less' @import '~@assets/less/common.less';
::v-deep .ant-table-selection-column {
padding: 10px !important;
}
</style> </style>