Commit 3d40c10a by zhangquan

默认50条数据

1 parent a3109872
......@@ -199,7 +199,6 @@ export default {
<style scoped lang="scss">
.ctnr{
padding: 20px;
.main{
background-color: #fff;
.title{
......
......@@ -89,8 +89,8 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageObj :{
total: 0,
pageSize: 10,
pageSizes: [10, 20, 30, 50],
pageSize: 50,
pageSizes: [40, 50, 60, 70],
pageNum: 1
},
goodsFormObj: {
......@@ -179,11 +179,21 @@ export default {
pageSize,
categoryCode: categoryCode && categoryCode.length ? categoryCode[categoryCode.length-1] : ''
}
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.platformGoods.getGoodsListApi(params).then(res=>{
loading.close()
if(res){
this.goodsList = res.list
this.pageObj.total = res.total
}
}).catch(err => {
loading.close()
console.log(err)
})
},
getCategoryList(node, resolve){
......@@ -211,8 +221,8 @@ export default {
}
this.pageObj = {
total: 0,
pageSize: 10,
pageSizes: [10, 20, 30, 50],
pageSize: 50,
pageSizes: [40, 50, 60, 70],
pageNum: 1
}
this.getGoodsList()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!