天天看點

動态隐藏和顯示列,分組 avue

watch: {
    warnType(newval) {
      if (newval == 1) {
        this.findObject(this.option.column, "points").hide = false;
        this.findObject(this.option.column, "checkTime").hide = true;
      } else {
        this.findObject(this.option.column, "points").hide = true;
        this.findObject(this.option.column, "checkTime").hide = false;
      }
    },
  },
           

分組

categoryType(newval) {
  this.option.group[2].display = newval;
},