Commit 8a179c33 authored by 陈明豪's avatar 陈明豪

轮播管理初始化

parent 2ecf5e29
import request from '../../../../pet-admin/src/utils/request'
// 查询轮播图管理列表
export function listBanner(query) {
return request({
url: '/business/banner/list',
method: 'get',
params: query
})
}
// 查询轮播图管理详细
export function getBanner(id) {
return request({
url: '/business/banner/' + id,
method: 'get'
})
}
// 新增轮播图管理
export function addBanner(data) {
return request({
url: '/business/banner',
method: 'post',
data: data
})
}
// 修改轮播图管理
export function updateBanner(data) {
return request({
url: '/business/banner',
method: 'put',
data: data
})
}
// 删除轮播图管理
export function delBanner(id) {
return request({
url: '/business/banner/' + id,
method: 'delete'
})
}
...@@ -253,6 +253,22 @@ export const constantRoutes = [ ...@@ -253,6 +253,22 @@ export const constantRoutes = [
} }
] ]
}, },
// 轮播
{
path: '/banner/management',
component: Layout,
hidden: true,
permissions: ['*:*:*'],
children: [
{
path: 'index',
props: true,
component: () => import('@/views/banner_management/banner_management.vue'),
name: 'banner_management',
meta: { title: '轮播管理', icon: 'component' }
}
]
},
// 业务管理 // 业务管理
{ {
path: '/service-management', path: '/service-management',
......
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