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, '错误', {