-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bdbffae
commit 993dcd2
Showing
28 changed files
with
2,188 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import request from '@/utils/request' | ||
|
||
export function fetchList(parentId, params) { | ||
return request({ | ||
url: '/menu/list/' + parentId, | ||
method: 'get', | ||
params: params | ||
}) | ||
} | ||
|
||
export function deleteMenu(id) { | ||
return request({ | ||
url: '/menu/delete/' + id, | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function createMenu(data) { | ||
return request({ | ||
url: '/menu/create', | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateMenu(id, data) { | ||
return request({ | ||
url: '/menu/update/' + id, | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function getMenu(id) { | ||
return request({ | ||
url: '/menu/' + id, | ||
method: 'get', | ||
}) | ||
} | ||
|
||
export function updateHidden(id, params) { | ||
return request({ | ||
url: '/menu/updateHidden/' + id, | ||
method: 'post', | ||
params: params | ||
}) | ||
} | ||
|
||
export function fetchTreeList() { | ||
return request({ | ||
url: '/menu/treeList', | ||
method: 'get' | ||
}) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import request from '@/utils/request' | ||
|
||
export function fetchList(params) { | ||
return request({ | ||
url: '/resource/list', | ||
method: 'get', | ||
params: params | ||
}) | ||
} | ||
|
||
export function createResource(data) { | ||
return request({ | ||
url: '/resource/create', | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateResource(id, data) { | ||
return request({ | ||
url: '/resource/update/' + id, | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function deleteResource(id) { | ||
return request({ | ||
url: '/resource/delete/' + id, | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function fetchAllResourceList() { | ||
return request({ | ||
url: '/resource/listAll', | ||
method: 'get' | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import request from '@/utils/request' | ||
|
||
export function listAllCate() { | ||
return request({ | ||
url: '/resourceCategory/listAll', | ||
method: 'get' | ||
}) | ||
} | ||
|
||
export function createResourceCategory(data) { | ||
return request({ | ||
url: '/resourceCategory/create', | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateResourceCategory(id, data) { | ||
return request({ | ||
url: '/resourceCategory/update/' + id, | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function deleteResourceCategory(id) { | ||
return request({ | ||
url: '/resourceCategory/delete/' + id, | ||
method: 'post' | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import request from '@/utils/request' | ||
|
||
export function fetchList(params) { | ||
return request({ | ||
url: '/role/list', | ||
method: 'get', | ||
params: params | ||
}) | ||
} | ||
|
||
export function createRole(data) { | ||
return request({ | ||
url: '/role/create', | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateRole(id, data) { | ||
return request({ | ||
url: '/role/update/' + id, | ||
method: 'post', | ||
data: data | ||
}) | ||
} | ||
|
||
export function updateStatus(id, params) { | ||
return request({ | ||
url: '/role/updateStatus/' + id, | ||
method: 'post', | ||
params: params | ||
}) | ||
} | ||
|
||
export function deleteRole(data) { | ||
return request({ | ||
url:'/role/delete', | ||
method:'post', | ||
data:data | ||
}) | ||
} | ||
|
||
export function fetchAllRoleList() { | ||
return request({ | ||
url: '/role/listAll', | ||
method: 'get' | ||
}) | ||
} | ||
|
||
export function listMenuByRole(roleId) { | ||
return request({ | ||
url: '/role/listMenu/'+roleId, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
export function listResourceByRole(roleId) { | ||
return request({ | ||
url: '/role/listResource/'+roleId, | ||
method: 'get' | ||
}) | ||
} | ||
|
||
export function allocMenu(data) { | ||
return request({ | ||
url: '/role/allocMenu', | ||
method: 'post', | ||
data:data | ||
}) | ||
} | ||
|
||
export function allocResource(data) { | ||
return request({ | ||
url: '/role/allocResource', | ||
method: 'post', | ||
data:data | ||
}) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.