{
  "table": {
    "columns": {

      //#region 1对多配置
      "supplierUser": {
        "alias": "supplier_user",
        "field": "supplierUser",
        "events": {
          "type": "add",
          "click": "on-click"
        },
        "attrs": {
          "type": "expand",
          "label": "职员信息",
          //展示方式  column/collapse/switch
          "show-view-method": "collapse",
          //来源表格,会添加上表单el-form标签
          "show-from-source": "bo-table",
          //隐藏的子表列, 逗号分割 funcId,menuId,mfId,funcCode
          //"hide-columns": "supplierId,userShowName",
          "hidden-fields": "supplierId,userShowName",
          "data-type": "array",
          //处理内容不显示,点击查看 或 修改 显示内容
          "show-content-title": "明细",
          "show-content-component": "bs-text",
          //引用的子表数据 模块  配置 key  主键参数 start
          "child-mkey": "mall-supplier-user",
          "child-res-field": "manager"
          //"child-label-field": "funcName",
          //"child-value-field": "isEnabled"
          //"child-from-value": true, 
          //"active-text": "启用",
          //"inactive-text": "禁用"
          //引用的子表数据 模块  配置 key  主键参数 end
        },
        "attrsInt": {
          "active-value": 1,
          "inactive-value": 0
          //引用的子表数据 模块  配置 key  主键参数 end
        },
        "meta": {
          // 来至值类型
          "fromTitleModel": "kv",
          "component": "bs-text",
          //处理内容不显示,点击查看 或 修改 显示内容
          "html": false,
          "text": true,
          "edit": true,
          "titleField": "userId",
          "sortField": null,
          "resMkey": "mall-supplier-user",
          "resField": "manager",
          "prop": "supplierUser",
          "type": "basis",
          "span": 24,
          "auth": true,
          "componentOp": "bo-form-child",
          "primaryId": [
            {
              "field": "suId",
              "alias": "su_id"
            }
          ]
        }
      },

      //#endregion 1对多配置

    }
  }
}
文档更新时间: 2022-01-26 11:01   作者:admin