Commit 15ec14d8 authored by tianhongyang's avatar tianhongyang

500页限制 查业主

parent b137c205
......@@ -356,10 +356,18 @@ export default {
dialogVisible1: false,
tableData: [],
total: 0,
oldPageNum: 1,
pageNum: 1,
pageSize: 20
};
},
watch: {
"pageNum": {
handler(newValue, oldValue) {
this.oldPageNum = oldValue;
}
}
},
computed: {
// 仅搜索企业名
onlySearchEname() {
......@@ -633,8 +641,9 @@ export default {
},
handleCurrentChange(pageNum) {
if (pageNum > 500) {
pageNum = 1;
this.pageNum = this.oldPageNum;
this.$message.warning("对不起最多只能访问500页");
return;
}
this.pageNum = pageNum;
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