From dc5472e5bda5f4c9b779977c691e8973e2a1a12c Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 07 九月 2023 10:49:45 +0800 Subject: [PATCH] 去掉网络设置的 tab 2-23-9-7 --- src/views/visualization.vue | 43 ++++++++++++++++++++----------------------- 1 files changed, 20 insertions(+), 23 deletions(-) diff --git a/src/views/visualization.vue b/src/views/visualization.vue index 9697ba8..9a27125 100644 --- a/src/views/visualization.vue +++ b/src/views/visualization.vue @@ -227,7 +227,7 @@ </div> --> <div class="card_top-4"> <div>宸ヨ壓缂栧彿锛歿{ list.number }}</div> - <div + <!-- <div style=" font-size: 14px; color: #cfcfcf; @@ -235,7 +235,7 @@ " > 宸ヨ壓鐨勫叿浣撲俊鎭鐐瑰嚮鎺у埗鏌ョ湅锛� - </div> + </div> --> </div> </template> </div> @@ -531,6 +531,9 @@ countDownHour:0, countDownMinute:0, Arr:[], + // 璁板綍瀹氭椂鍣ㄧ姸鎬� + procInfoTimer:null, + cutdownTimer: null }; }, mounted() { @@ -695,9 +698,11 @@ } }); this.getProgressInfo(); - setInterval(() => { - this.getProgressInfo(); - }, 6000); + if (!this.procInfoTimer) { + this.procInfoTimer = setInterval(() => { + this.getProgressInfo(); + }, 6000); + } } console.log(this.procedureList, "===1111procedureList"); // setTimeout(() => { @@ -708,9 +713,12 @@ } if(res.code!=200||!this.taskData.Procedure.ID){ this.getcountdown(); - setInterval(() => { - this.getcountdown(); - }, 60000); + // 鎺у埗閲嶆柊璇锋眰getTaskInfo, 鍙紑鍚竴涓畾鏃跺櫒 + if (!this.cutdownTimer) { + this.cutdownTimer = setInterval(() => { + this.getcountdown(); + }, 60000); + } } }); }, @@ -729,13 +737,8 @@ if (Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID) { this.$refs.control.islook = true; } else { - this.$confirm( "褰撳墠璁惧娌℃湁宸ュ簭!", "鎻愮ず", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning", - }) - .then(() => {}) - .catch(() => {}); + this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�"); + } }, // 鍙充晶瀹屾垚 @@ -749,13 +752,7 @@ } }); } else { - this.$confirm( "褰撳墠璁惧娌℃湁宸ュ簭!", "鎻愮ず", { - confirmButtonText: "纭畾", - cancelButtonText: "鍙栨秷", - type: "warning", - }) - .then(() => {}) - .catch(() => {}); + this.$message.error("褰撳墠璁惧娌℃湁宸ュ簭锛�"); } }, getRandomNumber(min, max) { @@ -1155,7 +1152,7 @@ padding: 0 10px; height: 70px; - line-height: 40px; + line-height: 70px; color: #fff; background: rgb(19, 35, 90); font-size: 20px; -- Gitblit v1.8.0