diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js index 4fe0cbc..82abafa 100644 --- a/src/api/modules/mer_admin.js +++ b/src/api/modules/mer_admin.js @@ -48,6 +48,10 @@ export const mer_admin = { getProductPage: (data) => { return $http.post(`/merchant-api/product/page`, data); }, + //商品概况 + getProductOverview: (data) => { + return $http.post(`/merchant-api/product/overview`, data); + }, //商户商品分类 getProductCategory: (data) => { return $http.request({ diff --git a/src/router/full-routers.js b/src/router/full-routers.js index 8c203a3..c80e994 100644 --- a/src/router/full-routers.js +++ b/src/router/full-routers.js @@ -30,20 +30,46 @@ export default { menuId: getUUID(), parentId: 0, parentName: null, - name: "商品", - url: "local-course/resources", + name: "运营管理", + url: "operation-management", perms: "", type: 0, - elIcon: "el-icon-menu", + elIcon: "el-icon-s-help", orderNum: 0, open: null, list: [ { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "店铺列表", + url: "operation-management/shop-list/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "分销商列表", + url: "operation-management/distributor/index", + perms: "", + type: 1, + elIcon: "el-icon-shopping-cart-full", + orderNum: 0, + open: null, + list: [], + }, + { menuId: getUUID(), parentId: 0, parentName: null, name: "商品管理", - url: "product/commodity/index", + url: "operation-management/commodity/index", perms: "", type: 1, elIcon: "el-icon-menu", @@ -56,7 +82,7 @@ export default { parentId: 0, parentName: null, name: "订单管理", - url: "product/order/index", + url: "operation-management/order/index", perms: "", type: 1, elIcon: "el-icon-menu", @@ -69,7 +95,7 @@ export default { parentId: 0, parentName: null, name: "轮播图管理", - url: "product/banner/index", + url: "operation-management/banner/index", perms: "", type: 1, elIcon: "el-icon-menu", @@ -82,7 +108,7 @@ export default { parentId: 0, parentName: null, name: "公告管理", - url: "product/notice/index", + url: "operation-management/notice/index", perms: "", type: 1, elIcon: "el-icon-menu", @@ -92,106 +118,12 @@ export default { }, ], }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "银行卡管理", - url: "bank-card/index", - perms: "", - type: 0, - elIcon: "el-icon-picture-outline", - orderNum: 0, - open: null, - list: [], - hideInMenu: true, - }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "品牌管理", - url: "", - perms: "", - type: 0, - elIcon: "el-icon-money", - orderNum: 0, - open: null, - list: [ - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "品牌管理", - url: "brand/config/index", - perms: "", - type: 1, - elIcon: "el-icon-postcard", - orderNum: 0, - open: null, - list: [], - }, - ], - }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "优惠卷管理", - url: "coupon/index", - perms: "", - type: 0, - elIcon: "el-icon-document-remove", - orderNum: 0, - open: null, - list: [], - }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "预售管理", - url: "", - perms: "", - type: 0, - elIcon: "el-icon-data-analysis", - orderNum: 0, - open: null, - list: [ - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "预售商品", - url: "presale/products/index", - perms: "", - type: 1, - elIcon: "el-icon-postcard", - orderNum: 0, - open: null, - list: [], - }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "预售订单", - url: "presale/order/index", - perms: "", - type: 1, - elIcon: "el-icon-postcard", - orderNum: 0, - open: null, - list: [], - }, - ], - }, { menuId: getUUID(), parentId: 0, parentName: null, name: "数据中心", - url: "", + url: "datacenter", perms: "", type: 0, elIcon: "el-icon-tickets", @@ -243,8 +175,102 @@ export default { menuId: getUUID(), parentId: 0, parentName: null, - name: "营销管理", - url: "", + name: "银行卡管理", + url: "bank-card/index", + perms: "", + type: 0, + elIcon: "el-icon-picture-outline", + orderNum: 0, + open: null, + list: [], + hideInMenu: true, + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "品牌管理", + url: "brand", + perms: "", + type: 0, + elIcon: "el-icon-money", + orderNum: 0, + open: null, + list: [ + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "品牌管理", + url: "brand/config/index", + perms: "", + type: 1, + elIcon: "el-icon-postcard", + orderNum: 0, + open: null, + list: [], + }, + ], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "优惠卷营销工具管理", + url: "coupon/index", + perms: "", + type: 0, + elIcon: "el-icon-document-remove", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "预售营销工具管理", + url: "presale", + perms: "", + type: 0, + elIcon: "el-icon-data-analysis", + orderNum: 0, + open: null, + list: [ + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "预售商品", + url: "presale/products/index", + perms: "", + type: 1, + elIcon: "el-icon-postcard", + orderNum: 0, + open: null, + list: [], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "预售订单", + url: "presale/order/index", + perms: "", + type: 1, + elIcon: "el-icon-postcard", + orderNum: 0, + open: null, + list: [], + }, + ], + }, + { + menuId: getUUID(), + parentId: 0, + parentName: null, + name: "会员营销工具管理", + url: "marketing", perms: "", type: 0, elIcon: "el-icon-tickets", @@ -323,7 +349,7 @@ export default { parentId: 0, parentName: null, name: "代理商", - url: "", + url: "agent", perms: "", type: 0, elIcon: "el-icon-tickets", @@ -382,32 +408,6 @@ export default { open: null, list: [], }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "店铺列表", - url: "agent/shop-list/index", - perms: "", - type: 1, - elIcon: "el-icon-shopping-cart-full", - orderNum: 0, - open: null, - list: [], - }, - { - menuId: getUUID(), - parentId: 0, - parentName: null, - name: "分销商列表", - url: "agent/distributor/index", - perms: "", - type: 1, - elIcon: "el-icon-shopping-cart-full", - orderNum: 0, - open: null, - list: [], - }, { menuId: getUUID(), parentId: 0, @@ -422,6 +422,7 @@ export default { list: [], }, ], + hideInMenu: true, }, { menuId: getUUID(), @@ -429,7 +430,7 @@ export default { parentName: null, name: "钱包管理", url: "local-course/resources", - perms: "", + perms: "wallet", type: 0, elIcon: "el-icon-menu", orderNum: 0, @@ -455,7 +456,7 @@ export default { parentId: 0, parentName: null, name: "运费管理", - url: "", + url: "ogistics-fare", perms: "", type: 0, elIcon: "el-icon-money", diff --git a/src/router/index.js b/src/router/index.js index 96c877a..87756a4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -104,6 +104,8 @@ router.beforeEach((to, from, next) => { .getUserInfo() .then(({ data }) => { const filterTreeData = (data, permissions) => { + console.log(data); + return data; //临时性返回所有菜单方便调试 // return data.reduce((filtered, node) => { // // 如果节点的权限在权限数组中 diff --git a/src/views/modules/product/banner/index.vue b/src/views/modules/operation-management/banner/index.vue similarity index 100% rename from src/views/modules/product/banner/index.vue rename to src/views/modules/operation-management/banner/index.vue diff --git a/src/views/modules/product/banner/popup/add-or-update.vue b/src/views/modules/operation-management/banner/popup/add-or-update.vue similarity index 100% rename from src/views/modules/product/banner/popup/add-or-update.vue rename to src/views/modules/operation-management/banner/popup/add-or-update.vue diff --git a/src/views/modules/product/banner/popup/set-sorting.vue b/src/views/modules/operation-management/banner/popup/set-sorting.vue similarity index 100% rename from src/views/modules/product/banner/popup/set-sorting.vue rename to src/views/modules/operation-management/banner/popup/set-sorting.vue diff --git a/src/views/modules/product/commodity/index.vue b/src/views/modules/operation-management/commodity/index.vue similarity index 94% rename from src/views/modules/product/commodity/index.vue rename to src/views/modules/operation-management/commodity/index.vue index 0b3c554..f92adaa 100644 --- a/src/views/modules/product/commodity/index.vue +++ b/src/views/modules/operation-management/commodity/index.vue @@ -68,7 +68,7 @@