diff --git a/src/api/person/personRegister.js b/src/api/person/personRegister.js new file mode 100644 index 0000000..f747205 --- /dev/null +++ b/src/api/person/personRegister.js @@ -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 + }) +} diff --git a/src/api/security/user.js b/src/api/security/user.js index 659b2b5..f151cfd 100644 --- a/src/api/security/user.js +++ b/src/api/security/user.js @@ -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 }) } diff --git a/src/api/sys/dictionaryItem.js b/src/api/sys/dictionaryItem.js index 07a72df..f82fa04 100644 --- a/src/api/sys/dictionaryItem.js +++ b/src/api/sys/dictionaryItem.js @@ -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 + }) +}