用户管理-分页数量修改
This commit is contained in:
@@ -71,7 +71,7 @@ const rules = {
|
|||||||
const userModal = ref<boolean>(false);
|
const userModal = ref<boolean>(false);
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 3,
|
pageSize: 20,
|
||||||
itemCount: 0,
|
itemCount: 0,
|
||||||
})
|
})
|
||||||
const list = ref<{ id: number, name: string, dept: string[], mobile: string, email: string, account: string, role: string | null, dataPermission: string[], status: number, gender: number }[]>([])
|
const list = ref<{ id: number, name: string, dept: string[], mobile: string, email: string, account: string, role: string | null, dataPermission: string[], status: number, gender: number }[]>([])
|
||||||
@@ -230,6 +230,7 @@ const addUser = () => {
|
|||||||
currentUser.value = {
|
currentUser.value = {
|
||||||
id: 0,
|
id: 0,
|
||||||
real_name: '',
|
real_name: '',
|
||||||
|
dept_ids: [],
|
||||||
det_ids: null,
|
det_ids: null,
|
||||||
mobile: '',
|
mobile: '',
|
||||||
email: '',
|
email: '',
|
||||||
@@ -255,6 +256,7 @@ const handleEdit = (row: any) => {
|
|||||||
id: row.id,
|
id: row.id,
|
||||||
real_name: row.real_name,
|
real_name: row.real_name,
|
||||||
username: row.username,
|
username: row.username,
|
||||||
|
dept_ids: row.user_departments || [],
|
||||||
det_ids: row.user_departments?row.user_departments[0]:null,
|
det_ids: row.user_departments?row.user_departments[0]:null,
|
||||||
mobile: row.mobile,
|
mobile: row.mobile,
|
||||||
email: row.email,
|
email: row.email,
|
||||||
|
|||||||
Reference in New Issue
Block a user