From 9b3e7c3c47dc27e531a7b954aa2b3ba500c84b78 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期四, 10 八月 2023 16:33:18 +0800 Subject: [PATCH] 项目整体弹窗提示 --- src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue index 2e61fa6..32cf083 100644 --- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue +++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue @@ -248,11 +248,19 @@ let dataStart = stertDate.replace(/:/g,''); if(this.editStart != startOne){ if(startOne < dataStart) { - that.$message.warning("寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�") + // that.$message.warning("寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�") + that.$notification.warning({ + message:'娑堟伅', + description:"寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�" + }); that.confirmLoading = false }else{ if(startOne>=endOne){ - that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + // that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + that.$notification.warning({ + message:'娑堟伅', + description:"缁撴潫鏃堕棿涓嶈兘灏忎簬褰撳墠鏃堕棿" + }); // console.log(this.model) // this.endTime = '' that.confirmLoading = false @@ -272,10 +280,18 @@ obj.then((res) => { if (res.success) { // that.$message.success("淇敼鎴愬姛") - that.$message.success(res.message) + // that.$message.success(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); that.$emit('ok', res.result) } else { - that.$message.warning(res.message) + // that.$message.warning(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { that.confirmLoading = false @@ -285,7 +301,11 @@ } }else{ if(startOne>=endOne){ - that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + // that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + that.$notification.warning({ + message:'娑堟伅', + description:"缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�" + }); // console.log(this.model) // this.endTime = '' that.confirmLoading = false @@ -305,10 +325,18 @@ obj.then((res) => { if (res.success) { // that.$message.success("淇敼鎴愬姛") - that.$message.success(res.message) + // that.$message.success(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); that.$emit('ok', res.result) } else { - that.$message.warning(res.message) + // that.$message.warning(res.message) + that.$notification.warning({ + message:'娑堟伅', + description:res.message + }); } }).finally(() => { that.confirmLoading = false -- Gitblit v1.9.3