初始页签及根据页签显示按钮

27 阅读1分钟

image.png


onFormMounted(){
  this.handleClick({name:'待办'})
  this.dataJson.headerTabName = '待办'
  this.dataJson.isShowDataBtnItem = (scope, item) => {
    return scope.flagStatus == '待办'
    //以下为表格设计器自带的按钮显示条件,有表单列表必须有,无表单列表可以没有
    // if (this.moduleType == 4) return item.cate == 2
    // if (scope.operates) {
    //   return item.cate == 2 && scope.operates.includes(item.id + '')
    // }
    // return item.cate == 2
  }
}