c22ff144 by weimo934

style(plzl):增加分页显示

1 parent c4599391
1 <template> 1 <template>
2 <div> 2 <div class="main">
3 <el-dialog 3 <el-dialog
4 title="选择宗地" 4 title="选择宗地"
5 :visible.sync="isVisible" 5 :visible.sync="isVisible"
6 width="50%" 6 width="50%"
7 @close="close" 7 @close="close"
8 :modal-append-to-body="false" 8 :modal-append-to-body="false"
9 > 9 >
10 <div class="search"> 10 <div class="search">
11 <el-button type="primary" @click="search">查询</el-button> 11 <el-button type="primary" @click="search">查询</el-button>
12 <el-button type="primary" @click="result">重置</el-button> 12 <el-button type="primary" @click="result">重置</el-button>
...@@ -74,9 +74,18 @@ ...@@ -74,9 +74,18 @@
74 <td>{{item.qlr}}</td> 74 <td>{{item.qlr}}</td>
75 <td>{{item.zl}}</td> 75 <td>{{item.zl}}</td>
76 </tr> 76 </tr>
77
78 </table> 77 </table>
79 </div> 78 </div>
79 <div class="page">
80 <el-pagination
81 background
82 layout="prev, pager, next,total"
83 :page-size="queryData.pageSize"
84 :total="total"
85 @current-change="currentChange"
86 >
87 </el-pagination>
88 </div>
80 <div class="footer-button"> 89 <div class="footer-button">
81 <el-button type="primary" @click="save">确认</el-button> 90 <el-button type="primary" @click="save">确认</el-button>
82 <el-button type="primary" @click="close">取消</el-button> 91 <el-button type="primary" @click="close">取消</el-button>
...@@ -94,6 +103,7 @@ ...@@ -94,6 +103,7 @@
94 name: "cxlzQueryData", 103 name: "cxlzQueryData",
95 data() { 104 data() {
96 return { 105 return {
106 total: 1,
97 queryData: { 107 queryData: {
98 bdcdyh: "", 108 bdcdyh: "",
99 bdcqzh: "", 109 bdcqzh: "",
...@@ -102,11 +112,13 @@ ...@@ -102,11 +112,13 @@
102 qszt: "2", 112 qszt: "2",
103 xmmc: "", 113 xmmc: "",
104 zddm: "", 114 zddm: "",
105 zl: "" 115 zl: "",
116 pageNo: 1,
117 pageSize: 10,
106 }, 118 },
107 Data: [], 119 Data: [],
108 isVisible: false, 120 isVisible: false,
109 zdbsm:'' 121 zdbsm: ''
110 } 122 }
111 }, 123 },
112 props: { 124 props: {
...@@ -132,12 +144,14 @@ ...@@ -132,12 +144,14 @@
132 created() { 144 created() {
133 }, 145 },
134 methods: { 146 methods: {
147 currentChange: function (val) {
148 this.queryData.pageNo = val;
149 this.getData(this.queryData);
150 },
135 select: function (val) { 151 select: function (val) {
136 this.zdbsm = val.glbsm 152 this.zdbsm = val.glbsm
137 }, 153 },
138 save: function () { 154 save: function () {
139
140
141 zrzcxlz({ 155 zrzcxlz({
142 zdBsm: this.zdbsm, 156 zdBsm: this.zdbsm,
143 zrzBsm: this.zrzbsm 157 zrzBsm: this.zrzbsm
...@@ -157,7 +171,9 @@ ...@@ -157,7 +171,9 @@
157 qszt: "2", 171 qszt: "2",
158 xmmc: "", 172 xmmc: "",
159 zddm: "", 173 zddm: "",
160 zl: "" 174 zl: "",
175 pageNo: 1,
176 pageSize: 10,
161 }; 177 };
162 this.getData(this.queryData) 178 this.getData(this.queryData)
163 }, 179 },
...@@ -165,6 +181,7 @@ ...@@ -165,6 +181,7 @@
165 data['dylxs'] = this.dylxs; 181 data['dylxs'] = this.dylxs;
166 getSearchList(data).then(res => { 182 getSearchList(data).then(res => {
167 this.Data = res.result.records 183 this.Data = res.result.records
184 this.total = res.result.total;
168 }) 185 })
169 }, 186 },
170 search: function () { 187 search: function () {
...@@ -187,10 +204,11 @@ ...@@ -187,10 +204,11 @@
187 <style scoped lang="less"> 204 <style scoped lang="less">
188 205
189 .main { 206 .main {
190 box-sizing: border-box; 207 /*box-sizing: border-box;*/
191 padding: 18px; 208 padding: 18px;
192 height: auto; 209 height: 800px;
193 width: 80%; 210 width: 80%;
211 position: absolute;
194 } 212 }
195 213
196 table { 214 table {
...@@ -226,9 +244,12 @@ ...@@ -226,9 +244,12 @@
226 color: #b2b2b2; 244 color: #b2b2b2;
227 } 245 }
228 246
247 .search {
248 height: 650px;
249 }
250
229 .footer-button { 251 .footer-button {
230 text-align: center; 252 text-align: center;
231 margin-top: 20px; 253 margin-top: 20px;
232 } 254 }
233
234 </style> 255 </style>
......