user datas

This commit is contained in:
zuiidea
2016-10-17 20:40:36 +08:00
parent 23b32b332e
commit 042b4c728e
7 changed files with 138 additions and 57 deletions
+11 -4
View File
@@ -8,11 +8,16 @@ export default {
state: {
list: [],
loading: false,
total: null,
current: 1,
currentItem: {},
modalVisible: false,
modalType: 'create',
pagination:{
showSizeChanger: true,
showQuickJumper: true,
showTotal: total => `共 ${total} 条`,
current:1,
total:null,
}
},
subscriptions: {
@@ -37,8 +42,10 @@ export default {
type: 'querySuccess',
payload: {
list: data.data,
total: data.page.total,
current: data.page.current,
pagination:{
total: data.page.total,
current: data.page.current,
}
},
})
}