111
This commit is contained in:
@@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/api'
|
|||||||
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
# VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi"
|
||||||
|
|
||||||
|
|
||||||
VUE_APP_URL = "http://127.0.0.1:7211"
|
VUE_APP_URL = "http://192.168.2.111:7211"
|
||||||
VUE_APP_REPORT_URL = "http://192.168.2.106:7202"
|
VUE_APP_REPORT_URL = "http://192.168.2.106:7202"
|
||||||
##VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
##VUE_APP_REPORT_URL = "https://lpk.yyundong.com"
|
||||||
##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk"
|
##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk"
|
||||||
|
|||||||
53
src/api/brand.js
Normal file
53
src/api/brand.js
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
export function fetchList(params) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/list',
|
||||||
|
method:'get',
|
||||||
|
params:params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function createBrand(data) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/create',
|
||||||
|
method:'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function updateShowStatus(data) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/update/showStatus',
|
||||||
|
method:'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function updateFactoryStatus(data) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/update/factoryStatus',
|
||||||
|
method:'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function deleteBrand(id) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/delete/'+id,
|
||||||
|
method:'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function getBrand(id) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/'+id,
|
||||||
|
method:'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function updateBrand(id,data) {
|
||||||
|
return request({
|
||||||
|
url:'/pms/PmsBrand/update/'+id,
|
||||||
|
method:'post',
|
||||||
|
data:data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
@@ -55,16 +55,16 @@
|
|||||||
path: '/userInfo/index'
|
path: '/userInfo/index'
|
||||||
}, {
|
}, {
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'pms',
|
component: 'brand',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'el-icon-menu',
|
icon: 'el-icon-menu',
|
||||||
title: '商品管理'
|
title: '商品管理'
|
||||||
},
|
},
|
||||||
name: '/pms',
|
name: '/brand',
|
||||||
path: '/pms',
|
path: '/brand',
|
||||||
children: [{
|
children: [{
|
||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
component: 'brand/index',
|
component: 'index',
|
||||||
meta: {
|
meta: {
|
||||||
icon: 'el-icon-help',
|
icon: 'el-icon-help',
|
||||||
title: '品牌管理'
|
title: '品牌管理'
|
||||||
|
|||||||
@@ -66,6 +66,42 @@ export const constantRoutes = [{
|
|||||||
title: '用户信息列表'
|
title: '用户信息列表'
|
||||||
}
|
}
|
||||||
}, ]
|
}, ]
|
||||||
|
}, {
|
||||||
|
path: '/brand',
|
||||||
|
component: Layout,
|
||||||
|
redirect: null,
|
||||||
|
meta: {
|
||||||
|
title: '商品管理'
|
||||||
|
},
|
||||||
|
children: [{
|
||||||
|
path: '/brand/index',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/pms/brand/index.vue'),
|
||||||
|
name: 'index',
|
||||||
|
meta: {
|
||||||
|
title: '品牌管理'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/cardManage/enterprise',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/cardManage/enterprise.vue'),
|
||||||
|
name: 'enterprise',
|
||||||
|
meta: {
|
||||||
|
title: '商品分类'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/cardManage/giftCard',
|
||||||
|
component: () =>
|
||||||
|
import('@/views/cardManage/giftCard.vue'),
|
||||||
|
name: 'giftCard',
|
||||||
|
meta: {
|
||||||
|
title: '商品类型'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
}, {
|
}, {
|
||||||
path: '/marketingCard',
|
path: '/marketingCard',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|||||||
Reference in New Issue
Block a user