| | |
| | | this.getDate3(); |
| | | this.getDate2(); |
| | | }, 5000); |
| | | this.getTaskInfo(); |
| | | |
| | | let channelType = this.getChannelTypeFromUrl() |
| | | channelType = channelType ?? 1 |
| | | this.activeName = channelType |
| | | this.getTaskInfo(channelType); |
| | | this.getTaskCountStatistics() |
| | | }, |
| | | beforeDestroy() { |
| | |
| | | // } |
| | | }, |
| | | methods: { |
| | | |
| | | getModelList(){ |
| | | this.resResult=null |
| | | for (let i in this.TasksCopy){ |
| | |
| | | this.isUpdateIcon=true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.resResult=res; |
| | | this.resResult=res; |
| | | }) |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | this.$message.error('当前工序无编号,无法查看工序!') |
| | | |
| | | }, |
| | | getProcessModelList(){ |
| | | this.getModelList() |
| | |
| | | }, |
| | | cutClick(val) { |
| | | this.activeName = val; |
| | | this.updateChannelTypeToUrl(val) |
| | | if(this.activeName==2){ |
| | | this.Tasks=this.TasksCopy.slice(0,2) |
| | | if(this.Tasks.length<2){ |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | |
| | | |
| | | getDateObj(date, fmt) { |
| | | if (/(y+)/.test(fmt)) { |
| | | fmt = fmt.replace( |
| | |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * 向URL中设置当前通道展示类型 |
| | | * @param {number} type 通道展示类型 |
| | | */ |
| | | updateChannelTypeToUrl(type){ |
| | | const activeName = this.getChannelTypeFromUrl(); |
| | | if (activeName === type){ |
| | | return |
| | | } |
| | | let path = this.$router.history.current.path |
| | | this.$router.push({path, query: {activeName: `${type ?? 1}`}}) |
| | | }, |
| | | /** |
| | | * 从URL获取当前通道展示类型 |
| | | * @return {number} |
| | | */ |
| | | getChannelTypeFromUrl(){ |
| | | let activeName = new URLSearchParams(location.search).get('activeName') |
| | | activeName = activeName ? +activeName : undefined |
| | | return activeName |
| | | }, |
| | | getProgressInfo() { |
| | | this.resprocInfoTimer=null |
| | | for (let i in this.TasksCopy){ |