shijiplus-web-plugin 0.1.56 → 0.1.58
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
|
@@ -163,10 +163,10 @@ export default {
|
|
|
163
163
|
initialDate: {
|
|
164
164
|
// 监听format属性变化
|
|
165
165
|
handler(val) {
|
|
166
|
-
if (val.begin) {
|
|
166
|
+
if (val.begin && !this.begin) {
|
|
167
167
|
this.beginChange(this.$formatDate(val.begin, this.beginFormat))
|
|
168
168
|
}
|
|
169
|
-
if (val.end) {
|
|
169
|
+
if (val.end && !this.end) {
|
|
170
170
|
this.endChange(this.$formatDate(val.end, this.endFormat))
|
|
171
171
|
}
|
|
172
172
|
},
|
|
@@ -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
|