From 38d94150017f360261a7be316468e1edda57aea6 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 23 Aug 2024 16:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E7=A8=8B=E5=A4=A7=E4=BA=8E100?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E8=B0=83=E7=94=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/smartImport/cpts/executeTask.vue | 2 +- .../modules/base/smartImport/cpts/smartImportInfo.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/modules/base/smartImport/cpts/executeTask.vue b/src/views/modules/base/smartImport/cpts/executeTask.vue index 9c6237ca9..c2efa4b5f 100644 --- a/src/views/modules/base/smartImport/cpts/executeTask.vue +++ b/src/views/modules/base/smartImport/cpts/executeTask.vue @@ -168,7 +168,7 @@ export default { }; let res = await requestPost(url, parm); if (res.code == 0) { - if (res.data === 100) { + if (res.data >= 100) { this.stopTimer(); this.$emit('successImport') }else{ diff --git a/src/views/modules/base/smartImport/cpts/smartImportInfo.vue b/src/views/modules/base/smartImport/cpts/smartImportInfo.vue index ef596f07f..d1c28ac2d 100644 --- a/src/views/modules/base/smartImport/cpts/smartImportInfo.vue +++ b/src/views/modules/base/smartImport/cpts/smartImportInfo.vue @@ -91,7 +91,12 @@ export default { this.progressNum = 100; }, updateProgress(num) { - this.progressNum = num; + if(num > 100){ + this.progress = 3; + this.progressNum = 100; + }else{ + this.progressNum = num; + } }, updateoperatorName({ operatorName, createdTime }) { this.operatorName = operatorName;