| | |
| | | |
| | | export const getList = (current, size, params) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/list', |
| | | url: '/api/ubcs-system/topmenu/list', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | |
| | | |
| | | export const getDetail = (id) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/detail', |
| | | url: '/api/ubcs-system/topmenu/detail', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | |
| | | |
| | | export const remove = (ids) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/remove', |
| | | url: '/api/ubcs-system/topmenu/remove', |
| | | method: 'post', |
| | | params: { |
| | | ids, |
| | |
| | | |
| | | export const add = (row) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/submit', |
| | | url: '/api/ubcs-system/topmenu/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const update = (row) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/submit', |
| | | url: '/api/ubcs-system/topmenu/submit', |
| | | method: 'post', |
| | | data: row |
| | | }) |
| | |
| | | |
| | | export const grantTree = () => { |
| | | return request({ |
| | | url: '/api/blade-system/menu/grant-top-tree', |
| | | url: '/api/ubcs-system/menu/grant-top-tree', |
| | | method: 'get', |
| | | }) |
| | | } |
| | | |
| | | export const getTopTree = (topMenuIds) => { |
| | | return request({ |
| | | url: '/api/blade-system/menu/top-tree-keys', |
| | | url: '/api/ubcs-system/menu/top-tree-keys', |
| | | method: 'get', |
| | | params: { |
| | | topMenuIds, |
| | |
| | | |
| | | export const grant = (topMenuIds, menuIds) => { |
| | | return request({ |
| | | url: '/api/blade-system/topmenu/grant', |
| | | url: '/api/ubcs-system/topmenu/grant', |
| | | method: 'post', |
| | | data: { |
| | | topMenuIds, |