From 211b48fb73089c9afe4801ae5799dd5e63ccf352 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 26 九月 2023 16:39:22 +0800 Subject: [PATCH] 当前工序 如果完成 置灰用样式调整,不显示提示的弹框 --- src/views/visualization.vue | 48 +++++++++++++++++++++++++++++++++--------------- 1 files changed, 33 insertions(+), 15 deletions(-) diff --git a/src/views/visualization.vue b/src/views/visualization.vue index 554b3db..90a30a7 100644 --- a/src/views/visualization.vue +++ b/src/views/visualization.vue @@ -1,8 +1,8 @@ <template> <div class="home"> - <!-- --> - <template v-if="Tasks&&Tasks.length>0"> + <!-- v-if="Tasks&&Tasks.length>0" --> + <template > <div class="left"> <p class="title"> <template v-if="Number(ChannelAmount)>1"> @@ -312,7 +312,7 @@ </div> <div class="card_top-2"> <div style="line-height: 45px; text-align: center"> - 鐢熶骇涓� + {{ taskData.Procedure.Status==3?'鐢熶骇瀹屾垚':'鐢熶骇涓�' }} </div> <!-- <span class="card-top-r-t">瀹屾垚杩涘害锛�50%</span> <span class="card-top-r-b">12鏈�28鏃� 08:24</span> --> @@ -344,7 +344,9 @@ ></p> <div class="right-small-btn bottom-box-btn"> <el-button type="primary"> 鎵撳嵃</el-button> + <el-button v-if="taskData.Procedure.Status==3" type="primary" class="huise"> 瀹屾垚</el-button> <el-popover + v-else placement="top-end" width="160" class="button-finish" @@ -512,7 +514,7 @@ </div> </template> <!-- --> - <template v-else> + <!-- <template v-else> <div class="home-img-box"> <div class="bg-title"> <img src="../../public/bg-title.png" /> @@ -543,7 +545,7 @@ </div> </div> - </template> + </template> --> <!-- 鎺у埗鐨勫脊妗� --> <AddControl ref="control" :Arr="Arr" /> <!-- 鎺у埗鐨勫脊妗� --> @@ -716,7 +718,11 @@ this.getStartArr() this.$refs.control.islook=true }else{ - this.$message.error('鐩墠娌℃湁浠诲姟锛�') + this.$message({ + message:'鐩墠娌℃湁浠诲姟锛�', + type: 'error', + duration: 3 * 1000 + }) } }, isTip(val){ @@ -748,6 +754,9 @@ this.countDownMinute = res.data.CountDownMinute ? res.data.CountDownMinute : 0; + if(this.countDownHour==0&& this.countDownMinute==0){ + this.getTaskInfo(); + } } }); }, @@ -955,15 +964,15 @@ }, 3000); } } - if (res.code != 200 || this.TasksCopy.length == 0) { - this.getcountdown(); - // 鎺у埗閲嶆柊璇锋眰getTaskInfo, 鍙紑鍚竴涓畾鏃跺櫒 - if (!this.cutdownTimer) { - this.cutdownTimer = setInterval(() => { - this.getcountdown(); - }, 60000); - } - } + // if (res.code != 200 || this.TasksCopy.length == 0) { + // this.getcountdown(); + // // 鎺у埗閲嶆柊璇锋眰getTaskInfo, 鍙紑鍚竴涓畾鏃跺櫒 + // if (!this.cutdownTimer) { + // this.cutdownTimer = setInterval(() => { + // this.getcountdown(); + // }, 60000); + // } + // } this.cutClick(1) }); // this.TasksCopy.push(object) @@ -1399,6 +1408,15 @@ border: 0; } } + .huise{ + width: 46%; + float: right; + } + .huise.el-button--primary { + background: #CCE8E8; + color: #AAAAAA; + border: 0; + } } .home { width: 100%; -- Gitblit v1.8.0