From 38e0e2b39714aa29aacf9636097e464c50fcc1c3 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 28 八月 2023 10:50:34 +0800
Subject: [PATCH] 面板的提示 报错 换成弹框

---
 src/views/visualization.vue |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index 3205d3a..9697ba8 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -729,7 +729,13 @@
       if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID) {
         this.$refs.control.islook = true;
       } else {
-        this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�");
+        this.$confirm( "褰撳墠璁惧娌℃湁宸ュ簭!", "鎻愮ず", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          type: "warning",
+        })
+          .then(() => {})
+          .catch(() => {});
       }
     },
     // 鍙充晶瀹屾垚
@@ -743,7 +749,13 @@
           }
         });
       } else {
-        this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�");
+        this.$confirm( "褰撳墠璁惧娌℃湁宸ュ簭!", "鎻愮ず", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          type: "warning",
+        })
+          .then(() => {})
+          .catch(() => {});
       }
     },
     getRandomNumber(min, max) {
@@ -832,11 +844,7 @@
   font-size: 30px;
   font-weight: 700;
 }
-.el-button--primary {
-  border: 0;
-  font-weight: 700 !important;
-  font-size: 16px !important;
-}
+
 .color_4efefa {
   color: #4efefa;
 }
@@ -1349,4 +1357,9 @@
     }
   }
 }
+.el-button--primary {
+  border: 0;
+  font-weight: 700 !important;
+  font-size: 16px;
+}
 </style>

--
Gitblit v1.8.0