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/shift/ShiftInfoModel.vue |   43 +++++++++++++++++++++++++++++++++++--------
 1 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/src/views/mdc/base/modules/shift/ShiftInfoModel.vue b/src/views/mdc/base/modules/shift/ShiftInfoModel.vue
index 8a7d69c..68407de 100644
--- a/src/views/mdc/base/modules/shift/ShiftInfoModel.vue
+++ b/src/views/mdc/base/modules/shift/ShiftInfoModel.vue
@@ -169,7 +169,11 @@
             // }
             //update-end---author:zhangyafei    Date:20201118  for锛氶�傞厤涓嶅垎椤电殑鏁版嵁鍒楄〃------------
           }else{
-            this.$message.warning(res.message)
+            // this.$message.warning(res.message)
+            this.$notification.warning({
+              message:'娑堟伅',
+              description:res.message
+            });
           }
         }).finally(() => {
           this.loading = false
@@ -221,7 +225,6 @@
         const that = this
         // 瑙﹀彂琛ㄥ崟楠岃瘉
         this.form.validateFields((err, values) => {
-          console.log(values);
           if (!err) {
             // debugger
             that.confirmLoading = true
@@ -234,8 +237,16 @@
               let startTimeOne = startTime.replace(/:/g,'');
               let endTimeOne = endTime.replace(/:/g,'');
               if(startTimeOne>endTimeOne){
-                that.$message.warning("闈炶法澶╃彮娆$粨鏉熸椂闂翠笉鑳藉皬浜庣瓑浜庡紑濮嬫椂闂达紒")
-                that.$message.success("淇濆瓨澶辫触")
+                // that.$message.warning("闈炶法澶╃彮娆$粨鏉熸椂闂翠笉鑳藉皬浜庣瓑浜庡紑濮嬫椂闂达紒")
+                that.$notification.warning({
+                  message:'娑堟伅',
+                  description:"闈炶法澶╃彮娆$粨鏉熸椂闂翠笉鑳藉皬浜庣瓑浜庡紑濮嬫椂闂达紒"
+                });
+                // that.$message.success("淇濆瓨澶辫触")
+                that.$notification.error({
+                  message:'娑堟伅',
+                  description:"淇濆瓨澶辫触锛�"
+                });
                 that.close()
               }else{
                 formData.shiftSubStatus = 1
@@ -249,10 +260,18 @@
                 }
                 obj.then((res) => {
                   if (res.success) {
-                    that.$message.success("淇濆瓨鎴愬姛")
+                    // that.$message.success("淇濆瓨鎴愬姛")
+                    that.$notification.warning({
+                      message:'娑堟伅',
+                      description:"淇濆瓨鎴愬姛"
+                    });
                     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
@@ -271,10 +290,18 @@
               }
               obj.then((res) => {
                 if (res.success) {
-                  that.$message.success("淇濆瓨鎴愬姛")
+                  // that.$message.success
+                  that.$notification.warning({
+                    message:'娑堟伅',
+                    description:"淇濆瓨鎴愬姛"
+                  });
                   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