设置前效果
数据库字典值数据插入(新建需要替换对应的值)
\RG3.Web.Host.PaaS\Config\MapperDim\basis\mapper_dim_sys-state.json
[
{
"value": "default",
"name": "未知",
"type": "theme"
},
{
"value": "high-gloss-white",
"name": "高亮白",
"type": "theme"
},
{
"value": "technology-black",
"name": "科技黑",
"type": "theme"
},
{
"value": "glass-blue",
"name": "玻璃蓝",
"type": "theme"
},
{
"value": "lightyear-red",
"name": "光年红",
"type": "theme"
},
{
"value": "mimicry-purple",
"name": "磨砂紫",
"type": "theme"
},
{
"value": "orange-yellow",
"name": "橙子黄",
"type": "theme"
},
{
"value": "texture-gold",
"name": "纹理金",
"type": "theme"
}
]
1、进入接口工具(form-bs-select-bostate)mapper
mapper配置(mapper_bo-app-config-setting_sql__biz.dimfilestate.json)
\RG3.Web.Host.PaaS\Config\Mapper\basis\boapp\mapper_bo-app-config-setting_sql__biz.dimfilestate.json
{
"rules": {},
"responseField": {},
"columns": {
"appTheme": {
"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": "sysState",
"allFilter": "type=='theme'"
},
"dimSqlRep": [
{
"key": "_fromPrimaryIds",
"value": "_filterDimAppTheme",
"name": "appTheme",
"alias": "app_theme"
}
],
"tableId": 1,
"isData": true,
"isList": false,
"maxLength": 2
}
},
"dimDatas": {}
}
推送并令配置生效(build-mapper-used)
http://localhost:5775/auth/main-content
2、进入接口工具(form-bs-select-boenums)bridge
bridge配置(bridge_bo-app-config-setting__biz.dimfilestate.json)
\RG3.Web.Host.PaaS\Config\Bridge\basis\boapp\bridge_bo-app-config-setting__biz.dimfilestate.json
替换bo-app-config-setting、appTheme、app_theme、应用主题
dimDataType 根据实际改成int 或string
{
"table": {
"columns": {
"appTheme": {
"dim-data-name": null,
"sortId": 9999,
"alias": "app_theme",
"field": "appTheme",
"events": {},
"attrs": {
"type": "main",
"label": "应用主题",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-bo-app-config-setting",
"dimLocalKey": "dim-bo-app-config-setting",
"dimMkey": "bo-app-config-setting",
"dimResField": "manager",
"dimColumnField": "appTheme",
"dimDataType": "string", //int string
"dimRemote": true,
"dimUrl": null,
"prop": "appTheme",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-text",
"componentOp": "bs-select"
}
}
}
},
"form": {
"columns": {
"appTheme": {
"sortId": 9999,
"alias": "app_theme",
"field": "appTheme",
"events": {},
"attrs": {
"label": "应用主题",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-bo-app-config-setting",
"dimLocalKey": "dim-bo-app-config-setting",
"dimMkey": "bo-app-config-setting",
"dimResField": "manager",
"dimColumnField": "appTheme",
"dimDataType": "string",
"dimRemote": true,
"dimUrl": null,
"prop": "appTheme",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
},
"search": {
"columns": {
"appTheme": {
"sortId": 10000,
"alias": "app_theme",
"field": "appTheme",
"events": {},
"attrs": {
"placeholder": "应用主题",
"label": "应用主题",
"maxlength": 10,
"clearable": true,
"component-type": "custom",
"lazy-renger": true,
"multiple": false
},
"attrsInt": {},
"meta": {
"fromValue": true,
"dimSessionKey": "dim-bo-app-config-setting",
"dimLocalKey": "dim-bo-app-config-setting",
"dimMkey": "bo-app-config-setting",
"dimResField": "manager",
"dimColumnField": "appTheme",
"dimDataType": "string",
"dimRemote": true,
"dimUrl": null,
"prop": "appTheme",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
}
}
推送并令配置生效(build-bridge-used)
http://localhost:5775/auth/main-content
设置后效果
文档更新时间: 2023-06-12 11:17 作者:admin