人员管理

This commit is contained in:
aoli.qu 2021-11-08 10:53:58 +08:00
parent 224e6e3047
commit 26cfe63a9d
3 changed files with 28 additions and 4 deletions

View File

@ -0,0 +1,13 @@
import request from '@/utils/request'
const personRegisterApi = {
page: 'person/register/pageList'
}
export function personRegisterPage (params) {
return request({
url: personRegisterApi.page,
method: 'get',
params: params
})
}

View File

@ -14,7 +14,7 @@ const userApi = {
const userPasswordApi = {
update: '/sys/user/passwordUpdate',
reset: '/sys/user/passwordReset'
reset: '/sys/user/resetPwd'
}
export function userLogin (params) {
@ -85,7 +85,7 @@ export function passwordUpdate (params) {
export function passwordReset (params) {
return request({
url: userPasswordApi.reset,
method: 'post',
data: params
method: 'get',
params: params
})
}

View File

@ -4,7 +4,8 @@ const dictionaryItemApi = {
add: 'sys/dictionary/item/add',
update: 'sys/dictionary/item/edit',
del: 'sys/dictionary/item/del',
page: 'sys/dictionary/item/pageList'
page: 'sys/dictionary/item/pageList',
dropDown: 'sys/dictionary/item/dropDown'
}
export function dictionaryItemAdd (params) {
@ -35,3 +36,13 @@ export function dictionaryItemPage (params) {
params: params
})
}
/**
* 获取字典类型下所有字典举例返回格式为[{value:"M",name:"男"},{code:"F",name:"女"}]
*/
export function dictionaryDropDown (params) {
return request({
url: dictionaryItemApi.dropDown,
method: 'get',
params: params
})
}