添加分页

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

View File

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

View File

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

View File

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

View File

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