chore(用户管理): 🚸 用户管理优化
This commit is contained in:
@@ -29,12 +29,15 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp
|
|||||||
delRequest
|
delRequest
|
||||||
},
|
},
|
||||||
rowHandle: {
|
rowHandle: {
|
||||||
width: 400,
|
//固定右侧
|
||||||
|
fixed: "right",
|
||||||
|
width: 310,
|
||||||
buttons: {
|
buttons: {
|
||||||
orderExample: {
|
orderExample: {
|
||||||
|
show:false,
|
||||||
text: "重置密码",
|
text: "重置密码",
|
||||||
click: () => {
|
click: () => {
|
||||||
console.log("reset password")
|
//console.log("reset password")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -49,12 +52,6 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: '70px',
|
width: '70px',
|
||||||
columnSetDisabled: true, //禁止在列设置中选择
|
columnSetDisabled: true, //禁止在列设置中选择
|
||||||
formatter: (context) => {
|
|
||||||
//计算序号,你可以自定义计算规则,此处为翻页累加
|
|
||||||
let index = context.index ?? 1;
|
|
||||||
let pagination = crudExpose.crudBinding.value.pagination;
|
|
||||||
return ((pagination.currentPage ?? 1) - 1) * pagination.pageSize + index + 1;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
@@ -240,6 +237,9 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp
|
|||||||
},
|
},
|
||||||
email: {
|
email: {
|
||||||
title: '邮箱',
|
title: '邮箱',
|
||||||
|
column:{
|
||||||
|
width:260
|
||||||
|
},
|
||||||
form: {
|
form: {
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user