[
  {
    "type": "service",
    "body": [
      {
        "type": "crud",
        "syncLocation": false,
        "api": {
          "method": "get",
          "url": "http://localhost:3001/api/products"
        },
        "bulkActions": [],
        "itemActions": [],
        "id": "u:c09f49e9f50a",
        "perPageAvailable": [
          5,
          10,
          20,
          50,
          100
        ],
        "messages": {},
        "headerToolbar": [
          {
            "label": "新增",
            "type": "button",
            "actionType": "dialog",
            "level": "primary",
            "editorSetting": {
              "behavior": "create"
            },
            "dialog": {
              "type": "dialog",
              "title": "新增",
              "body": [
                {
                  "type": "form",
                  "api": {
                    "method": "post",
                    "url": "http://localhost:3001/api/products"
                  },
                  "body": [
                    {
                      "name": "name",
                      "label": "名称:",
                      "row": 0,
                      "type": "input-text",
                      "id": "u:ffc4d749f287",
                      "labelAlign": "right"
                    },
                    {
                      "name": "price",
                      "label": "价格:",
                      "row": 1,
                      "type": "input-text",
                      "id": "u:90acf709da0c",
                      "labelAlign": "right"
                    },
                    {
                      "name": "description",
                      "label": "描述:",
                      "row": 2,
                      "type": "input-text",
                      "id": "u:8d65aa5fa8f5",
                      "labelAlign": "right"
                    }
                  ],
                  "id": "u:8f9945a4ef3c",
                  "actions": [
                    {
                      "type": "button",
                      "label": "取消",
                      "onEvent": {
                        "click": {
                          "actions": [
                            {
                              "actionType": "cancel",
                              "componentId": "u:8f9945a4ef3c"
                            }
                          ]
                        }
                      },
                      "level": "default"
                    },
                    {
                      "type": "button",
                      "label": "提交",
                      "onEvent": {
                        "click": {
                          "actions": [
                            {
                              "actionType": "submit",
                              "componentId": "u:8f9945a4ef3c"
                            }
                          ]
                        }
                      },
                      "level": "primary"
                    }
                  ],
                  "feat": "Insert",
                  "dsType": "api",
                  "labelAlign": "top",
                  "title": "表单",
                  "mode": "flex",
                  "resetAfterSubmit": true
                }
              ],
              "actionType": "dialog",
              "id": "u:56329cb5c1d2",
              "actions": [
                {
                  "type": "button",
                  "actionType": "cancel",
                  "label": "取消",
                  "id": "u:24450155f0d9"
                },
                {
                  "type": "button",
                  "actionType": "confirm",
                  "label": "确定",
                  "primary": true,
                  "id": "u:30742ff00bc4"
                }
              ],
              "showCloseButton": true,
              "closeOnOutside": false,
              "closeOnEsc": false,
              "showErrorMsg": true,
              "showLoading": true,
              "draggable": false
            },
            "id": "u:3bf956cf290f"
          },
          "bulkActions"
        ],
        "alwaysShowPagination": true,
        "autoFillHeight": false,
        "showIndex": true,
        "columns": [
          {
            "name": "id",
            "label": "id",
            "type": "text",
            "id": "u:875e65960fed",
            "placeholder": "-"
          },
          {
            "name": "name",
            "label": "名称",
            "type": "text",
            "id": "u:5f03e89023af"
          },
          {
            "type": "text",
            "label": "价格",
            "name": "price",
            "id": "u:88a2a447f945"
          },
          {
            "type": "text",
            "label": "描述",
            "name": "description",
            "id": "u:0890572adf39"
          },
          {
            "type": "operation",
            "label": "操作",
            "buttons": [
              {
                "label": "编辑",
                "type": "button",
                "actionType": "dialog",
                "level": "link",
                "editorSetting": {
                  "behavior": "update"
                },
                "dialog": {
                  "type": "dialog",
                  "title": "编辑",
                  "body": [
                    {
                      "type": "form",
                      "api": {
                        "method": "post",
                        "url": "http://localhost:3001/api/products/update",
                        "requestAdaptor": "",
                        "adaptor": "",
                        "messages": {}
                      },
                      "initApi": "",
                      "body": [
                        {
                          "name": "id",
                          "label": "id",
                          "row": 0,
                          "type": "input-text",
                          "id": "u:34f7c4fa5251"
                        },
                        {
                          "name": "name",
                          "label": "名称",
                          "row": 1,
                          "type": "input-text",
                          "id": "u:e8b9ec44185c"
                        },
                        {
                          "name": "price",
                          "label": "价格",
                          "row": 2,
                          "type": "input-text",
                          "id": "u:c75c249799a7"
                        },
                        {
                          "name": "description",
                          "label": "描述",
                          "row": 3,
                          "type": "input-text",
                          "id": "u:37f7de9d4d9f"
                        }
                      ],
                      "id": "u:645cc2cd4a5d",
                      "actions": [
                        {
                          "type": "button",
                          "label": "取消",
                          "onEvent": {
                            "click": {
                              "actions": [
                                {
                                  "actionType": "cancel",
                                  "componentId": "u:645cc2cd4a5d"
                                }
                              ]
                            }
                          },
                          "level": "default"
                        },
                        {
                          "type": "button",
                          "label": "提交",
                          "onEvent": {
                            "click": {
                              "actions": [
                                {
                                  "actionType": "submit",
                                  "componentId": "u:645cc2cd4a5d"
                                }
                              ]
                            }
                          },
                          "level": "primary"
                        }
                      ],
                      "feat": "Edit",
                      "dsType": "api",
                      "labelAlign": "top",
                      "title": "表单",
                      "mode": "flex",
                      "resetAfterSubmit": true
                    }
                  ],
                  "actionType": "dialog",
                  "id": "u:f9d77e0dede3",
                  "actions": [
                    {
                      "type": "button",
                      "actionType": "cancel",
                      "label": "取消",
                      "id": "u:18895f898c6a"
                    },
                    {
                      "type": "button",
                      "actionType": "confirm",
                      "label": "确定",
                      "primary": true,
                      "id": "u:09a3182b6d68"
                    }
                  ],
                  "showCloseButton": true,
                  "closeOnOutside": false,
                  "closeOnEsc": false,
                  "showErrorMsg": true,
                  "showLoading": true,
                  "draggable": true
                },
                "id": "u:38aef8b588ae",
                "disabledOnAction": false
              },
              {
                "label": "查看",
                "type": "button",
                "actionType": "dialog",
                "level": "link",
                "editorSetting": {
                  "behavior": "view"
                },
                "dialog": {
                  "type": "dialog",
                  "title": "查看详情",
                  "body": [
                    {
                      "type": "form",
                      "initApi": "",
                      "body": [
                        {
                          "name": "id",
                          "label": "id",
                          "row": 0,
                          "type": "static",
                          "id": "u:a06f37c04e5a"
                        },
                        {
                          "name": "name",
                          "label": "名称",
                          "row": 1,
                          "type": "static",
                          "id": "u:c93cd096a7d1"
                        },
                        {
                          "name": "price",
                          "label": "价格",
                          "row": 2,
                          "type": "static",
                          "id": "u:407a3d28c85b"
                        },
                        {
                          "name": "description",
                          "label": "描述",
                          "row": 3,
                          "type": "static",
                          "id": "u:d1f9b67e016e"
                        }
                      ],
                      "id": "u:cd2f3fff92f8",
                      "actions": [
                        {
                          "type": "button",
                          "label": "取消",
                          "onEvent": {
                            "click": {
                              "actions": [
                                {
                                  "actionType": "cancel",
                                  "componentId": "u:f6d72c7280a0"
                                }
                              ]
                            }
                          },
                          "level": "default"
                        },
                        {
                          "type": "button",
                          "label": "提交",
                          "onEvent": {
                            "click": {
                              "actions": [
                                {
                                  "actionType": "submit",
                                  "componentId": "u:f6d72c7280a0"
                                }
                              ]
                            }
                          },
                          "level": "primary"
                        }
                      ],
                      "feat": "View",
                      "dsType": "api",
                      "labelAlign": "top",
                      "title": "表单",
                      "mode": "flex",
                      "static": true
                    }
                  ],
                  "actionType": "dialog",
                  "id": "u:23185555db72",
                  "actions": [
                    {
                      "type": "button",
                      "actionType": "cancel",
                      "label": "取消",
                      "id": "u:299f8a0b580a"
                    },
                    {
                      "type": "button",
                      "actionType": "confirm",
                      "label": "确定",
                      "primary": true,
                      "id": "u:e46aacea2e13",
                      "disabledOnAction": false
                    }
                  ]
                },
                "id": "u:62d7a7931cd7"
              },
              {
                "type": "button",
                "label": "删除",
                "actionType": "ajax",
                "level": "link",
                "className": "text-danger",
                "confirmText": "确定要删除？",
                "api": {
                  "method": "post",
                  "url": "http://localhost:3001/api/products/delete"
                },
                "editorSetting": {
                  "behavior": "delete"
                },
                "id": "u:903ef40d518e",
                "disabledOnAction": false,
                "onEvent": {}
              }
            ],
            "id": "u:37f009b0f2fa"
          }
        ]
      }
    ],
    "id": "u:5352f6cc4818",
    "dsType": "api",
    "className": ""
  }
]