You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
106 lines
1.7 KiB
106 lines
1.7 KiB
import request from '@/router/axios'; |
|
|
|
export const getList = (current, size, params) => { |
|
return request({ |
|
url: '/smartpark/menu/list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getLazyList = (parentId, params) => { |
|
return request({ |
|
url: '/smartpark/menu/lazy-list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
parentId |
|
} |
|
}) |
|
} |
|
|
|
export const getLazyMenuList = (parentId, params) => { |
|
return request({ |
|
url: '/smartpark/menu/lazy-menu-list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
parentId |
|
} |
|
}) |
|
} |
|
|
|
export const getMenuList = (current, size, params) => { |
|
return request({ |
|
url: '/smartpark/menu/menu-list', |
|
method: 'get', |
|
params: { |
|
...params, |
|
current, |
|
size, |
|
} |
|
}) |
|
} |
|
|
|
export const getMenuTree = (tenantId) => { |
|
return request({ |
|
url: '/smartpark/menu/tree', |
|
method: 'get', |
|
params: { |
|
tenantId, |
|
} |
|
}) |
|
} |
|
|
|
export const remove = (ids) => { |
|
return request({ |
|
url: '/smartpark/menu/remove', |
|
method: 'post', |
|
params: { |
|
ids, |
|
} |
|
}) |
|
} |
|
|
|
export const add = (row) => { |
|
return request({ |
|
url: '/smartpark/menu/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const update = (row) => { |
|
return request({ |
|
url: '/smartpark/menu/submit', |
|
method: 'post', |
|
data: row |
|
}) |
|
} |
|
|
|
export const getMenu = (id) => { |
|
return request({ |
|
url: '/smartpark/menu/detail', |
|
method: 'get', |
|
params: { |
|
id, |
|
} |
|
}) |
|
} |
|
|
|
export const getTopMenu = () => request({ |
|
url: '/api/blade-system/menu/top-menu', |
|
method: 'get' |
|
}); |
|
|
|
export const getRoutes = (topMenuId) => request({ |
|
url: '/api/blade-system/menu/routes', |
|
method: 'get', |
|
params: { |
|
topMenuId, |
|
} |
|
});
|
|
|