| | |
| | | </div> --> |
| | | <div class="card_top-4"> |
| | | <div>工艺编号:{{ list.number }}</div> |
| | | <div |
| | | <!-- <div |
| | | style=" |
| | | font-size: 14px; |
| | | color: #cfcfcf; |
| | |
| | | " |
| | | > |
| | | 工艺的具体信息请点击控制查看! |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | </div> |
| | |
| | | countDownHour:0, |
| | | countDownMinute:0, |
| | | Arr:[], |
| | | // 记录定时器状态 |
| | | procInfoTimer:null, |
| | | cutdownTimer: null |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | }; |
| | | getTaskInfo().then((res) => { |
| | | if (res.code == 200) { |
| | | this.procedureList=[] |
| | | this.taskData = res.data |
| | | ? res.data |
| | | : { |
| | |
| | | } |
| | | }); |
| | | this.getProgressInfo(); |
| | | setInterval(() => { |
| | | this.getProgressInfo(); |
| | | }, 6000); |
| | | if (!this.procInfoTimer) { |
| | | this.procInfoTimer = setInterval(() => { |
| | | this.getProgressInfo(); |
| | | }, 6000); |
| | | } |
| | | } |
| | | console.log(this.procedureList, "===1111procedureList"); |
| | | // setTimeout(() => { |
| | |
| | | } |
| | | if(res.code!=200||!this.taskData.Procedure.ID){ |
| | | this.getcountdown(); |
| | | setInterval(() => { |
| | | this.getcountdown(); |
| | | }, 60000); |
| | | // 控制重新请求getTaskInfo, 只开启一个定时器 |
| | | if (!this.cutdownTimer) { |
| | | this.cutdownTimer = setInterval(() => { |
| | | this.getcountdown(); |
| | | }, 60000); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$refs.control.islook = true; |
| | | } else { |
| | | this.$message.error("当前设备没有工序!"); |
| | | |
| | | } |
| | | }, |
| | | // 右侧完成 |
| | |
| | | font-size: 30px; |
| | | font-weight: 700; |
| | | } |
| | | .el-button--primary { |
| | | border: 0; |
| | | font-weight: 700 !important; |
| | | font-size: 16px !important; |
| | | } |
| | | |
| | | .color_4efefa { |
| | | color: #4efefa; |
| | | } |
| | |
| | | padding: 0 10px; |
| | | height: 70px; |
| | | |
| | | line-height: 40px; |
| | | line-height: 70px; |
| | | color: #fff; |
| | | background: rgb(19, 35, 90); |
| | | font-size: 20px; |
| | |
| | | } |
| | | } |
| | | } |
| | | .el-button--primary { |
| | | border: 0; |
| | | font-weight: 700 !important; |
| | | font-size: 16px; |
| | | } |
| | | </style> |