@adminforth/bulk-ai-flow 1.22.1 → 1.22.3
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/build.log +2 -2
- package/custom/VisionAction.vue +8 -2
- package/dist/custom/VisionAction.vue +8 -2
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -13,5 +13,5 @@ custom/package-lock.json
|
|
|
13
13
|
custom/package.json
|
|
14
14
|
custom/tsconfig.json
|
|
15
15
|
|
|
16
|
-
sent 99,
|
|
17
|
-
total size is 98,
|
|
16
|
+
sent 99,621 bytes received 172 bytes 199,586.00 bytes/sec
|
|
17
|
+
total size is 98,985 speedup is 0.99
|
package/custom/VisionAction.vue
CHANGED
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
192
|
import { callAdminForthApi } from '@/utils';
|
|
193
|
-
import { ref, computed,
|
|
193
|
+
import { ref, computed, nextTick } from 'vue'
|
|
194
194
|
import pLimit from 'p-limit';
|
|
195
195
|
import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
|
|
196
196
|
import VisionTable from './VisionTable.vue'
|
|
@@ -382,6 +382,8 @@ async function runAiActions() {
|
|
|
382
382
|
isActiveGeneration.value = true;
|
|
383
383
|
completedRecordIds.value = new Set();
|
|
384
384
|
startedRecordCount.value = 0;
|
|
385
|
+
await nextTick();
|
|
386
|
+
tableRef.value?.refresh();
|
|
385
387
|
const limit = pLimit(props.meta.concurrencyLimit || 10);
|
|
386
388
|
const tasks = recordIds.value
|
|
387
389
|
.map(id => limit(() => processOneRecord(String(id))));
|
|
@@ -397,6 +399,9 @@ const closeDialog = () => {
|
|
|
397
399
|
isDialogOpen.value = false;
|
|
398
400
|
popupMode.value = 'confirmation';
|
|
399
401
|
isDataSaved.value = false;
|
|
402
|
+
if (isGenerationPaused.value || isGenerationCancelled.value) {
|
|
403
|
+
resolvePause();
|
|
404
|
+
}
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
async function initializeGlobalState() {
|
|
@@ -466,7 +471,7 @@ function resumeGeneration() {
|
|
|
466
471
|
resolvePause();
|
|
467
472
|
}
|
|
468
473
|
|
|
469
|
-
function cancelGeneration() {
|
|
474
|
+
async function cancelGeneration() {
|
|
470
475
|
if (isGenerationCancelled.value) {
|
|
471
476
|
return;
|
|
472
477
|
}
|
|
@@ -486,6 +491,7 @@ function cancelGeneration() {
|
|
|
486
491
|
}
|
|
487
492
|
}
|
|
488
493
|
touchRecords();
|
|
494
|
+
await nextTick();
|
|
489
495
|
tableRef.value?.refresh();
|
|
490
496
|
}
|
|
491
497
|
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
192
|
import { callAdminForthApi } from '@/utils';
|
|
193
|
-
import { ref, computed,
|
|
193
|
+
import { ref, computed, nextTick } from 'vue'
|
|
194
194
|
import pLimit from 'p-limit';
|
|
195
195
|
import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
|
|
196
196
|
import VisionTable from './VisionTable.vue'
|
|
@@ -382,6 +382,8 @@ async function runAiActions() {
|
|
|
382
382
|
isActiveGeneration.value = true;
|
|
383
383
|
completedRecordIds.value = new Set();
|
|
384
384
|
startedRecordCount.value = 0;
|
|
385
|
+
await nextTick();
|
|
386
|
+
tableRef.value?.refresh();
|
|
385
387
|
const limit = pLimit(props.meta.concurrencyLimit || 10);
|
|
386
388
|
const tasks = recordIds.value
|
|
387
389
|
.map(id => limit(() => processOneRecord(String(id))));
|
|
@@ -397,6 +399,9 @@ const closeDialog = () => {
|
|
|
397
399
|
isDialogOpen.value = false;
|
|
398
400
|
popupMode.value = 'confirmation';
|
|
399
401
|
isDataSaved.value = false;
|
|
402
|
+
if (isGenerationPaused.value || isGenerationCancelled.value) {
|
|
403
|
+
resolvePause();
|
|
404
|
+
}
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
async function initializeGlobalState() {
|
|
@@ -466,7 +471,7 @@ function resumeGeneration() {
|
|
|
466
471
|
resolvePause();
|
|
467
472
|
}
|
|
468
473
|
|
|
469
|
-
function cancelGeneration() {
|
|
474
|
+
async function cancelGeneration() {
|
|
470
475
|
if (isGenerationCancelled.value) {
|
|
471
476
|
return;
|
|
472
477
|
}
|
|
@@ -486,6 +491,7 @@ function cancelGeneration() {
|
|
|
486
491
|
}
|
|
487
492
|
}
|
|
488
493
|
touchRecords();
|
|
494
|
+
await nextTick();
|
|
489
495
|
tableRef.value?.refresh();
|
|
490
496
|
}
|
|
491
497
|
|