jinhui.wang

代码更新

...@@ -220,7 +220,7 @@ export default { ...@@ -220,7 +220,7 @@ export default {
220 currentChange(val) { 220 currentChange(val) {
221 this.$emit("currentChange", { 221 this.$emit("currentChange", {
222 page: val, 222 page: val,
223 - start: val * this.limitSize + 1, 223 + start: val > 1 ? (val-1) * this.limitSize + 1 : val,
224 }); 224 });
225 scrollTo(0, 800); 225 scrollTo(0, 800);
226 }, 226 },
...@@ -282,18 +282,6 @@ export default { ...@@ -282,18 +282,6 @@ export default {
282 this.selectTable = []; 282 this.selectTable = [];
283 this.$refs.tables.clearSelection(); 283 this.$refs.tables.clearSelection();
284 }, 284 },
285 - // itemChange(val) {
286 - // console.log(val);
287 - // },
288 - // checkChange(val) {
289 - // console.log(val);
290 - // },
291 - // top(val) {
292 - // console.log(val);
293 - // },
294 - // bottom(val) {
295 - // console.log(val);
296 - // },
297 sortChange({ column, prop, order }) { 285 sortChange({ column, prop, order }) {
298 this.$emit("sortChange", { prop: prop, order: order }); 286 this.$emit("sortChange", { prop: prop, order: order });
299 }, 287 },
......
...@@ -984,7 +984,6 @@ export default { ...@@ -984,7 +984,6 @@ export default {
984 }, 984 },
985 //分页 985 //分页
986 currentChange(val) { 986 currentChange(val) {
987 - this.formData.limitStart = val.start;
988 this.page = val.page; 987 this.page = val.page;
989 this.select(); 988 this.select();
990 }, 989 },
......
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
166 message: response.msg, 166 message: response.msg,
167 type: "error", 167 type: "error",
168 }); 168 });
169 - reuturn; 169 + return;
170 } 170 }
171 this.flyList = response.data.list; 171 this.flyList = response.data.list;
172 this.total = response.data.totalCount; 172 this.total = response.data.totalCount;
...@@ -230,7 +230,7 @@ export default { ...@@ -230,7 +230,7 @@ export default {
230 }, 230 },
231 }, 231 },
232 created() { 232 created() {
233 - // this.getList(); 233 + this.getList();
234 }, 234 },
235 computed:{ 235 computed:{
236 purposeOfFlightNo: { 236 purposeOfFlightNo: {
......
...@@ -391,7 +391,6 @@ export default { ...@@ -391,7 +391,6 @@ export default {
391 } 391 }
392 } 392 }
393 }); 393 });
394 - console.log(errorList);
395 if (errorList.length != 0) { 394 if (errorList.length != 0) {
396 this.$message({ 395 this.$message({
397 showClose: true, 396 showClose: true,
...@@ -452,7 +451,7 @@ export default { ...@@ -452,7 +451,7 @@ export default {
452 message: response.msg, 451 message: response.msg,
453 type: "error", 452 type: "error",
454 }); 453 });
455 - reuturn; 454 + return;
456 } 455 }
457 let dict = response.data; 456 let dict = response.data;
458 this.cargoType = dict.cargoType; 457 this.cargoType = dict.cargoType;
......
...@@ -836,6 +836,7 @@ export default { ...@@ -836,6 +836,7 @@ export default {
836 //分页 836 //分页
837 currentChange(val){ 837 currentChange(val){
838 this.formData.limitStart = val.start; 838 this.formData.limitStart = val.start;
839 + this.limitStart = val.start;
839 this.page = val.page; 840 this.page = val.page;
840 this.select() 841 this.select()
841 }, 842 },
......