haoxuan
2023-08-23 c70006ac2709d2e2310c9cce12e870d7e3fa5052
src/components/AddControl.vue
@@ -80,11 +80,16 @@
  },
  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) {
@@ -105,13 +110,16 @@
    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;