From 8a9004844dd4a667aee2572ec12aae5fa8c7bfc7 Mon Sep 17 00:00:00 2001 From: zhh Date: Tue, 22 May 2018 11:14:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/productCate.js | 8 + src/router/index.js | 2 +- src/views/pms/brand/index.vue | 6 +- src/views/pms/productAttr/productAttrList.vue | 4 +- src/views/pms/productCate/index.vue | 172 ++++++++++++++++++ 5 files changed, 186 insertions(+), 6 deletions(-) create mode 100644 src/api/productCate.js create mode 100644 src/views/pms/productCate/index.vue diff --git a/src/api/productCate.js b/src/api/productCate.js new file mode 100644 index 0000000..93cb68f --- /dev/null +++ b/src/api/productCate.js @@ -0,0 +1,8 @@ +import request from '@/utils/request' +export function fetchList(parentId,params) { + return request({ + url:'/productCategory/list/'+parentId, + method:'get', + params:params + }) +} diff --git a/src/router/index.js b/src/router/index.js index ccb9676..08677f3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -65,7 +65,7 @@ export const constantRouterMap = [ { path: 'productCate', name: 'productCate', - component: () => import('@/views/pms/product/index'), + component: () => import('@/views/pms/productCate/index'), meta: {title: '商品分类', icon: 'product-cate'} }, { diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index d8e0a6f..2028b4a 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -41,7 +41,7 @@ v-loading="listLoading" border> - + @@ -50,7 +50,7 @@ - + @@ -89,7 +89,7 @@ - +