ASTRO轻应用 ASTROZERO-根据ID查询标准页面:响应示例

时间:2024-07-01 09:06:42

响应示例

{
	"resCode": "0",
	"resMsg": "成功",
        "result": {
             "active": false,
             "application": null,
             "belongTo": "000f000001DHIByJ3nKC",
             "belongTo.__objectType": "Application",
             "belongTo.name": "",
             "createdBy": "10gd000001DHHEwmE1NQ",
             "createdBy.__objectType": "User",
             "createdBy.name": "test00xx",
             "createdDate": "2024-05-22 16:02:55",
             "custom": true,
             "customStyle": null,
             "description": null,
             "events": [{
                "action": "[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.formSave()\\r\\n\"}}]",
                "belongTo": null,
                "createdBy": "10gd000001DHHEwmE1NQ",
                "createdBy.__objectType": "User",
                "createdBy.name": "test00xx",
                "createdDate": "2024-05-22 16:02:55",
                "custom": true,
                "id": "003h000001DHkGa8bjhA",
                "installedPackage": null,
                "lastModifiedBy": "10gd000001DHHEwmE1NQ",
                "lastModifiedBy.__objectType": "User",
                "lastModifiedBy.name": "test00xx",
                "lastModifiedDate": "2024-05-22 16:02:55",
                "name": "button_0_click",
                "owner": "10gd000001DHHEwmE1NQ",
                "owner.__objectType": "User",
                "owner.name": "test00xx",
                "protectMode": 0,
                "view": "003g000001DHkGa4LkkC",
                "view.__objectType": "View",
                "view.name": "__layout__Test__ApprovedResource__ CS T__detail",
                "visibility": 0
               },
               {
                "action": "[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.resetFields()\\r\\n\"}}]",
                "belongTo": null,
                "createdBy": "10gd000001DHHEwmE1NQ",
                "createdBy.__objectType": "User",
                "createdBy.name": "test00xx",
                "createdDate": "2024-05-22 16:02:55",
                "custom": true,
                "id": "003h000001DHkGa8tKpE",
                "installedPackage": null,
                "lastModifiedBy": "10gd000001DHHEwmE1NQ",
                "lastModifiedBy.__objectType": "User",
                "lastModifiedBy.name": "test00xx",
                "lastModifiedDate": "2024-05-22 16:02:55",
                "name": "button_1_click",
                "owner": "10gd000001DHHEwmE1NQ",
                "owner.__objectType": "User",
                "owner.name": "test00xx",
                "protectMode": 0,
                "view": "003g000001DHkGa4LkkC",
                "view.__objectType": "View",
                "view.name": "__layout__Test__ApprovedResource__CST__detail",
                "visibility": 0
               }
             ],
             "id": "003g000001DHkGa4LkkC",
             "installedPackage": null,
             "label": "Test__ApprovedResource__CST Detail",
             "lastModifiedBy": "10gd000001DHHEwmE1NQ",
             "lastModifiedBy.__objectType": "User",
             "lastModifiedBy.name": "test00xx",
             "lastModifiedDate": "2024-05-22 16:02:55",
             "layer": "null",
             "libraries": "[]",
             "lockTime": "",
             "lockUser": "",
             "logo": null,
             "name": "__layout__Test__ApprovedResource__CST__detail",
             "overridable": true,
             "owner": "10gd000001DHHEwmE1NQ",
             "owner.__objectType": "User",
             "owner.name": "test00xx",
             "pageType": null,
             "protectMode": 0,
             "referencePageId": null,
             "type": "Page",
             "version": "1.0.1",
             "viewData": "{\"key\":1,\"type\":\"DesignerPage\",\"props\":{\"name\":\"DesignerPage_1\"},\"elements\":[{\"key\":1538107283948000,\"type\":\"form\",\"props\":{\"labelPosition\":\"top\",\"labelWidth\":120,\"name\":\"form_0\",\"dataSource\":\"Test__ApprovedResource__CST\",\"dataSourceType\":\"Entity\",\"layout\":{\"key\":\"one_one_one\",\"value\":[8,8,8]},\"dataSourceId\":\"Test__ApprovedResource__CST\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535715199303019,\"type\":\"title\",\"props\":{\"text\":\"ApprovedResource\",\"value\":\"ApprovedResource\",\"class\":\"form-title-container\",\"name\":\"title_1\"},\"attrs\":{},\"on\":{},\"elements\":[]},{\"key\":1535715199303039,\"type\":\"container\",\"props\":{\"name\":\"container_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535715199303036,\"type\":\"layoutgrid\",\"props\":{\"name\":\"layoutgrid_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428500,\"type\":\"row\",\"props\":{\"layout\":{\"pc\":{\"key\":\"one_one_one\",\"value\":[8,8,8]},\"pad\":{\"key\":\"pad1\",\"value\":[24]},\"phone\":{\"key\":\"phone1\",\"value\":[24]}},\"name\":\"row_0\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428501,\"type\":\"col\",\"props\":{\"align\":\"left\",\"lg\":8,\"md\":8,\"sm\":24,\"xs\":24,\"name\":\"col_3\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1888001472428502,\"dataBinding\":{\"default\":{\"model\":[\"form_0\",\"name\"]}},\"type\":\"input\",\"props\":{\"type\":\"text\",\"dataField\":\"name\",\"dataFieldType\":\"xs_string\",\"label\":\"{\\\"en_US\\\":\\\"Name\\\",\\\"zh_CN\\\":\\\"名称\\\"}\",\"name\":\"input_1716364974936\",\"readonly\":false}}]}]}]},{\"key\":1535946611880038,\"type\":\"container\",\"props\":{\"align\":\"center\",\"class\":\"form-buttons-container\",\"name\":\"container_1\"},\"attrs\":{},\"on\":{},\"elements\":[{\"key\":1535946611880036,\"type\":\"button\",\"props\":{\"text\":\"{\\\"en_US\\\":\\\"Save\\\",\\\"fr_FR\\\":\\\"\\\",\\\"ja_JP\\\":\\\"\\\",\\\"zh_CN\\\":\\\"保存\\\"}\",\"style\":\"margin-right:20px;\",\"type\":\"primary\",\"name\":\"button_0\"},\"attrs\":{},\"on\":{\"click\":{\"actions\":[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.formSave()\\r\\n\"}}],\"graph\":\"\",\"serviceList\":[]}},\"elements\":[]},{\"key\":1535946611880037,\"type\":\"button\",\"props\":{\"text\":\"{\\\"en_US\\\":\\\"Reset\\\",\\\"fr_FR\\\":\\\"\\\",\\\"ja_JP\\\":\\\"\\\",\\\"zh_CN\\\":\\\"重置\\\"}\",\"style\":\"\",\"name\":\"button_1\"},\"attrs\":{},\"on\":{\"click\":{\"actions\":[{\"type\":\"$core.execJSCode\",\"options\":{\"content\":\"// Current Component\\r\\nlet _component = context.getCurrentComponent()\\r\\n\\r\\n// Current Form\\r\\nlet  _form = _component.getForm()\\r\\n\\r\\n_form.resetFields()\\r\\n\"}}],\"graph\":\"\",\"serviceList\":[]}},\"elements\":[]}]}]}],\"dataBinding\":{\"default\":{\"model\":[\"form_0\"]}}}],\"dependencies\":[{\"names\":{\"extendNames\":[],\"pageMasterNames\":[],\"cardNames\":[]}}],\"version\":\"1.0.2\"}",
             "viewModel": "{\"form_0\":{\"mapping\":[{\"bindType\":\"object\",\"bindName\":\"Test__ApprovedResource__CST\",\"include\":\"ALL\",\"exclude\":\"\"}],\"fields\":[{\"name\":\"form_0\",\"label\":\"form_0\",\"type\":\"object\",\"isRequired\":false,\"defaultValue\":{},\"expand\":false,\"orign\":[{\"type\":\"Test__ApprovedResource__CST\",\"name\":\"Test__ApprovedResource__CST\",\"mappingField\":\"Test__ApprovedResource__CST\"}],\"rootInstanceId\":\"form_0\",\"_uid\":0},{\"name\":\"name\",\"label\":\"{\\\"en_US\\\":\\\"Name\\\",\\\"zh_CN\\\":\\\"名称\\\"}\",\"type\":\"xs_string\",\"orign\":[{\"type\":\"object\",\"name\":\"Test__ApprovedResource__CST\",\"mappingField\":\"name\"}],\"parentId\":\"form_0\",\"expand\":false,\"rootInstanceId\":\"form_0\",\"_uid\":1}],\"actions\":[{\"name\":\"query\",\"type\":\"object\",\"method\":\"query\",\"uri\":\"Test__ApprovedResource__CST\",\"input\":[],\"output\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"save\",\"type\":\"object\",\"method\":\"save\",\"uri\":\"Test__ApprovedResource__CST\",\"output\":[],\"input\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"delete\",\"type\":\"object\",\"method\":\"delete\",\"uri\":\"Test__ApprovedResource__CST\",\"output\":[],\"input\":[{\"fieldName\":\"name\",\"mappingField\":\"name\"}]},{\"name\":\"count\",\"type\":\"object\",\"method\":\"count\",\"uri\":\"Test__ApprovedResource__CST\",\"input\":[],\"output\":[]}]}}",
             "visibility": 0
    }
}
support.huaweicloud.com/api-astrozero/astrozero_api_0006.html