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
20f7a929
authored
Jan 26, 2022
by
张蕴鹏
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
intent-demo
parent
22f4b5fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
241 additions
and
2 deletions
models/Example1.json
models/example_url.groovy
models/example_url.json
models/Example1.json
View file @
20f7a929
...
...
@@ -55,7 +55,8 @@
"type"
:
"text"
,
"default_value"
:
"object.name.value"
,
"label"
:
"name"
,
"property"
:
"name"
"property"
:
"name"
,
"required"
:
true
},
{
"type"
:
"number"
,
...
...
@@ -284,7 +285,7 @@
}
],
"row_actions"
:
[
"update"
],
"rowIntents"
:
[
"showDetail"
,
...
...
models/example_url.groovy
0 → 100644
View file @
20f7a929
class
example_url
{
def
model_name
=
"example_url"
}
\ No newline at end of file
models/example_url.json
0 → 100644
View file @
20f7a929
{
"table"
:
"example_url"
,
"database"
:
"intent_example"
,
"key_field"
:
"id"
,
"action_defs"
:
[
{
"name"
:
"insert"
,
"when"
:
"1"
,
"label"
:
"新增"
,
"prompt"
:
"执行新增之提示"
,
"container"
:
"dialog"
,
"parameters"
:
{
"server"
:
[
{
"result"
:
"env.user_id.value"
,
"property"
:
"uid"
}
],
"inputs"
:
[
{
"property"
:
"name"
,
"label"
:
"name"
,
"type"
:
"text"
},
{
"property"
:
"url"
,
"label"
:
"url"
,
"type"
:
"text"
}
]
},
"behavior"
:
"insert"
,
"forward"
:
""
},
{
"name"
:
"update"
,
"when"
:
"1"
,
"label"
:
"修改"
,
"prompt"
:
"执行修改之提示"
,
"container"
:
"dialog"
,
"parameters"
:
{
"server"
:
[
{
"result"
:
"env.user_id.value"
,
"property"
:
"uid"
}
],
"inputs"
:
[
{
"property"
:
"name"
,
"label"
:
"name"
,
"default_value"
:
"object.name.value"
,
"type"
:
"text"
},
{
"property"
:
"url"
,
"label"
:
"url"
,
"default_value"
:
"object.url.value"
,
"type"
:
"text"
}
]
},
"behavior"
:
"update"
,
"forward"
:
""
},
{
"name"
:
"delete"
,
"when"
:
"1"
,
"label"
:
"删除"
,
"prompt"
:
"执行删除之提示"
,
"container"
:
"dialog"
,
"parameters"
:
{
"server"
:
[
{
"result"
:
"env.user_id.value"
,
"property"
:
"uid"
}
],
"inputs"
:
[]
},
"behavior"
:
"delete"
,
"forward"
:
"close"
}
],
"mapping_defs"
:
[],
"joint_defs"
:
[],
"field_defs"
:
[
{
"property"
:
"id"
,
"type"
:
"number"
,
"label"
:
"id"
,
"format"
:
"0"
},
{
"property"
:
"name"
,
"type"
:
"text"
,
"label"
:
"name"
,
"format"
:
""
},
{
"property"
:
"url"
,
"type"
:
"text"
,
"label"
:
"url"
,
"format"
:
""
}
],
"calculator_defs"
:
[],
"group_sums"
:
[],
"list"
:
{
"label"
:
""
,
"filters"
:
[
{
"fields"
:
[
"name"
,
"url"
],
"width"
:
450
,
"label"
:
"文本搜索"
,
"type"
:
"combo_text"
,
"hint"
:
"name,url"
}
],
"actions"
:
[
"insert"
],
"field_groups"
:
[
{
"label"
:
"id"
,
"template"
:
"{id}"
},
{
"label"
:
"name"
,
"template"
:
"{name}"
},
{
"label"
:
"url"
,
"template"
:
"{url}"
}
],
"row_actions"
:
[],
"detail_action_visible"
:
true
,
"log_action_visible"
:
false
},
"detail"
:
{
"label"
:
""
,
"title_template"
:
""
,
"actions"
:
[
"delete"
],
"header"
:
{
"field_groups"
:
[
{
"label"
:
"id"
,
"template"
:
"{id}"
},
{
"label"
:
"name"
,
"template"
:
"{name}"
},
{
"label"
:
"url"
,
"template"
:
"{url}"
}
],
"actions"
:
[
"update"
]
},
"pages"
:
[
{
"name"
:
"detail_page_1"
,
"label"
:
"数据明细页1"
,
"sections"
:
[
{
"label"
:
"块头标题"
,
"field_groups"
:
[
{
"label"
:
"id"
,
"template"
:
"{id}"
},
{
"label"
:
"name"
,
"template"
:
"{name}"
},
{
"label"
:
"url"
,
"template"
:
"{url}"
}
],
"page_groups"
:
[],
"actions"
:
[
"update"
,
"delete"
]
}
]
}
]
},
"mini_detail"
:
{
"expand_first"
:
false
,
"pages"
:
[
{
"name"
:
"detail_page_1"
,
"label"
:
"数据明细页1"
,
"sections"
:
[
{
"label"
:
"块头标题"
,
"field_groups"
:
[
{
"label"
:
"id"
,
"template"
:
"{id}"
},
{
"label"
:
"name"
,
"template"
:
"{name}"
},
{
"label"
:
"url"
,
"template"
:
"{url}"
}
],
"page_groups"
:
[],
"actions"
:
[
"update"
,
"delete"
]
}
]
}
]
}
}
\ No newline at end of file
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