shijiplus-web-plugin 0.1.56 → 0.1.57
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
|
@@ -159,13 +159,16 @@ export default {
|
|
|
159
159
|
// 4. Fetch data interval by interval and update progress
|
|
160
160
|
let exportedCount = 0
|
|
161
161
|
let exportData = []
|
|
162
|
+
let index = 0
|
|
163
|
+
let totalSteps = intervals.length
|
|
162
164
|
for (const interval of intervals) {
|
|
165
|
+
index++
|
|
163
166
|
const { intervalData, intervalTotalCount } = await this.fetchDataForInterval(interval, searchForm, apiFunction)
|
|
164
167
|
exportData.push(...intervalData)
|
|
165
168
|
exportedCount += intervalData.length
|
|
166
169
|
|
|
167
170
|
// Update progress based on total count
|
|
168
|
-
this.orderExportModalPercent = (
|
|
171
|
+
this.orderExportModalPercent = (index / totalSteps * 100).toFixed(2)
|
|
169
172
|
instance.updatePercent(this.orderExportModalPercent)
|
|
170
173
|
if (this.orderExportModalPercent >= 100) {
|
|
171
174
|
break
|