From e1ad327b9300cba0070ad37deb93977b3a49201f Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Sun, 27 Apr 2025 11:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=85=B7=E9=A2=86?= =?UTF-8?q?=E7=94=A8=E5=92=8C=E6=8A=A5=E5=B7=A5=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/schedule/toolReport.vue | 26 ++++++++++------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/src/views/modules/schedule/toolReport.vue b/src/views/modules/schedule/toolReport.vue index 6a5470b..b171924 100644 --- a/src/views/modules/schedule/toolReport.vue +++ b/src/views/modules/schedule/toolReport.vue @@ -789,14 +789,12 @@ } }) this.toolInstanceID=''; - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => { - this.$nextTick(() => { this.$refs.issuance.focus();}) - } - }) + if (data.msg && data.msg.length > 0){ + this.$message.warning(data.msg) + }else { + this.$message.success("领用成功") + } + this.$nextTick(() => { this.$refs.issuance.focus();}) } else { this.toolInstanceID=''; this.$alert(data.msg, '错误', { @@ -875,13 +873,11 @@ }) this.reportModalFlag=false; this.toolInstanceID=''; - this.$message({ - message: '操作成功', - type: 'success', - duration: 1500, - onClose: () => { - } - }) + if (data.msg && data.msg.length > 0){ + this.$message.warning(data.msg) + }else { + this.$message.success("操作成功") + } this.$nextTick(() => { this.$refs.report.focus();}) } else { this.$alert(data.msg, '错误', {