| | |
| | | }, |
| | | methods: { |
| | | getStartInfo(){ |
| | | startTask({id:this.id}).then(res=>{ |
| | | if(res.code==200){ |
| | | this.Arr=res.data.params; |
| | | } |
| | | }) |
| | | if(this.id){ |
| | | startTask({id:this.id}).then(res=>{ |
| | | if(res.code==200){ |
| | | this.Arr=res.data.params; |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message.error("当前设备没有工序!"); |
| | | } |
| | | |
| | | }, |
| | | validatorNum(rule, value, callback) { |
| | | if (value) { |
| | |
| | | |
| | | onSubmit() { |
| | | |
| | | |
| | | sendProcessParams({id:this.id}).then(res=>{ |
| | | if(res.code==200){ |
| | | this.$message.success("下发成功!"); |
| | | this.shutdown(); |
| | | } |
| | | }) |
| | | if(this.id){ |
| | | sendProcessParams({id:this.id}).then(res=>{ |
| | | if(res.code==200){ |
| | | this.$message.success("下发成功!"); |
| | | this.shutdown(); |
| | | } |
| | | }) |
| | | }else{ |
| | | this.$message.error("当前设备没有工序!"); |
| | | } |
| | | }, |
| | | shutdown() { |
| | | this.islook = false; |