258 lines
5.4 KiB
XML
258 lines
5.4 KiB
XML
|
|
{
|
|
"id":"upapp_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"上位系统",
|
|
|
|
|
|
|
|
"description":"上位系统",
|
|
|
|
|
|
"toolbar":{
|
|
"tools": [
|
|
{
|
|
"name": "jumpin",
|
|
"label": "跳转到",
|
|
"selected_data": true
|
|
},
|
|
{
|
|
"selected_row": true,
|
|
"name": "upappkey",
|
|
"icon": "{{entire_url('/imgs/upappkey.svg')}}",
|
|
"label": "APIKEY"
|
|
},
|
|
{
|
|
"selected_row": true,
|
|
"name": "uapi",
|
|
"icon": "{{entire_url('/imgs/uapi.svg')}}",
|
|
"label": "API"
|
|
}
|
|
]
|
|
},
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_upapp.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_upapp.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_upapp.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_upapp.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"exclouded": [
|
|
"ownerid"
|
|
],
|
|
"alters": {}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"ownerid"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "id"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "上位应用名",
|
|
"type": "str",
|
|
"length": 200,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "上位应用名"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "text",
|
|
"default": "0",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "描述"
|
|
},
|
|
{
|
|
"name": "ownerid",
|
|
"title": "所属机构",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes",
|
|
"label": "所属机构",
|
|
"uitype": "code",
|
|
"valueField": "ownerid",
|
|
"textField": "ownerid_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('uapi')}}",
|
|
"table": "organization",
|
|
"tblvalue": "id",
|
|
"tbltext": "orgname",
|
|
"valueField": "ownerid",
|
|
"textField": "ownerid_text"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "apisetid",
|
|
"title": "api集id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "api集id"
|
|
},
|
|
{
|
|
"name": "secretkey",
|
|
"title": "加密密钥",
|
|
"type": "str",
|
|
"length": 100,
|
|
"cwidth": 18,
|
|
"uitype": "password",
|
|
"datatype": "str",
|
|
"label": "加密密钥"
|
|
},
|
|
{
|
|
"name": "baseurl",
|
|
"title": "系统url",
|
|
"type": "str",
|
|
"length": 500,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "系统url"
|
|
},
|
|
{
|
|
"name": "myappid",
|
|
"title": "我的appid",
|
|
"type": "str",
|
|
"length": 100,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "我的appid"
|
|
},
|
|
{
|
|
"name": "dynamic_func",
|
|
"title": "动态headers函数",
|
|
"type": "str",
|
|
"length": 255,
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "动态headers函数"
|
|
},
|
|
{
|
|
"name": "auth_apiname",
|
|
"title": "认证API名",
|
|
"type": "str",
|
|
"length": 200,
|
|
"nullable": "yes",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "认证API名"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[
|
|
{
|
|
"wid": "self",
|
|
"event": "jumpin",
|
|
"actiontype": "urlwidget",
|
|
"target": "self",
|
|
"options": {
|
|
"url": "{{entire_url('/uapi/jump_in.dspy')}}"
|
|
}
|
|
},
|
|
{
|
|
"wid": "self",
|
|
"event": "upappkey",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "APIKEY",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=upappkey",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "upappid",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../upappkey')}}"
|
|
}
|
|
},
|
|
{
|
|
"wid": "self",
|
|
"event": "uapi",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "API",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=uapi",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "upappid",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../uapi')}}"
|
|
}
|
|
}
|
|
]
|
|
|
|
} |