f4e319a5 by 任超

style:分页修改

1 parent 58c584f4
...@@ -120,8 +120,8 @@ export default { ...@@ -120,8 +120,8 @@ export default {
120 endTimeChange (val) { 120 endTimeChange (val) {
121 this.form.endTime = timeFormat(new Date(val), true) 121 this.form.endTime = timeFormat(new Date(val), true)
122 }, 122 },
123 queryClick () { 123 featchData () {
124 getRecordLogPage({ ...this.form, ...this.pageData }).then(res => { 124 getRecordLogPage({ ...this.form }).then(res => {
125 if (res.code === 200) { 125 if (res.code === 200) {
126 let { records, total, current } = res.result 126 let { records, total, current } = res.result
127 this.tableData.data = records ? records : [] 127 this.tableData.data = records ? records : []
...@@ -134,11 +134,8 @@ export default { ...@@ -134,11 +134,8 @@ export default {
134 resetForm () { 134 resetForm () {
135 this.$refs.ruleForm.resetFields(); 135 this.$refs.ruleForm.resetFields();
136 this.form.currentPage = 1 136 this.form.currentPage = 1
137 this.queryClick(); 137 this.featchData();
138 }, 138 }
139 featchData () {
140 this.queryClick();
141 },
142 } 139 }
143 } 140 }
144 </script> 141 </script>
......
...@@ -185,8 +185,8 @@ export default { ...@@ -185,8 +185,8 @@ export default {
185 this.form.exchangeEndTime = timeFormat(new Date(val), true) 185 this.form.exchangeEndTime = timeFormat(new Date(val), true)
186 }, 186 },
187 // 初始化数据 187 // 初始化数据
188 queryClick () { 188 featchData () {
189 getDataReportPage({ ...this.form, ...this.pageData }).then((res) => { 189 getDataReportPage({ ...this.form }).then((res) => {
190 if (res.code === 200) { 190 if (res.code === 200) {
191 let { total, records, current } = res.result; 191 let { total, records, current } = res.result;
192 this.tableData.total = total; 192 this.tableData.total = total;
...@@ -195,11 +195,6 @@ export default { ...@@ -195,11 +195,6 @@ export default {
195 } 195 }
196 }); 196 });
197 }, 197 },
198 featchData () {
199 this.queryClick();
200 },
201 // 多选
202 handleSelectionChange (val) { },
203 // 上报 198 // 上报
204 handleEscalation () { }, 199 handleEscalation () { },
205 // 详情 200 // 详情
...@@ -212,7 +207,7 @@ export default { ...@@ -212,7 +207,7 @@ export default {
212 this.$refs.ruleForm.resetFields(); 207 this.$refs.ruleForm.resetFields();
213 this.form.exchangeEndTime = "" 208 this.form.exchangeEndTime = ""
214 this.form.currentPage = 1 209 this.form.currentPage = 1
215 this.queryClick(); 210 this.featchData();
216 }, 211 },
217 }, 212 },
218 }; 213 };
......