Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
uniplat-example
/
intent-example
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2520f94
authored
Jan 12, 2023
by
罗建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat:intent支持插件和报表
parent
28f5704b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
156 additions
and
0 deletions
models/Example1.groovy
models/Example1.json
reports/test.json
reports/测试报表.xlsx
models/Example1.groovy
View file @
f2520f94
...
...
@@ -157,4 +157,11 @@ class Example1 {
]
]
}
def
getComponentProps
()
{
return
[
"a"
:
1
,
"b"
:
2
]
}
}
\ No newline at end of file
models/Example1.json
View file @
f2520f94
...
...
@@ -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"
:
{
...
...
reports/test.json
0 → 100644
View file @
f2520f94
{
"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
reports/测试报表.xlsx
0 → 100644
View file @
f2520f94
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment