更新 mock 设置

Former-commit-id: 91e149862bc5c5994005c16b8921d293347c935e [formerly cc5c1b4e89e4c0bd2a86ced9e4dd4ac30cf69ad4] [formerly 91e149862bc5c5994005c16b8921d293347c935e [formerly cc5c1b4e89e4c0bd2a86ced9e4dd4ac30cf69ad4] [formerly 91e149862bc5c5994005c16b8921d293347c935e [formerly cc5c1b4e89e4c0bd2a86ced9e4dd4ac30cf69ad4] [formerly cc5c1b4e89e4c0bd2a86ced9e4dd4ac30cf69ad4 [formerly a995dd4aa6a5745242d449c1114d41592437d318 [formerly 84ceaffec1514357a65944b2b2af6ad55eed82cd]]]]]
Former-commit-id: 7fff6c3cca28a5b09ebbdb395fb250487bee6da3
Former-commit-id: ed647717531cb8a8d9ccb276c01986b5f8af7653
Former-commit-id: 7afd7c7718a1302fe0adc74bd06a1af0992fc305 [formerly fe10b57a2e3e9738867df9c88ec22d51d271891a]
Former-commit-id: 8ad7dd5c5e2ecf759e0ffd82e296658b5d735dd1
Former-commit-id: 289a192ca0d76c1e99dc1a9786a71580f705a1bd
Former-commit-id: 06de0f519d511e893333553a3a25d4388308e1b0
Former-commit-id: 0f21f9ff42abc15714f0622b0de1770509e19052
Former-commit-id: bbef35694d434bab48f2fcf49d7ae459fe7bff2b
This commit is contained in:
liyang
2018-12-13 10:29:56 +08:00
parent b1afe31a05
commit 56223d9195
10 changed files with 102 additions and 110 deletions

View File

@@ -9,9 +9,9 @@
:loading="loading"/>
<demo-page-footer
slot="footer"
:current="page.current"
:size="page.size"
:total="page.total"
:current="page.pageCurrent"
:size="page.pageSize"
:total="page.pageTotal"
@change="handlePaginationChange"/>
</d2-container>
</template>
@@ -32,9 +32,9 @@ export default {
table: [],
loading: false,
page: {
current: 1,
size: 10,
total: 0
pageCurrent: 1,
pageSize: 10,
pageTotal: 0
}
}
},
@@ -57,7 +57,7 @@ export default {
})
BusinessTable1List({
...form,
page: this.page
...this.page
})
.then(res => {
this.loading = false
@@ -65,7 +65,7 @@ export default {
title: '模拟表格数据请求完毕'
})
this.table = res.list
this.page = res.page
this.page.pageTotal = res.page.total
})
.catch(err => {
this.loading = false