添加分页

This commit is contained in:
熊丽君
2021-08-12 11:50:38 +08:00
parent e75d93de68
commit f7a1b652fe
5 changed files with 50 additions and 6 deletions

View File

@ -95,6 +95,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -109,8 +116,9 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
total: 0,
unscrambleList: [],
optionList1: [
{
@ -132,6 +140,7 @@ export default {
getList() {
getCategoryList(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
this.total = data.total;
});
},
handleStatus(companyId, isOpen) {

View File

@ -36,6 +36,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -45,8 +52,9 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
total: 0,
categoryList: []
};
},
@ -58,7 +66,7 @@ export default {
getList() {
getInformation(this.queryParams).then(({ data }) => {
this.categoryList = data.list;
// this.total = data.total
this.total = data.total
});
},
// 跳转页面

View File

@ -81,6 +81,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -90,9 +97,10 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
unscrambleList: [],
total:0,
// 归口选项
attributeOptions: [
{
@ -122,6 +130,7 @@ export default {
getList() {
getPolicyRead(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
this.total = data.total;
});
},
// 跳转页面

View File

@ -84,6 +84,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -96,8 +103,9 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
total: 0,
unscrambleList: [],
// 归口选项
attributeOptions: [
@ -128,6 +136,7 @@ export default {
getList() {
getScienceResultList(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
this.total = data.total;
});
},
// 跳转页面

View File

@ -84,6 +84,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
</template>
<script>
@ -96,8 +103,9 @@ export default {
return {
queryParams: {
pageNum: 1,
pageSize: 100
pageSize: 10
},
total: 0,
unscrambleList: []
};
},
@ -109,6 +117,7 @@ export default {
getList() {
getEnterpriseNeedList(this.queryParams).then(({ data }) => {
this.unscrambleList = data.list;
this.total = data.total;
});
},
// 跳转页面