haoxuan
2023-08-21 c3d26d0fe57fd0a46ecb1c2763e1cc66994c6185
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;