移动装修分页无效和pc装修分页样式
parent
8095aa0d8e
commit
c382f015f4
|
@ -42,7 +42,7 @@
|
|||
</div>
|
||||
<div class="no-more" v-if="list.length == 0">暂无更多模板</div>
|
||||
</div>
|
||||
<Page show-total :total="total" show-sizer :page-size-opts="[10, 20, 50]" show-elevator style="float:right;overflow:hidden;" @on-change="changePageNum" @on-page-size-change="changePageSize" :page-size="searchForm.pageSize"/>
|
||||
<Page show-total :total="total" show-sizer size="small" :page-size-opts="[10, 20, 50]" show-elevator style="float:right;overflow:hidden;" @on-change="changePageNum" @on-page-size-change="changePageSize" :page-size="searchForm.pageSize"/>
|
||||
</Card>
|
||||
<Modal
|
||||
v-model="showModal"
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<Page
|
||||
:total="total"
|
||||
size="small"
|
||||
@on-change="(val) => {params.pageNumber = val; } "
|
||||
@on-change="changePageNum"
|
||||
:current="params.pageNumber"
|
||||
:page-size="params.pageSize"
|
||||
show-sizer
|
||||
|
@ -139,6 +139,12 @@ export default {
|
|||
this.init();
|
||||
}
|
||||
},
|
||||
|
||||
// 分页 修改页码
|
||||
changePageNum (val) {
|
||||
this.params.pageNumber = val;
|
||||
this.init();
|
||||
},
|
||||
// 是否发布
|
||||
changeSwitch(item) {
|
||||
this.loading = true;
|
||||
|
|
Loading…
Reference in New Issue