flameresttable 1.0.72 → 1.0.73
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
package/src/Table/FlameTable.ts
CHANGED
|
@@ -65,6 +65,11 @@ export default class FlameTable<T> {
|
|
|
65
65
|
*/
|
|
66
66
|
public RowsSelected: Array<T> = [];
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Состояние экспорта
|
|
70
|
+
*/
|
|
71
|
+
public exportStatus: 'completed' | 'exportprocess' | string = 'completed';
|
|
72
|
+
|
|
68
73
|
/**
|
|
69
74
|
* Проинициализировать модели
|
|
70
75
|
*/
|
|
@@ -221,6 +226,8 @@ export default class FlameTable<T> {
|
|
|
221
226
|
|
|
222
227
|
else {
|
|
223
228
|
|
|
229
|
+
this.exportStatus = 'completed';
|
|
230
|
+
|
|
224
231
|
// Файл: скачиваем
|
|
225
232
|
if (typeof this.opts.customDownloadHandler === 'function') {
|
|
226
233
|
// Кастомный загрузчик
|
|
@@ -504,6 +511,8 @@ export default class FlameTable<T> {
|
|
|
504
511
|
|
|
505
512
|
}
|
|
506
513
|
|
|
514
|
+
this.exportStatus = 'exportprocess';
|
|
515
|
+
|
|
507
516
|
// Делаем запрос на отдачу
|
|
508
517
|
this.update(customFilter, customFilter.export.filename ?? null);
|
|
509
518
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
<div class="fc">
|
|
51
51
|
<div>
|
|
52
52
|
<div class="inline-block">
|
|
53
|
-
<span v-if="state.exportStatus === 'exportprocess'" class="text-green-600 bg-green-50 px-2 py-1 mx-2">
|
|
53
|
+
<span v-if="state.Table.exportStatus === 'exportprocess'" class="text-green-600 bg-green-50 px-2 py-1 mx-2">
|
|
54
54
|
{{ props.table.opts.lang === 'ru' ? 'Загрузка...' : 'Loading...' }}
|
|
55
55
|
</span>
|
|
56
56
|
</div>
|
|
@@ -112,7 +112,6 @@ const state = reactive({
|
|
|
112
112
|
opts: props.table.opts,
|
|
113
113
|
Table: props.table,
|
|
114
114
|
selectModel: 0,
|
|
115
|
-
exportStatus: 'completed' as 'completed' | 'exportprocess' | 'error'
|
|
116
115
|
})
|
|
117
116
|
|
|
118
117
|
const selectAction = () => {
|
|
@@ -121,10 +120,10 @@ const selectAction = () => {
|
|
|
121
120
|
case 0:
|
|
122
121
|
break;
|
|
123
122
|
case 1:
|
|
124
|
-
state.Table.exportToXLS(true);
|
|
123
|
+
state.Table.exportToXLS(true, null, null, null, state);
|
|
125
124
|
break;
|
|
126
125
|
case 2:
|
|
127
|
-
state.Table.exportToXLS();
|
|
126
|
+
state.Table.exportToXLS(false, null, null, null, state);
|
|
128
127
|
break;
|
|
129
128
|
}
|
|
130
129
|
|
|
Binary file
|