From 4c71ddc074cd584cfddd9c1a77ebc1cf1658332f Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Sun, 24 Sep 2023 23:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E8=AE=A4=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AEbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/order/index.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/plan/order/index.vue b/src/views/plan/order/index.vue index 5b2b9a0..af4a942 100644 --- a/src/views/plan/order/index.vue +++ b/src/views/plan/order/index.vue @@ -1235,13 +1235,24 @@ export default { }, // 首-SAP同步按钮操作 handleSyncSAP() { + this.loading = true; + let _this = this; this.$modal.confirm('是否确认SAP同步操作步骤?').then(function () { return syncSAP() }).then(() => { this.getList() + this.loading = false; this.$modal.msgSuccess('同步成功') - }).catch(() => { - }) + }).catch( + function (e) { + if (e == 'cancel') { + _this.loading = false; + } else if(e == 'close') { + _this.loading = false; + + } + } + ) } }