From 102c7d7dc9f5af873f19c86a0d17d5d6addcbc32 Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期二, 19 九月 2023 17:39:28 +0800 Subject: [PATCH] 项目优化 --- src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue | 43 +++++++++++++++++++++++++++++++++++-------- 1 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelEdit.vue index 2e61fa6..edb7cca 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.success({ + 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,13 +301,16 @@ } }else{ if(startOne>=endOne){ - that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + // that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"); + that.$notification.warning({ + message:'娑堟伅', + description:"缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�" + }); // console.log(this.model) // this.endTime = '' that.confirmLoading = false }else{ - let obj if (!this.model.id) { obj = postAction(this.url.add, formData) @@ -305,10 +324,18 @@ obj.then((res) => { if (res.success) { // that.$message.success("淇敼鎴愬姛") - that.$message.success(res.message) + // that.$message.success(res.message) + that.$notification.success({ + 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