设置前效果
配置信息
1、
\RG3.Web.Host.PaaS\Config\AppExtend\basis\app_sql_extend.json
"msg_target": {
"title": "消息目标",
"alias": "msg_target",
"filter": {
//"method": "after_like"
},
"editPropertie": {
"showMethodOut": "kv",
"showMethod": "text"
},
"pagePropertie": {
"showMethodOut": "kv",
"showMethod": "text",
"type": null,
"format": null,
"defaultValue": null
},
"dimJoin": {
"fromDimField": "msgTarget"
}
}
"msgTarget": {
//is_enabled=1 where and
"allSql": "select type_name name,parent_id,type_code id,type_code value from bs_msg_target where is_enabled=1 and type_code in @_fromPrimaryIds order by sort_id",
//"sql": {
// "oracle": null,
// "mysql": null,
// "sqlserver": null,
// "sqlite": null,
// "postgresql": null
//},
"connName": "ConnMsg",
"dimCacheKey": "dim-msg-target",
"name": "消息目标",
"fromExtend": true
},
2、\RG3.Web.Host.PaaS\Config\Mapper\basis\msg\mapper_bs-msg-chat-rel-target_sql__biz.dim.json
{
"rules": {},
"responseField": {},
"columns": {
"targetId": {
"filter": {
"method": "eq"
},
"editPropertie": {
"showMethodOut": "kv",
"showMethod": "text",
"type": null,
"format": null,
"defaultValue": null
},
"pagePropertie": {
"showMethodOut": "kv",
"showMethod": "text",
"type": null,
"format": null,
"defaultValue": null
},
"dimJoin": {
"fromDimField": "msgTarget"
//"allFilter": "parent_id==122"
},
"dimSqlRep": [
{
"key": "_fromPrimaryIds",
"value": "_filterDimTargetId",
"name": "targetId",
"alias": "target_id"
}
],
"tableId": 1,
"isData": true,
"isList": false,
"maxLength": 2
}
},
"dimDatas": {
"msgTarget": {
"extend": "msgTarget",
"dataFromType": "Database"
}
}
}
3、
\RG3.Web.Host.PaaS\Config\Bridge\basis\msg\bridge_bs-msg-chat-rel-target__biz.dim.json
{
"table": {
"columns": {
"targetId": {
"dim-data-name": null,
"sortId": 9999,
"alias": "target_id",
"field": "targetId",
"events": {},
"attrs": {
"type": "main",
"label": "推送目标",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-bs-msg-chat-rel-target",
"dimLocalKey": "dim-bs-msg-chat-rel-target",
"dimMkey": "bs-msg-chat-rel-target",
"dimResField": "manager",
"dimColumnField": "targetId",
"dimDataType": "string", //int string
"dimRemote": true,
"dimUrl": null,
"prop": "targetId",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-text",
"componentOp": "bs-select"
}
}
}
},
"form": {
"columns": {
"targetId": {
"sortId": 9999,
"alias": "target_id",
"field": "targetId",
"events": {},
"attrs": {
"label": "推送目标",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-bs-msg-chat-rel-target",
"dimLocalKey": "dim-bs-msg-chat-rel-target",
"dimMkey": "bs-msg-chat-rel-target",
"dimResField": "manager",
"dimColumnField": "targetId",
"dimDataType": "string",
"dimRemote": true,
"dimUrl": null,
"prop": "targetId",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
},
"search": {
"columns": {
"targetId": {
"sortId": 10000,
"alias": "target_id",
"field": "targetId",
"events": {},
"attrs": {
"placeholder": "推送目标",
"label": "推送目标",
"maxlength": 10,
"clearable": true,
"component-type": "custom",
"lazy-renger": true,
"multiple": false
},
"attrsInt": {},
"meta": {
"fromValue": true,
"dimSessionKey": "dim-bs-msg-chat-rel-target",
"dimLocalKey": "dim-bs-msg-chat-rel-target",
"dimMkey": "bs-msg-chat-rel-target",
"dimResField": "manager",
"dimColumnField": "targetId",
"dimDataType": "string",
"dimRemote": true,
"dimUrl": null,
"prop": "targetId",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
}
}
推送并令配置生效(build-mapper-used)
http://localhost:5775/auth/main-content
推送并令配置生效(build-bridge-used)
http://localhost:5775/auth/main-content
设置后效果
文档更新时间: 2023-06-12 11:35 作者:admin