条件过滤,添加时候显示默认值

\RG3.Web.Host.PaaS\Config\Bridge\basis\pm\bridge_pm-project-info__biz.out.json
\rg3-cli\src\components\basis\bs-text-action\index.vue
\rg3-cli\src\components\basis\bo-action\index.vue

{
  "search": {},
  "table": {
    "attrs": "users",
    "columns": {
      "tasks": {
        "sortId": 9999,
        "alias": "tasks",
        "field": "tasks",
        "events": {},
        "attrs": {
          "positionType": "main",
          "show-content-title": "详情",
          "component-action": "el-buttion",
          "component-action-icon": "el-icon-circle-plus-outline",
          "component-action-label-edit": "任务管理",
          "component-action-label-add": "任务管理",
          "component-action-field": "projectName",
          "show-nav-position": "more", // 显示到行更多功能里面
          "tab-action-field-pre": null, //页签前缀,如{{label}}({{tab-action-field-pre}}{{component-action-field}})
          "label": "任务管理",
          "maxlength": 200,
          "clearable": true,
          "component-open-method": "tab",
          "tab-menu-mkey": "menu-nav",
          "tab-menu-field": "content_detail",
          "tab-menu-id": "3965738513936158720",
          "tab-action-field": "projectName",
          "tab-action-tabid-field": "projectId",
          "tab-action-tabid-key": "tasks",
          "tab-view-component": "bs-table",
          "tab-view-events-type": "page",
          "tab-view-primary-field": "projectId",
          "tab-view-primary-alias": "project_id",
          "open-parent-click": true,
          "closed-bottom-action": true
        },
        "attrsInt": {},
        "meta": {
          "html": false,
          "edit": false,
          "component": "bs-text-action",
          "componentOp": "bs-lookup-remote",
          "rowId": "1",
          "tabId": "1",
          "type": "basis",
          "span": 12
        },
        "queryMenu": {
          "projectId": "projectId",
          "projectName": "projectName",
          "filterRemoves": "projectName",
          "filterKvO": "projectId,projectName", //第一个转换 projectId为value, projectName 为name
          "filterKvS": ""  //第二个转换 projectId为value, projectName 为name
        },
        "query": {},
        "queryLeft": {},
        "queryRight": {},
        "params": {}
      }
    }
  },
  "form": {
    "columns": {}
  }
}

mapper_pm-project-info_sql__biz.out.json

{
  "rules": {},
  "responseField": {},
  "columns": {
    "users": {
      "fieldSort": 9999,
      "extendAlias": "input_basis",
      "tableId": 1,
      "dataType": "varchar",
      "title": "项目成员",
      "guidMethod": 0,
      "guidMethodSn": "none",
      "isRequired": false,
      "isData": false,
      "filter": {
        "isMust": false
      },
      "removeMapperDefVal": false,
      "field": "users",
      "name": "users",
      "alias": "users",
      "isDate": false,
      "isPrimary": false,
      "isIdentity": false,
      "maxLength": 255
    }
  },
  "dimDatas": {}
}

mapper_pm-project-info_sql__responsefield.json


{
  "responseField": {
    "manager": {
      "where": "{where_sql} and (@_developer=1 or create_by=@_userId  or create_by in @_mergeUserId)",
      "searchColumnRemoves": "",
      //"showExtand": "{child_count},null parent_name,{geography},null lng_lat,'' users,'' systems,'' apps,'' roles,'' deps",
      "showExtand": "'' users,'' installs,'' pays,'' views,'' files,'' steps,'' needs,'' tasks",
      "bridgeColumnExtand": "users,installs,pays,views,files,steps,needs,tasks",
      //"bridgeColumnExtand": "child_count,parent_name,lng_lat,users,systems,apps,roles,deps",
      //"originalExtand": "0.0 lng,0.0 lat",
      //"bridgeColumnRemoves": "geography",
      "extend": "basis",
      "auth": true,
      "columns": {},
      "order": "{date_diff_sort},update_time desc",
      "field": {
        "sort": {
          "createTime": {
            "column": "create_time",
            "dateDiffMinute": 5
          }
        }
      },
      "wheres": [
        "{where_sql} ",
        "{s-if:_mapperType}",
        "{op-eq:defv}",
        " and (",
        "   @_developer=1 or create_by=@_userId or create_by in @_mergeUserId",
        "   or create_by in (",
        "     select user_id from pm_project_member where (user_id=@_userId or user_id in @_mergeUserId) and is_enabled=1",
        "   )",
        ")",
        "{op-eq:defv}",
        "{e-if:_mapperType}"
      ]
    }
  },
  "saveSqlExtand": {},
  "dimDatas": {},
  "rules": {}
}
文档更新时间: 2024-03-02 10:50   作者:admin