Skip to content

Commit

Permalink
商品列表修改功能完善
Browse files Browse the repository at this point in the history
  • Loading branch information
zhh committed May 25, 2018
1 parent e6f1bd4 commit b6a11dd
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 53 deletions.
33 changes: 33 additions & 0 deletions src/api/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

7 changes: 7 additions & 0 deletions src/api/productCate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ export function updateNavStatus(data) {
data:data
})
}

export function fetchListWithChildren() {
return request({
url:'/productCategory/list/withChildren',
method:'get'
})
}
3 changes: 2 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
18 changes: 8 additions & 10 deletions src/views/pms/brand/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<div class="app-container">
<div class="filter-container container-frame">
<div>
<i class="el-icon-search" style="margin-top: 10px"></i>
<span style="margin-top: 10px">筛选搜索</span>
<i class="el-icon-search"></i>
<span>筛选搜索</span>
<el-button
style="float: right"
@click="searchBrandList()"
Expand All @@ -12,14 +12,12 @@
查询结果
</el-button>
</div>
<div style="margin-top: 20px">
<span>输入搜索:</span>
<el-input
size="small"
style="width: 200px"
v-model="listQuery.keyword"
placeholder="品牌名称/关键字"
></el-input>
<div style="margin-top: 15px">
<el-form :inline="true" :model="listQuery" size="small" label-width="140px">
<el-form-item label="输入搜索:">
<el-input style="width: 203px" v-model="listQuery.keyword" placeholder="品牌名称/关键字"></el-input>
</el-form-item>
</el-form>
</div>
</div>
<div class="operate-container container-frame">
Expand Down
Loading

0 comments on commit b6a11dd

Please sign in to comment.