Commit 20f7a929 by 张蕴鹏

intent-demo

parent 22f4b5fa
...@@ -55,7 +55,8 @@ ...@@ -55,7 +55,8 @@
"type": "text", "type": "text",
"default_value": "object.name.value", "default_value": "object.name.value",
"label": "name", "label": "name",
"property": "name" "property": "name",
"required": true
}, },
{ {
"type": "number", "type": "number",
...@@ -284,7 +285,7 @@ ...@@ -284,7 +285,7 @@
} }
], ],
"row_actions": [ "row_actions": [
"update"
], ],
"rowIntents": [ "rowIntents": [
"showDetail", "showDetail",
......
class example_url {
def model_name = "example_url"
}
\ No newline at end of file
{
"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
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