haoxuan
2023-08-26 e49e5481e62288c7158ca17ed902695e6c0fbf58
src/components/AddControl.vue
@@ -54,17 +54,16 @@
export default {
  components: {},
  props: {
    id:{
      type: [Number,String],
    Arr:{
      type: [Array],
      default: () => {
        return '';
        return [];
      },
    }
  },
  data() {
    return {
      islook: false,
      Arr:[]
    };
  },
  mounted() {
@@ -73,24 +72,11 @@
  watch: {
    islook(val) {
      if (val) {
        this.getStartInfo()
      }
    },
  },
  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) {
        if (value == undefined || value == null) {