用户管理密码设置优化
This commit is contained in:
@@ -100,10 +100,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
|
|||||||
placement: 'top',
|
placement: 'top',
|
||||||
content: '重设密码',
|
content: '重设密码',
|
||||||
},
|
},
|
||||||
click: (ctx: any) => {
|
click: (ctx: any) => context?.handleResetPwdOpen(ctx.row),
|
||||||
const { row } = ctx;
|
|
||||||
context?.handleResetPwdOpen(row);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {storeToRefs} from "pinia";
|
|||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
import { Md5 } from 'ts-md5';
|
import { Md5 } from 'ts-md5';
|
||||||
import { commonCrudConfig } from "/@/utils/commonCrud";
|
import { commonCrudConfig } from "/@/utils/commonCrud";
|
||||||
|
import { ElMessageBox } from 'element-plus';
|
||||||
export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOptionsRet {
|
||||||
const pageRequest = async (query: UserPageQuery) => {
|
const pageRequest = async (query: UserPageQuery) => {
|
||||||
return await api.GetList(query);
|
return await api.GetList(query);
|
||||||
@@ -79,9 +80,10 @@ export const createCrudOptions = function ({crudExpose}: CreateCrudOptionsProps)
|
|||||||
text: "导出",//按钮文字
|
text: "导出",//按钮文字
|
||||||
title: "导出",//鼠标停留显示的信息
|
title: "导出",//鼠标停留显示的信息
|
||||||
show: auth('user:Export'),
|
show: auth('user:Export'),
|
||||||
click() {
|
click: (ctx: any) => ElMessageBox.confirm(
|
||||||
return exportRequest(crudExpose!.getSearchFormData())
|
'确定重设密码吗?', '提示',
|
||||||
}
|
{ confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }
|
||||||
|
).then(() => resetToDefaultPasswordRequest(ctx.row))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user