src/components/AddControl.vue
@@ -80,11 +80,16 @@ }, methods: { getStartInfo(){ 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) { @@ -105,13 +110,16 @@ onSubmit() { 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;