add docs
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"title": "@functionName@",
|
||||
"type": "page",
|
||||
"body": {
|
||||
"type": "crud",
|
||||
"tableClassName": "myGridHeader_a",
|
||||
"name": "dataList",
|
||||
"api": {
|
||||
"method": "post",
|
||||
"url": "${ls:base_ip}/xapi/v2/${ls:base_db}/orm_api_v2/3/",
|
||||
"data": {
|
||||
"token": "${ls:token}",
|
||||
"page": "${page}",
|
||||
"perPage": "${perPage}",
|
||||
"keywords": "${keywords}",
|
||||
@aside_filter@
|
||||
@query_type_data@
|
||||
"_$_tableName": "@TableName@",
|
||||
"_$_pk": "@pk@",
|
||||
"_$_action": "P",
|
||||
"_$_query_filter": "1^10^@pk@^*^^@menuid@^@Filters@^${ls:query_id}"
|
||||
},
|
||||
"dataType": "form"
|
||||
},
|
||||
"syncLocation": false,
|
||||
"perPage": 10,
|
||||
"headerToolbar": [
|
||||
{
|
||||
"type": "search-box",
|
||||
"name": "keywords",
|
||||
"align": "left",
|
||||
"placeholder": "全文檢索"
|
||||
},
|
||||
{
|
||||
"type": "columns-toggler",
|
||||
"align": "right"
|
||||
},
|
||||
{
|
||||
"type": "drag-toggler",
|
||||
"align": "right"
|
||||
},
|
||||
{
|
||||
"type": "pagination",
|
||||
"align": "right"
|
||||
}
|
||||
],
|
||||
"footerToolbar": [
|
||||
"statistics",
|
||||
"switch-per-page",
|
||||
"pagination"
|
||||
],
|
||||
"columns": [
|
||||
@Fields_By_GridView@
|
||||
{
|
||||
"type": "operation",
|
||||
"label": "操作",
|
||||
"width": @op-width@,
|
||||
"buttons": [
|
||||
{
|
||||
"type": "button",
|
||||
"icon": "fa fa-eye",
|
||||
"actionType": "dialog",
|
||||
"tooltip": "查看",
|
||||
"dialog": {
|
||||
"title": "查看",
|
||||
"size": "@formsize@",
|
||||
"body": {
|
||||
"type": "form",
|
||||
"mode": "horizontal",
|
||||
"horizontal": {
|
||||
"leftFixed": true
|
||||
},
|
||||
@init_api_org@
|
||||
"body": [
|
||||
@Fields_By_View@
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user