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 },
...@@ -239,13 +239,13 @@ export default { ...@@ -239,13 +239,13 @@ export default {
239 } else if (selection.includes(this.data[row.index])) { 239 } else if (selection.includes(this.data[row.index])) {
240 if (!selection.includes(this.data[this.start])) { 240 if (!selection.includes(this.data[this.start])) {
241 this.$refs.tables.toggleRowSelection(this.data[this.start], true); 241 this.$refs.tables.toggleRowSelection(this.data[this.start], true);
242 - if(this.selectTable.includes(this.data[this.start])){ 242 + if (this.selectTable.includes(this.data[this.start])) {
243 this.selectTable.push(this.data[this.start]); 243 this.selectTable.push(this.data[this.start]);
244 } 244 }
245 } 245 }
246 for (i = min; i <= sum + min; i++) { 246 for (i = min; i <= sum + min; i++) {
247 this.$refs.tables.toggleRowSelection(this.data[i], true); 247 this.$refs.tables.toggleRowSelection(this.data[i], true);
248 - if(!this.selectTable.includes(this.data[i])){ 248 + if (!this.selectTable.includes(this.data[i])) {
249 this.selectTable.push(this.data[i]); 249 this.selectTable.push(this.data[i]);
250 } 250 }
251 } 251 }
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
268 } 268 }
269 } 269 }
270 } 270 }
271 - selection = this.selectTable.sort(this.compare('index','ascending')); 271 + selection = this.selectTable.sort(this.compare("index", "ascending"));
272 this.$emit("tableSelect", { selection, row }); 272 this.$emit("tableSelect", { selection, row });
273 }, 273 },
274 tableSelectAll(selection) { 274 tableSelectAll(selection) {
......
...@@ -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 },
......
...@@ -165,7 +165,7 @@ export default { ...@@ -165,7 +165,7 @@ export default {
165 message: response.msg, 165 message: response.msg,
166 type: "error", 166 type: "error",
167 }); 167 });
168 - reuturn; 168 + return;
169 } 169 }
170 this.flyList = response.data.list; 170 this.flyList = response.data.list;
171 this.total = response.data.totalCount; 171 this.total = response.data.totalCount;
......
...@@ -451,7 +451,7 @@ export default { ...@@ -451,7 +451,7 @@ export default {
451 message: response.msg, 451 message: response.msg,
452 type: "error", 452 type: "error",
453 }); 453 });
454 - reuturn; 454 + return;
455 } 455 }
456 let dict = response.data; 456 let dict = response.data;
457 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 },
......