diff --git a/.env.development b/.env.development index cf28474..1f28e67 100644 --- a/.env.development +++ b/.env.development @@ -8,7 +8,7 @@ VUE_APP_BASE_API = '/api' # 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 = "https://lpk.yyundong.com" ##VUE_APP_REPORT_URL = "https://supervise.yxtsoft.com/lpk" diff --git a/src/api/brand.js b/src/api/brand.js new file mode 100644 index 0000000..6c62b7e --- /dev/null +++ b/src/api/brand.js @@ -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 + }) +} + diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 652221f..0b1cc41 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -55,16 +55,16 @@ path: '/userInfo/index' }, { alwaysShow: true, - component: 'pms', + component: 'brand', meta: { icon: 'el-icon-menu', title: '商品管理' }, - name: '/pms', - path: '/pms', + name: '/brand', + path: '/brand', children: [{ alwaysShow: true, - component: 'brand/index', + component: 'index', meta: { icon: 'el-icon-help', title: '品牌管理' diff --git a/src/router/index.js b/src/router/index.js index 6dc0bcb..2a4b674 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -66,6 +66,42 @@ export const constantRoutes = [{ 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', component: Layout, @@ -295,7 +331,7 @@ export const constantRoutes = [{ meta: { title: '打印企业卡' } - },] + }, ] },