45b80b92 by weimo934

fix():修改更正变更综合查询分页

1 parent 103ff0b3
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
41 </el-table-column> 41 </el-table-column>
42 </el-table> 42 </el-table>
43 <div class="pagination"> 43 <div class="pagination">
44 <el-pagination background layout="prev, pager, next,total" :total="total"> 44 <el-pagination background layout="prev, pager, next,total" :total="total"
45 :current-page="pageNo" :page-size="pageSize" @current-change="handleCurrentChange">
45 </el-pagination> 46 </el-pagination>
46 </div> 47 </div>
47 </div> 48 </div>
...@@ -75,17 +76,14 @@ ...@@ -75,17 +76,14 @@
75 created() { 76 created() {
76 }, 77 },
77 mounted() { 78 mounted() {
78 this.getData({ 79 this.queryData.pageSize=this.pageSize
79 pageNo: this.pageNo, 80 this.getData(this.queryData);
80 pageSize: this.pageSize,
81 })
82 this.$nextTick(() => { 81 this.$nextTick(() => {
83 this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255; 82 this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255;
84 }); 83 });
85 }, 84 },
86 methods: { 85 methods: {
87 handleCurrentChange(val) { 86 handleCurrentChange(val) {
88 console.log(`当前页: ${val}`);
89 this.pageNo = val; 87 this.pageNo = val;
90 this.queryData.pageNo = val; 88 this.queryData.pageNo = val;
91 this.getData(this.queryData); 89 this.getData(this.queryData);
...@@ -118,7 +116,6 @@ ...@@ -118,7 +116,6 @@
118 //点击办理 116 //点击办理
119 handleClick(row) { 117 handleClick(row) {
120 let path = ""; 118 let path = "";
121 console.log(row)
122 switch (row.dylx) { 119 switch (row.dylx) {
123 case "zrz": 120 case "zrz":
124 path = "/zrz"; 121 path = "/zrz";
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 </el-table-column> 41 </el-table-column>
42 </el-table> 42 </el-table>
43 <div class="pagination"> 43 <div class="pagination">
44 <el-pagination background layout="prev, pager, next,total" :total="total" 44 <el-pagination background layout="prev, pager, next,total" :total="total" :page-size="pageSize"
45 :current-page="pageNo" @current-change="handleCurrentChange"> 45 :current-page="pageNo" @current-change="handleCurrentChange">
46 </el-pagination> 46 </el-pagination>
47 </div> 47 </div>
...@@ -77,7 +77,8 @@ ...@@ -77,7 +77,8 @@
77 created() { 77 created() {
78 }, 78 },
79 mounted() { 79 mounted() {
80 this.getData({}) 80 this.queryData.pageSize=this.pageSize
81 this.getData(this.queryData)
81 this.$nextTick(() => { 82 this.$nextTick(() => {
82 this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255; 83 this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255;
83 }); 84 });
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 </el-table> 42 </el-table>
43 <div class="pagination"> 43 <div class="pagination">
44 <el-pagination background layout="prev, pager, next,total" :total="total" 44 <el-pagination background layout="prev, pager, next,total" :total="total"
45 :current-page="pageNo" @current-change="handleCurrentChange"> 45 :current-page="pageNo" :page-size="pageSize" @current-change="handleCurrentChange">
46 </el-pagination> 46 </el-pagination>
47 </div> 47 </div>
48 48
...@@ -83,7 +83,8 @@ ...@@ -83,7 +83,8 @@
83 created() { 83 created() {
84 }, 84 },
85 mounted() { 85 mounted() {
86 this.getData({pageSize:15}); 86 this.queryData.pageSize=this.pageSize
87 this.getData(this.queryData);
87 this.$nextTick(()=>{ 88 this.$nextTick(()=>{
88 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68; 89 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
89 }) 90 })
...@@ -108,7 +109,6 @@ ...@@ -108,7 +109,6 @@
108 this.$refs.hbj.onReset(); 109 this.$refs.hbj.onReset();
109 }, 110 },
110 handleCurrentChange(val) { 111 handleCurrentChange(val) {
111 console.log(`当前页: ${val}`);
112 this.pageNo = val; 112 this.pageNo = val;
113 this.queryData.pageNo = val; 113 this.queryData.pageNo = val;
114 this.getData(this.queryData); 114 this.getData(this.queryData);
......