|
@@ -118,7 +118,7 @@
|
|
|
/>
|
|
|
-->
|
|
|
<div
|
|
|
- v-if="page !== false && data && data.length > 0"
|
|
|
+ v-if="data && data.length > 0"
|
|
|
class="Pagination"
|
|
|
style="text-align: right; margin-top: 10px"
|
|
|
>
|
|
@@ -216,8 +216,12 @@ export default {
|
|
|
* page-size-change 分页大小改变
|
|
|
*/
|
|
|
page: {
|
|
|
- type: [Boolean, Object],
|
|
|
- default: false,
|
|
|
+ type: Object,
|
|
|
+ default: {
|
|
|
+ curr: 1,
|
|
|
+ size: 15,
|
|
|
+ total: 0,
|
|
|
+ },
|
|
|
},
|
|
|
/**
|
|
|
* 筛选条件集合
|
|
@@ -270,7 +274,28 @@ export default {
|
|
|
tableSelection: [],
|
|
|
};
|
|
|
},
|
|
|
- watch: {},
|
|
|
+ computed: {
|
|
|
+ page_curr() {
|
|
|
+ return this.page.curr;
|
|
|
+ },
|
|
|
+ page_size() {
|
|
|
+ return this.page.size;
|
|
|
+ },
|
|
|
+ page_total() {
|
|
|
+ return this.page.total;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ page_curr: function (val) {
|
|
|
+ this.page.curr = val;
|
|
|
+ },
|
|
|
+ page_size: function (val) {
|
|
|
+ this.page.size = val;
|
|
|
+ },
|
|
|
+ page_total: function (val) {
|
|
|
+ this.page.total = val;
|
|
|
+ },
|
|
|
+ },
|
|
|
mounted() {
|
|
|
// 拖拽绑定
|
|
|
this.rowDrop();
|