From b6a11dddcbb19a4848d84aa557b7cfc8c4b28bd9 Mon Sep 17 00:00:00 2001 From: zhh Date: Fri, 25 May 2018 15:46:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/product.js | 33 +++++ src/api/productCate.js | 7 + src/router/index.js | 3 +- src/views/pms/brand/index.vue | 18 +-- src/views/pms/product/index.vue | 253 ++++++++++++++++++++++++++------ 5 files changed, 261 insertions(+), 53 deletions(-) diff --git a/src/api/product.js b/src/api/product.js index 50a6b6b..d38fedf 100644 --- a/src/api/product.js +++ b/src/api/product.js @@ -6,3 +6,36 @@ export function fetchList(params) { params:params }) } + +export function updateDeleteStatus(params) { + return request({ + url:'/product/update/deleteStatus', + method:'post', + params:params + }) +} + +export function updateNewStatus(params) { + return request({ + url:'/product/update/newStatus', + method:'post', + params:params + }) +} + +export function updateRecommendStatus(params) { + return request({ + url:'/product/update/recommendStatus', + method:'post', + params:params + }) +} + +export function updatePublishStatus(params) { + return request({ + url:'/product/update/publishStatus', + method:'post', + params:params + }) +} + diff --git a/src/api/productCate.js b/src/api/productCate.js index 5280251..9643165 100644 --- a/src/api/productCate.js +++ b/src/api/productCate.js @@ -51,3 +51,10 @@ export function updateNavStatus(data) { data:data }) } + +export function fetchListWithChildren() { + return request({ + url:'/productCategory/list/withChildren', + method:'get' + }) +} diff --git a/src/router/index.js b/src/router/index.js index 48b85bd..bce8c29 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,7 +54,8 @@ export const constantRouterMap = [ path: 'productRecycle', name: 'productRecycle', component: () => import('@/views/pms/product/index'), - meta: {title: '商品回收站', icon: 'product-recycle'} + meta: {title: '商品回收站', icon: 'product-recycle'}, + hidden:true }, { path: 'productComment', diff --git a/src/views/pms/brand/index.vue b/src/views/pms/brand/index.vue index 2028b4a..85b1bf9 100644 --- a/src/views/pms/brand/index.vue +++ b/src/views/pms/brand/index.vue @@ -2,8 +2,8 @@
- - 筛选搜索 + + 筛选搜索
-
- 输入搜索: - +
+ + + + +
diff --git a/src/views/pms/product/index.vue b/src/views/pms/product/index.vue index 1a042bb..bca0719 100644 --- a/src/views/pms/product/index.vue +++ b/src/views/pms/product/index.vue @@ -2,8 +2,8 @@
- - 筛选搜索 + + 筛选搜索 查询结果 + + 重置 +
-
- +
+ - + + + + - - - - + + -
- + {{scope.row.verifyStatus | verifyStatusFilter}}

审核详情

@@ -153,17 +158,17 @@

查看 + @click="handleShowProduct(scope.$index, scope.row)">查看 编辑 + @click="handleEdit(scope.$index, scope.row)">编辑

日志 + @click="handleShowLog(scope.$index, scope.row)">日志