POST DataCenter/GetMenuItemConfig
获取基础档案/报表的配置信息,用于展示基础档案/报表的布局。
请求信息
请求URI参数
无
请求数据参数
基础档案/报表信息
MenuItemInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| key |
档案关键字 |
字符串 |
无 |
| title |
档案标题,可用做菜单名称 |
字符串 |
无 |
| type |
基础档案:archives(支持编辑信息) 报表:report (有汇总信息) |
字符串 |
无 |
| condition |
档案过滤条件 |
Collection of DataItemInfo |
无 |
请求数据格式
application/json, text/json
例子:
{
"key": "sample string 1",
"title": "sample string 2",
"type": "sample string 3",
"condition": [
{
"key": "sample string 1",
"value": "sample string 2"
},
{
"key": "sample string 1",
"value": "sample string 2"
}
]
}
响应数据
资源说明
基础档案/报表的配置信息
ResultInfoOfMenuItemConfigInfo| 名称 | 说明 | 类型 | 扩展说明 |
|---|---|---|---|
| code | ResultCode |
无 |
|
| msg | 字符串 |
无 |
|
| data | MenuItemConfigInfo |
无 |
响应数据格式
application/json, text/json
例子:
{
"code": "SUCCESS",
"msg": "sample string 1",
"data": {
"key": "sample string 1",
"title": "sample string 2",
"primary_key": "sample string 3",
"condition": [
{
"mode": 1,
"title": "sample string 2",
"tooltip": "sample string 3",
"map": "sample string 4",
"logic": "sample string 5",
"value": "sample string 6",
"format": "sample string 7",
"source": [
{
"key": "sample string 1",
"value": "sample string 2"
},
{
"key": "sample string 1",
"value": "sample string 2"
}
]
},
{
"mode": 1,
"title": "sample string 2",
"tooltip": "sample string 3",
"map": "sample string 4",
"logic": "sample string 5",
"value": "sample string 6",
"format": "sample string 7",
"source": [
{
"key": "sample string 1",
"value": "sample string 2"
},
{
"key": "sample string 1",
"value": "sample string 2"
}
]
}
],
"button_list": [
{
"image": "sample string 1",
"action": "sample string 2",
"tooltip": "sample string 3",
"enabled": "sample string 4",
"hidden": "sample string 5"
},
{
"image": "sample string 1",
"action": "sample string 2",
"tooltip": "sample string 3",
"enabled": "sample string 4",
"hidden": "sample string 5"
}
],
"field_list": [
{
"map": "sample string 1",
"title": "sample string 2",
"align": 3,
"width": 4,
"hidden": true,
"format": "sample string 6",
"fore_color": "sample string 7",
"back_color": "sample string 8",
"bold": true,
"italic": true,
"wrap": true,
"edit_config": {
"type": 1,
"source_type": 2,
"source": "sample string 3",
"must_input": true,
"readonly": true,
"regex": "sample string 6",
"max_length": 7
}
},
{
"map": "sample string 1",
"title": "sample string 2",
"align": 3,
"width": 4,
"hidden": true,
"format": "sample string 6",
"fore_color": "sample string 7",
"back_color": "sample string 8",
"bold": true,
"italic": true,
"wrap": true,
"edit_config": {
"type": 1,
"source_type": 2,
"source": "sample string 3",
"must_input": true,
"readonly": true,
"regex": "sample string 6",
"max_length": 7
}
}
],
"total_field_list": [
{
"map": "sample string 1",
"title": "sample string 2",
"align": 3,
"width": 4,
"hidden": true,
"format": "sample string 6",
"fore_color": "sample string 7",
"back_color": "sample string 8",
"bold": true,
"italic": true,
"wrap": true,
"edit_config": {
"type": 1,
"source_type": 2,
"source": "sample string 3",
"must_input": true,
"readonly": true,
"regex": "sample string 6",
"max_length": 7
}
},
{
"map": "sample string 1",
"title": "sample string 2",
"align": 3,
"width": 4,
"hidden": true,
"format": "sample string 6",
"fore_color": "sample string 7",
"back_color": "sample string 8",
"bold": true,
"italic": true,
"wrap": true,
"edit_config": {
"type": 1,
"source_type": 2,
"source": "sample string 3",
"must_input": true,
"readonly": true,
"regex": "sample string 6",
"max_length": 7
}
}
]
}
}