介绍
1、通过监控值改变,来给自身赋值
https://doc.rg1008.com/docs/rg_pass_log/rg_pass_log-1e6ebhkgbjuk8
设置前效果
进入接口工具(build-mapper-used)
1、复制工具里面的内容到文件,然后修改对应字段名称
2、把内容复制到 mapper_zt-user-vip-info_sql__biz.dimboenums.json
C:\0_RG\Code\RG6.PF\rg3-pf\RG3.Web.Host.PaaS\Config\Mapper\basis\zentao\mapper_zt-user-vip-info_sql__biz.dimboenums.json
1、如vipValue字段值变更,并通知和把name赋予vipName
{
"rules": {},
"responseField": {},
"columns": {
//#region
"vipName": {
// 全局禁用,不受权限和前端控制
"enabled": false,
"extend": {
// 如果opinion有变更,把paramField参数对应的值赋予field
"paramField": "vipValueSn",
// 通知列,如果列变更了,通知列需要进行二次变更
"noticeField": "vipValue"
}
},
//#endregion
"vipValue": {
"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": "sysEnum",
"allFilter": "parent_id==122"
},
"dimSqlRep": [
{
"key": "_fromPrimaryIds",
"value": "_filterDimVipValue",
"name": "vipValue",
"alias": "vip_value"
}
],
"tableId": 1,
"isData": true,
"isList": false,
"maxLength": 2
}
},
"dimDatas": {}
}
推送并令配置生效(build-bridge-used)
http://localhost:5775/auth/main-content
进入接口工具(build-bridge-bs)
1、复制工具里面的内容到文件
C:\0_RG\Code\RG6.PF\rg3-pf\RG3.Web.Host.PaaS\Config\Bridge\basis\zentao\bridge_zt-user-vip-info.json
进入接口工具(build-bridge-used)
1、复制工具里面的内容到文件,然后修改对应字段名称
2、把内容复制到 bridge_zt-user-vip-info__biz.dimboenums.json
C:\0_RG\Code\RG6.PF\rg3-pf\RG3.Web.Host.PaaS\Config\Bridge\basis\zentao\bridge_zt-user-vip-info__biz.dimboenums.json
{
"table": {
"columns": {
"vipValue": {
"dim-data-name": null,
"sortId": 9999,
"alias": "vip_value",
"field": "vipValue",
"events": {},
"attrs": {
"type": "main",
"label": "VIP等级",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-zt-user-vip-info",
"dimLocalKey": "dim-zt-user-vip-info",
"dimMkey": "zt-user-vip-info",
"dimResField": "manager",
"dimColumnField": "vipValue",
"dimDataType": "int", //int string
"dimRemote": true,
"dimUrl": null,
"prop": "vipValue",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-text",
"componentOp": "bs-select"
}
}
}
},
"form": {
"columns": {
"vipValue": {
"sortId": 9999,
"alias": "vip_value",
"field": "vipValue",
"events": {},
"attrs": {
"label": "VIP等级",
"maxlength": 10,
"clearable": 10,
"multiple": false,
"remote": true,
"filterable": true
},
"meta": {
"edit": true,
"fromValue": true,
"dimSessionKey": "dim-zt-user-vip-info",
"dimLocalKey": "dim-zt-user-vip-info",
"dimMkey": "zt-user-vip-info",
"dimResField": "manager",
"dimColumnField": "vipValue",
"dimDataType": "int",
"dimRemote": true,
"dimUrl": null,
"prop": "vipValue",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
},
"search": {
"columns": {
"vipValue": {
"sortId": 10000,
"alias": "vip_value",
"field": "vipValue",
"events": {},
"attrs": {
"placeholder": "VIP等级",
"label": "VIP等级",
"maxlength": 10,
"clearable": true,
"component-type": "custom",
"lazy-renger": true,
"multiple": false
},
"attrsInt": {},
"meta": {
"fromValue": true,
"dimSessionKey": "dim-zt-user-vip-info",
"dimLocalKey": "dim-zt-user-vip-info",
"dimMkey": "zt-user-vip-info",
"dimResField": "manager",
"dimColumnField": "vipValue",
"dimDataType": "int",
"dimRemote": true,
"dimUrl": null,
"prop": "vipValue",
"rowId": 1,
"type": "basis",
"span": 12,
"auth": true,
"component": "bs-select"
}
}
}
}
}
推送并令配置生效(build-bridge-used)
http://localhost:5775/auth/main-content