【平台组件】开窗复杂搜索后端搜索怎么使用静态参数?
开窗复杂搜索后端搜索怎么使用静态参数? 开窗搜索可以带静态参数。第一种使用方法:在 openWindowService.getOpenWindowDefine 传入 actionParams 。
示例如下:
"openWindowDefine": {
...
"getDataAction": {
...
"dataSourceSet": {
"dataSourceList": [
{
...
"action": {
...
"actionParams": [
{
name: 'task_template_parameter_info.manage_status', // name 为开发平台 M.MF 如图 1
type: 'ACTIVE_ROW_CONSTANT', // 常量
value: 'V', // type: 'ACTIVE_ROW_CONSTANT' 的 value 就是常量的值
required: false,
},
]
}
}
]
}
}
},
第二种方式:在 openWindowService.getOpenWindowDefine 传入paras
"openWindowDefine": {
...
"getDataAction": {
...
"dataSourceSet": {
"dataSourceList": [
{
...
"action": {
...
"paras": {
: {
: ...,
}
},
}
}
]
}
}
},
推荐使用paras
页:
[1]