flameresttable 1.0.79 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flameresttable",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "main": "./src/plugin.ts",
5
5
  "repository": {
6
6
  "type": "git",
@@ -468,7 +468,7 @@ export default class FlameTable<T> {
468
468
  * @param filename
469
469
  * @param arr
470
470
  */
471
- public exportToXLS(onlySelected: boolean = false, filename: string | null = null, arr: any = null, columnList: Array<string> | null = null) {
471
+ public exportToXLS(onlySelected: boolean = false, filename: string | null = null, arr: any = null, columnList: Array<string> | null = null): Promise<void> {
472
472
 
473
473
  const tClass = Object.getPrototypeOf(this.model).constructor;
474
474
  const indexKey = tClass.primaryKeys[0];
@@ -516,7 +516,7 @@ export default class FlameTable<T> {
516
516
  this.exportStatus = 'exportprocess';
517
517
 
518
518
  // Делаем запрос на отдачу
519
- this.update(customFilter, customFilter.export.filename ?? null);
519
+ return this.update(customFilter, customFilter.export.filename ?? null);
520
520
 
521
521
  }
522
522
 
@@ -422,11 +422,15 @@ export default defineComponent({
422
422
  },
423
423
 
424
424
  CheckboxSelectionChanged(event: any, all: boolean = false) {
425
- this.Table.getSelectedRows();
426
425
  if (all === true)
427
426
  for (const key in this.Table.RowsParams) {
428
427
  this.Table.RowsParams[key].selected = event.target.checked
429
428
  }
429
+
430
+ this.Table.getSelectedRows();
431
+
432
+ // ТУТ СОБЫТИЕ ОБ ИЗМЕНЕНИИ ПРИХОДИТ В ИСТАНС РАНЬШЕ САМОГО ИЗМЕНЕНИЯ МАССИВА
433
+
430
434
  }
431
435
  },
432
436