Commit f2520f94 by 罗建民

feat:intent支持插件和报表

parent 28f5704b
......@@ -157,4 +157,11 @@ class Example1 {
]
]
}
def getComponentProps() {
return [
"a":1,
"b":2
]
}
}
\ No newline at end of file
......@@ -670,6 +670,37 @@
"enabled": "1",
"parameters": {
}
},
{
"name": "showReport",
"label": "打开报表",
"model": "Example1",
"action": "showReport",
"container": "dialog",
"when": "1",
"enabled": "1",
"parameters": {
"domain": "intent-example",
"name":"test",
"url_params": {
"modelName": "Example1"
}
}
},
{
"name": "showComponent",
"label": "打开组件",
"model": "Example1",
"action": "showComponent",
"container": "dialog",
"when": "1",
"enabled": "1",
"parameters": {
"component": {
"name": "党员组织信息头",
"props": "{{host.invokeModelFunc('Example1','getComponentProps')}}"
}
}
}
],
"sectionDefs": [
......@@ -1083,6 +1114,61 @@
],
"detail_action_visible": true,
"log_action_visible": false
},
{
"name": "test1",
"label": "列表",
"filters": [
{
"label": "status",
"field": "status",
"type": "number"
},
{
"label": "文本搜索",
"width": 450,
"fields": [
"name",
"other"
],
"hint": "name,other",
"type": "combo_text"
}
],
"actions": [
],
"field_groups": [
{
"label": "id",
"template": "{id}",
"tagGroups": [
"意向级别"
]
},
{
"label": "name",
"template": "{name}"
},
{
"label": "status",
"template": "{status}"
},
{
"label": "other",
"template": "{other}"
}
],
"row_actions": [
],
"rowIntents": [
],
"intents": [
"showReport",
"showComponent"
],
"detail_action_visible": true,
"log_action_visible": false
}
],
"detail": {
......
{
"name": "test",
"label": "测试报表",
"filterDefs": [
{
"name": "exportDate",
"label": "导出日期",
"type": "date"
}
],
"dataDefs": [
{
"name": "exportHistory",
"model": {
"modelName": "general_download"
},
"filterMaps": [
{
"property": "scene_owner",
"operator": "=",
"value": "{{urlParams.modelName}}"
},
{
"property": "create_time",
"operator": "{{filters.exportDate.start.operator}}",
"value": "{{filters.exportDate.start.value}}"
},
{
"property": "create_time",
"operator": "{{filters.exportDate.end.operator}}",
"value": "{{filters.exportDate.end.value}}"
}
],
"children": []
}
],
"defaultRender": "测试报表",
"renderDefs": [
{
"name": "测试报表",
"templatePath": "测试报表.xlsx",
"pages": [
{
"label": "测试页",
"sections": [
{
"list": {
"foreach": "exportHistory",
"colStart": 0,
"colEnd": 6,
"headerRowStart": 0,
"headerRowEnd": 1,
"templateRowIndex": 2
}
}
]
}
]
}
]
}
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment