perf: ⚡ 用户-重设密码
This commit is contained in:
@@ -23,7 +23,7 @@ export const createCrudOptions = function ({crudExpose, context}: CreateCrudOpti
|
|||||||
return await api.DelObj(row.id);
|
return await api.DelObj(row.id);
|
||||||
};
|
};
|
||||||
const addRequest = async ({form}: AddReq) => {
|
const addRequest = async ({form}: AddReq) => {
|
||||||
const data = crudExpose.getSearchFormData()
|
const data = crudExpose!.getSearchFormData()
|
||||||
const parent = data.parent
|
const parent = data.parent
|
||||||
form.parent = parent
|
form.parent = parent
|
||||||
if (parent) {
|
if (parent) {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
text:"导出",//按钮文字
|
text:"导出",//按钮文字
|
||||||
title:"导出",//鼠标停留显示的信息
|
title:"导出",//鼠标停留显示的信息
|
||||||
click(){
|
click(){
|
||||||
return exportRequest(crudExpose.getSearchFormData())
|
return exportRequest(crudExpose!.getSearchFormData())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -58,7 +58,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
rowHandle: {
|
rowHandle: {
|
||||||
//固定右侧
|
//固定右侧
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 140,
|
width: 200,
|
||||||
buttons: {
|
buttons: {
|
||||||
view: {
|
view: {
|
||||||
show: false,
|
show: false,
|
||||||
@@ -73,6 +73,19 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
|
|||||||
type: 'text',
|
type: 'text',
|
||||||
show: hasPermissions('user:Delete'),
|
show: hasPermissions('user:Delete'),
|
||||||
},
|
},
|
||||||
|
custom: {
|
||||||
|
text: '重设密码',
|
||||||
|
type: 'text',
|
||||||
|
show: hasPermissions('user:ResetPassword'),
|
||||||
|
tooltip: {
|
||||||
|
placement: 'top',
|
||||||
|
content: '重设密码',
|
||||||
|
},
|
||||||
|
//@ts-ignore
|
||||||
|
click: (ctx: any) => {
|
||||||
|
const { row } = ctx;
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
columns: {
|
columns: {
|
||||||
|
|||||||
Reference in New Issue
Block a user