From ae00f49b30bd6b9232220340c9696b3e9137f9af Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Wed, 13 Sep 2023 22:00:49 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=AE=A1=E6=89=B9=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E5=89=8D=E7=AB=AF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/approve/details.vue | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/resources/assets/js/pages/manage/approve/details.vue b/resources/assets/js/pages/manage/approve/details.vue index 7d6143700..950512459 100644 --- a/resources/assets/js/pages/manage/approve/details.vue +++ b/resources/assets/js/pages/manage/approve/details.vue @@ -177,10 +177,10 @@
- - - - + + + +
@@ -359,24 +359,26 @@ export default { if (type != 1 && !desc) { return `请输入审批意见` } - this.$store.dispatch("call", { - url: 'approve/task/complete', - data: { - task_id: this.datas.task_id, - pass: type == 1, - comment: desc, - } - }).then(({msg}) => { - $A.messageSuccess(msg); - if (this.$route.name == 'manage-approve-details' || this.$route.name == 'manage-messenger') { - this.getInfo() - } else { - this.$emit('approve') - } - }).catch(({msg}) => { - $A.modalError(msg); - }); - return false + return new Promise((resolve, reject) => { + this.$store.dispatch("call", { + url: 'approve/task/complete', + data: { + task_id: this.datas.task_id, + pass: type == 1, + comment: desc, + } + }).then(({msg}) => { + $A.messageSuccess(msg); + if (this.$route.name == 'manage-approve-details' || this.$route.name == 'manage-messenger') { + this.getInfo() + } else { + this.$emit('approve') + } + resolve() + }).catch(({msg}) => { + reject(msg) + }); + }) } }); }, @@ -403,10 +405,8 @@ export default { this.$emit('revocation') } }).catch(({msg}) => { - $A.modalError(msg); - resolve(); + reject(msg); }); - return false }) }, });