Commit 3d40c10a by zhangquan

默认50条数据

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