Commit 15ec14d8 authored by tianhongyang's avatar tianhongyang

500页限制 查业主

parent b137c205
...@@ -356,10 +356,18 @@ export default { ...@@ -356,10 +356,18 @@ export default {
dialogVisible1: false, dialogVisible1: false,
tableData: [], tableData: [],
total: 0, total: 0,
oldPageNum: 1,
pageNum: 1, pageNum: 1,
pageSize: 20 pageSize: 20
}; };
}, },
watch: {
"pageNum": {
handler(newValue, oldValue) {
this.oldPageNum = oldValue;
}
}
},
computed: { computed: {
// 仅搜索企业名 // 仅搜索企业名
onlySearchEname() { onlySearchEname() {
...@@ -633,8 +641,9 @@ export default { ...@@ -633,8 +641,9 @@ export default {
}, },
handleCurrentChange(pageNum) { handleCurrentChange(pageNum) {
if (pageNum > 500) { if (pageNum > 500) {
pageNum = 1; this.pageNum = this.oldPageNum;
this.$message.warning("对不起最多只能访问500页"); this.$message.warning("对不起最多只能访问500页");
return;
} }
this.pageNum = pageNum; this.pageNum = pageNum;
this.search(this.pageNum, this.pageSize); this.search(this.pageNum, this.pageSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment