mapper_bo-dep_sql.json columns

 "areaCode": {
      "extendAlias": "area_code",
      "fieldSort": 9999,
      "tableId": 1,
      "dataType": "varchar",
      "title": "行政区划",
      "guidMethod": "None",
      "isRequired": false,
      "isData": true,
      "filter": {
        "isMust": false
      },
      //控制替换继承列名 _fromPrimaryIds   替换为
      "dimSqlRep": [
        {
          "key": "_fromPrimaryIds",
          "value": "_filterDimAreaCode",
          "name": "AreaCode",
          "alias": "area_code"
        }
      ],
      "dimJoin": {
        "fromDimField": "area",
        "allFilter": "",
        "joinChar": ","
      },
      "field": "areaCode",
      "name": "area_code",
      "alias": "area_code",
      "isDate": false,
      "isPrimary": false,
      "isIdentity": false,
      "maxLength": 15
    },

mapper_bo-dep_sql.json dimDatas

  "dimDatas": {
    //行政区划
    "area": {
      "extend": "area",
      "dataFromType": "Database"
    },
    "parentId": {
      "allSql": "select dep_name name,parent_id,dep_id id,dep_id value from bo_department where {s-if:_fromPrimaryIds} dep_id in @_fromPrimaryIds {e-if:_fromPrimaryIds}",
      "connName": "ConnBo",
      "dataFromType": "Database",
      "name": "上级机构",
      "dimCacheKey": "dim-dep-parent-id" //全局key , 设置后 把数据直接缓存在 redis中
      //"fromExtend": true
    },
    "sysEnum": {
      "extend": "sysEnum",
      "dataFromType": "Database"
    },
    "system": {
      "extend": "system",
      "dataFromType": "Database"
    },
    "sysState": {
      "extend": "sysState",
      "dataFromType": "ConfigFile"
    },
    //配置全局使用的机构
    "global": {
      "alias": "global",
      "allSql": "select tb_d.dep_name name,tb_d.dep_id id,parent_Id,tb_d.dep_id value from bo_department tb_d ",
      "name": "机构"
    }
  },

bridge_bo-dep__table.json


{
  "table": {
    "columns": {
      "areaCode": {
        "sortId": 9999,
        "alias": "area_code",
        "field": "areaCode",
        "events": {},
        "attrs": {
          //显示组件
          //"component-view": "el-tag",
          "component-action": "tag",
          //"type": "expand",
          "label": "行政区",
          "maxlength": 200,
          "clearable": true,
          //功能组件,带有事件  查找带回  start
          //显示的值 字段
          "data-value-field": "areaCode",
          //显示的头像 字段
          "data-src-field": null,
          //显示的类型 字段
          "data-type-field": null,
          //值数据类型 string object array  arrayobject
          "data-type": "object",
          //自定义 配合 前端main-table-form-dim 使用
          "data-custorm": true,
          //开启 bo-form-item-basis 
          "data-edit": true,
          //表格组件 
          "data-table-reload": true,
          "left-column-label": "已选",

          "right-filter-field": "areaName",
          "right-data-mkey": "bo-area",
          "right-data-field": "manager-area-all",

          //多选关系表
          "right-save-mkey": "bo-user-role",
          "right-column-label": "行政区划名",
          "right-save-field": "manager-area",
          "right-save-success": "保存成功。",
          "right-save-before-error": "未选择。",

          //单选
          "right-save-single-error": "只能选择1条数据",
          "right-save-single": true,
          "closed-no-refresh-data": false,
          //功能组件,带有事件  查找带回  end,
          //调用父组件点击事件
          "open-parent-click": true
          //  ,
          ////关闭表格里面自带弹出框按钮
          //"closed-bottom-action": true
        },
        "attrsInt": {},
        "meta": {
          "html": false,
          "edit":false,
          //"fromValue": true,
          "component": "bs-text",
          //"component": "el-tag",
          "componentOp": "bs-lookup-owner",
          "rowId": "1",
          "tabId": "1", 
          "type": "basis",
          "span": 12
        },
        //功能组件,带有事件  查找带回  start
        "query": {
          "depId": "depId"
        },
        //查找带回左侧条件
        "queryLeft": {
          "leftAreaCode": "areaCode"
        },
        //查找带回右侧条件
        "queryRight": {
          "rightAreaCode": "areaCode"
        },
        "params": {
          "depId": "value",
          "areaCode": "areaCode"
        }
        //功能组件,带有事件  查找带回  end
      }
    }
  }
}

bridge_bo-dep__form.json


{
  "form": {
    "columns": {
      "areaCode": {
        "sortId": 9999,
        "alias": "area_code",
        "field": "areaCode",
        "events": {},
        "attrs": {
          //显示组件
          //"component-view": "el-tag",
          "component-action": "tag",
          //"type": "expand",
          "label": "行政区",
          "maxlength": 200,
          "clearable": true,
          //功能组件,带有事件  查找带回  start
          //显示的值 字段
          "data-value-field": "areaCode",
          //显示的头像 字段
          "data-src-field": null,
          //显示的类型 字段
          "data-type-field": null,
          //值数据类型 string object array
          "data-type": "object",
          //自定义 配合 前端main-table-form-dim 使用
          "data-custorm": true,
          "left-column-label": "已选",

          "right-filter-field": "areaName",
          "right-data-mkey": "bo-area",
          "right-data-field": "manager-area-all",

          //多选关系表
          "right-save-mkey": "bo-user-role",
          "right-column-label": "用户名",
          "right-save-field": "manager-area",
          "right-save-success": "保存成功。",
          "right-save-before-error": "未选择。",
          //单选
          "right-save-single-error": "只能选择1条数据",
          "right-save-single": true,
          "closed-no-refresh-data": false,
          //功能组件,带有事件  查找带回  end,
          //调用父组件点击事件
          "open-parent-click": true,
          //  ,
          ////关闭表格里面自带弹出框按钮
          //"closed-bottom-action": true
          //调用表单里面弹出框组件 配合 componentOp使用
          "open-form-dialog": true
        },
        "attrsInt": {},
        "meta": {
          "html": false,
          "edit": false,
          "fromValue": false,
          //"fromValue": true,
          "component": "bs-text",
          //"component": "el-tag",
          "componentOp": "bs-lookup-owner",
          "rowId": "1",
          "tabId": "1",
          "type": "basis",
          "span": 12
        },
        //功能组件,带有事件  查找带回  start
        "query": {
          "depId": "depId"
        },
        //查找带回左侧条件
        "queryLeft": {
          "leftAreaCode": "areaCode"
        },
        //查找带回右侧条件
        "queryRight": {
          "rightAreaCode": "areaCode"
        },
        "params": {
          "depId": "value",
          "areaCode": "areaCode"
        }
        //功能组件,带有事件  查找带回  end
      }
    }
  }
}
文档更新时间: 2021-12-25 17:19   作者:admin