Commit acd591a8 authored by hanfeng's avatar hanfeng

添加用户管理后台

parent e3a5f04a
import fetch from 'utils/fetch';
export function UploadMembershipList(form) {
return fetch({
url: 'api/admin/admin/member/user/export',
method: 'post',
data: form
});
}
export function saveNewMemberObject(obj) {
return fetch({
url: 'api/admin/admin/member/save',
method: 'post',
data:obj
});
}
import fetch from 'utils/fetch'; import fetch from 'utils/fetch';
export function page(obj) { export function appPage(obj) {
return fetch({ return fetch({
url: '/api/admin/appUsersManage/findAll', url: '/api/admin/appUsersManage/findAll',
method: 'post', method: 'post',
...@@ -15,3 +15,27 @@ export function getObj(id) { ...@@ -15,3 +15,27 @@ export function getObj(id) {
}); });
} }
export function setAvailable(id) {
return fetch({
url: '/api/admin/appUsersManage/available/'+id,
method: 'put',
});
}
export function setDisable(id) {
return fetch({
url: '/api/admin/appUsersManage/disable/'+id,
method: 'put',
});
}
export function seveObj(obj) {
return fetch({
url: '/api/admin/baseUserMember/setUserMember/',
method: 'put',
data:obj
});
}
...@@ -71,4 +71,12 @@ export function getSysRegionByIds(ids) { ...@@ -71,4 +71,12 @@ export function getSysRegionByIds(ids) {
url: '/vehicle/sysRegion/getSysRegionByIds/' + ids, url: '/vehicle/sysRegion/getSysRegionByIds/' + ids,
method: 'get' method: 'get'
}); });
}
export function getSysRegionById(id) {
return fetch({
url: '/vehicle/sysRegion/getSysRegionById//' + id,
method: 'get'
});
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment