menuJurisdiction.js 686 B

12345678910111213141516171819202122232425
  1. import { get, post } from '@/http/index'
  2. // 查询菜单列表
  3. export const getAllMenuList = async (query) => {
  4. return await get('/system/menu/AllList', query)
  5. }
  6. // 查询菜单列表
  7. export const getAllRoleList = async (query) => {
  8. return await get('/system/role/list', query)
  9. }
  10. //根据菜单id获取有权限的角色列表
  11. export const getRoleListByMenuId = async (formData) => {
  12. return await post('/system/role/' + formData)
  13. }
  14. //分配角色确认
  15. export const addRowMenu = async (formData) => {
  16. return await post('/system/menu/addRowMenu', formData)
  17. }
  18. export const deleteRoleMenu = async (formData) => {
  19. return await post('/system/menu/deleteRoleMenu', formData)
  20. }