﻿{
  "pages": [
    {
      "id": "2",
      "icon": "",
      "path": "cord",
      "label": "\u589E\u5220\u6539\u67E5",
      "schema": {
        "type": "page",
        "title": "\u589E\u5220\u6539\u67E5",
        "body": [
          {
            "type": "input-text",
            "label": "\u6587\u672C",
            "name": "text",
            "id": "u:8c92a59a57fc"
          }
        ],
        "id": "u:13966f931678",
        "asideResizor": false,
        "pullRefresh": {
          "disabled": true
        },
        "definitions": {}
      }
    },
    {
      "id": "2",
      "icon": "fa fa-spotify",
      "path": "mode",
      "label": "\u6A21\u5757\u7BA1\u7406",
      "schema": {
        "type": "page",
        "title": "\u6A21\u5757\u7BA1\u7406",
        "body": [
          {
            "type": "button",
            "label": "\u6309\u94AE",
            "onEvent": {
              "click": {
                "actions": []
              }
            },
            "id": "u:0b56012dfbf2"
          }
        ],
        "id": "u:58601b9a2ff6",
        "asideResizor": false,
        "pullRefresh": {
          "disabled": true
        },
        "regions": [
          "body"
        ],
        "data": {
          "cpu": 8,
          "ta": "wwwwww"
        }
      }
    },
    {
      "id": "2",
      "icon": "fa fa-snapchat-ghost",
      "path": "User",
      "label": "\u7528\u6237\u7BA1\u7406",
      "schema": {
        "type": "page",
        "title": "\u7528\u6237\u7BA1\u7406",
        "body": [
          {
            "type": "service",
            "body": [
              {
                "type": "crud",
                "syncLocation": false,
                "api": {
                  "method": "get",
                  "url": "fun://UsersList",
                  "messages": {},
                  "requestAdaptor": "",
                  "adaptor": ""
                },
                "bulkActions": [],
                "itemActions": [],
                "id": "u:054b2a8b691b",
                "perPageAvailable": [
                  5,
                  10,
                  20,
                  50,
                  100
                ],
                "messages": {},
                "alwaysShowPagination": true,
                "title": "",
                "showIndex": true,
                "footerToolbar": [
                  {
                    "type": "statistics"
                  },
                  {
                    "type": "pagination",
                    "showPageInput": true
                  },
                  {
                    "type": "switch-per-page",
                    "tpl": "\u5185\u5BB9",
                    "wrapperComponent": "",
                    "id": "u:549c659147fd"
                  },
                  {
                    "type": "export-excel",
                    "tpl": "\u5185\u5BB9",
                    "wrapperComponent": "",
                    "id": "u:01383c4f506a"
                  },
                  {
                    "type": "export-csv",
                    "tpl": "\u5185\u5BB9",
                    "wrapperComponent": "",
                    "id": "u:97c30f494c5e"
                  },
                  {
                    "type": "load-more",
                    "tpl": "\u5185\u5BB9",
                    "wrapperComponent": "",
                    "id": "u:92eb3d56cf39"
                  }
                ],
                "autoFillHeight": false,
                "mode": "table",
                "headerToolbar": [
                  {
                    "label": "\u65B0\u589E",
                    "type": "button",
                    "actionType": "dialog",
                    "level": "primary",
                    "editorSetting": {
                      "behavior": "create"
                    },
                    "dialog": {
                      "type": "dialog",
                      "title": "\u65B0\u589E",
                      "body": [
                        {
                          "type": "form",
                          "api": {
                            "method": "post",
                            "url": "fun://UsersCreate",
                            "messages": {},
                            "requestAdaptor": "",
                            "adaptor": "return response;"
                          },
                          "body": [
                            {
                              "name": "Account",
                              "label": "\u8D26\u6237",
                              "row": 0,
                              "type": "input-text",
                              "id": "u:df2e4dadc561"
                            },
                            {
                              "name": "Username",
                              "label": "\u540D\u79F0",
                              "row": 1,
                              "type": "input-text",
                              "id": "u:a3970c8b2b7a"
                            },
                            {
                              "name": "Role",
                              "label": "\u89D2\u8272",
                              "row": 2,
                              "type": "input-text",
                              "id": "u:b91cbef822df"
                            }
                          ],
                          "id": "u:4e7d3063790b",
                          "actions": [
                            {
                              "type": "button",
                              "label": "\u53D6\u6D88",
                              "onEvent": {
                                "click": {
                                  "actions": [
                                    {
                                      "actionType": "cancel",
                                      "componentId": "u:4e7d3063790b"
                                    }
                                  ]
                                }
                              },
                              "level": "default"
                            },
                            {
                              "type": "button",
                              "label": "\u63D0\u4EA4",
                              "onEvent": {
                                "click": {
                                  "actions": [
                                    {
                                      "actionType": "submit",
                                      "componentId": "u:4e7d3063790b"
                                    }
                                  ]
                                }
                              },
                              "level": "primary"
                            }
                          ],
                          "feat": "Insert",
                          "dsType": "api",
                          "labelAlign": "top",
                          "title": "\u8868\u5355",
                          "mode": "flex",
                          "resetAfterSubmit": true
                        }
                      ],
                      "actionType": "dialog",
                      "id": "u:ed8df58592f6",
                      "actions": [
                        {
                          "type": "button",
                          "actionType": "cancel",
                          "label": "\u53D6\u6D88",
                          "id": "u:3516dbd7abad"
                        },
                        {
                          "type": "button",
                          "actionType": "confirm",
                          "label": "\u786E\u5B9A",
                          "primary": true,
                          "id": "u:7860ee0853ef"
                        }
                      ],
                      "showCloseButton": true,
                      "closeOnOutside": false,
                      "closeOnEsc": false,
                      "showErrorMsg": true,
                      "showLoading": true,
                      "draggable": false
                    },
                    "id": "u:4ba7c8e55b6a"
                  },
                  "bulkActions"
                ],
                "selectable": false,
                "autoGenerateFilter": {
                  "columnsNum": 5,
                  "showBtnToolbar": false
                },
                "columns": [
                  {
                    "name": "Id",
                    "label": "ID",
                    "type": "text",
                    "id": "u:0045102abeff",
                    "placeholder": "-",
                    "sortable": true
                  },
                  {
                    "type": "text",
                    "name": "Account",
                    "label": "\u8D26\u6237",
                    "id": "u:a112cf25979f",
                    "sortable": true,
                    "searchable": {
                      "type": "select",
                      "name": "select",
                      "label": "\u5B57\u6BB5\u9009\u62E9:",
                      "placeholder": "\u8BF7\u9009\u62E9\u67E5\u8BE2\u7684\u5B57\u6BB5",
                      "id": "u:be113b4fe41d",
                      "multiple": false,
                      "align": "right",
                      "options": [
                        {
                          "label": "\u8D26\u6237\u540D",
                          "value": "Account"
                        },
                        {
                          "label": "\u540D\u79F0",
                          "value": "Username"
                        },
                        {
                          "label": "\u89D2\u8272",
                          "value": "Role"
                        }
                      ]
                    }
                  },
                  {
                    "type": "text",
                    "label": "\u540D\u79F0",
                    "name": "Username",
                    "id": "u:a4b950e8c758",
                    "sortable": true,
                    "searchable": {
                      "type": "input-text",
                      "name": "key",
                      "label": "\u5173\u952E\u5B57:",
                      "placeholder": "\u8BF7\u8F93\u5165\u8981\u67E5\u8BE2\u7684\u5185\u5BB9",
                      "id": "u:28ad9a0dc920"
                    }
                  },
                  {
                    "type": "text",
                    "name": "Role",
                    "label": "\u89D2\u8272",
                    "id": "u:69affcb1fa5b",
                    "searchable": {
                      "type": "input-datetime-range",
                      "name": "begin",
                      "label": "\u65E5\u671F\u8303\u56F4",
                      "extraName": "end",
                      "id": "u:15dfde120733",
                      "displayFormat": "YYYY-MM-DD HH:mm:ss",
                      "placeholder": "\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4\u8303\u56F4",
                      "valueFormat": "X",
                      "minDate": "",
                      "maxDate": "",
                      "value": "",
                      "shortcuts": [
                        "yesterday",
                        "7daysago",
                        "prevweek",
                        "thismonth",
                        "prevmonth",
                        "prevquarter"
                      ]
                    },
                    "sortable": true
                  },
                  {
                    "type": "tpl",
                    "name": "UpdatedTime",
                    "label": "\u66F4\u65B0\u65F6\u95F4",
                    "id": "u:2685a6de83c5",
                    "tpl": "${UpdatedTime | date:YYYY-MM-DD HH\\:mm\\:ss:YYYY-MM-DDTHH\\:mm\\:ssZ}",
                    "placeholder": "-",
                    "sortable": true,
                    "searchable": {
                      "label": "\u67E5\u8BE2\u6A21\u5F0F",
                      "name": "mode",
                      "type": "switch",
                      "onText": "\u7CBE\u51C6",
                      "offText": "\u6A21\u7CCA",
                      "value": "1",
                      "trueValue": "0",
                      "falseValue": "1",
                      "id": "u:8198af66bff5"
                    }
                  },
                  {
                    "type": "status",
                    "name": "IsActive",
                    "label": "\u6FC0\u6D3B",
                    "id": "u:b3fdcc28e07a"
                  },
                  {
                    "type": "mapping",
                    "name": "Status",
                    "map": {
                      "0": "\u003Cspan class=\u0027label label-info\u0027\u003E\u672A\u767B\u5F55\u003C/span\u003E",
                      "1": "\u003Cspan class=\u0027label label-success\u0027\u003E\u5DF2\u767B\u5F55\u003C/span\u003E",
                      "2": "\u003Cspan class=\u0027label label-danger\u0027\u003E\u6682\u505C\u003C/span\u003E",
                      "3": "\u003Cspan class=\u0027label label-warning\u0027\u003E\u505C\u7528\u003C/span\u003E",
                      "*": "\u5176\u4ED6\uFF1A${Status}"
                    },
                    "id": "u:dce314497ad3",
                    "label": "\u72B6\u6001"
                  },
                  {
                    "type": "operation",
                    "label": "\u64CD\u4F5C",
                    "buttons": [
                      {
                        "label": "\u7F16\u8F91",
                        "type": "button",
                        "actionType": "dialog",
                        "level": "link",
                        "editorSetting": {
                          "behavior": "update"
                        },
                        "dialog": {
                          "type": "dialog",
                          "title": "\u7F16\u8F91",
                          "body": [
                            {
                              "type": "form",
                              "api": {
                                "method": "post",
                                "url": "fun://UsersUpdate",
                                "adaptor": "return response;",
                                "requestAdaptor": "",
                                "messages": {}
                              },
                              "initApi": "",
                              "body": [
                                {
                                  "name": "Id",
                                  "label": "ID:",
                                  "row": 0,
                                  "type": "input-text",
                                  "id": "u:1f0a49088c78",
                                  "static": true,
                                  "labelAlign": "left"
                                },
                                {
                                  "name": "Account",
                                  "label": "\u8D26\u6237:",
                                  "row": 1,
                                  "type": "input-text",
                                  "id": "u:506e19c89577",
                                  "static": true,
                                  "readOnly": false,
                                  "labelAlign": "left"
                                },
                                {
                                  "name": "Username",
                                  "label": "\u540D\u79F0",
                                  "row": 2,
                                  "type": "input-text",
                                  "id": "u:89b6eee18260"
                                },
                                {
                                  "name": "Role",
                                  "label": "\u89D2\u8272",
                                  "row": 3,
                                  "type": "input-text",
                                  "id": "u:0f7c566c1d9d"
                                },
                                {
                                  "name": "IsActive",
                                  "label": "\u6FC0\u6D3B",
                                  "row": 4,
                                  "type": "select",
                                  "id": "u:22daf43b74ff",
                                  "multiple": false,
                                  "options": [
                                    {
                                      "label": "",
                                      "value": ""
                                    },
                                    {
                                      "label": "\u672A\u6FC0\u6D3B",
                                      "value": false
                                    },
                                    {
                                      "label": "\u6FC0\u6D3B",
                                      "value": true
                                    }
                                  ]
                                },
                                {
                                  "name": "Status",
                                  "label": "\u72B6\u6001",
                                  "row": 5,
                                  "type": "input-number",
                                  "id": "u:ea73243b696d",
                                  "multiple": false
                                }
                              ],
                              "id": "u:9b2e553d5478",
                              "actions": [
                                {
                                  "type": "button",
                                  "label": "\u53D6\u6D88",
                                  "onEvent": {
                                    "click": {
                                      "actions": [
                                        {
                                          "actionType": "cancel",
                                          "componentId": "u:9b2e553d5478"
                                        }
                                      ]
                                    }
                                  },
                                  "level": "default"
                                },
                                {
                                  "type": "button",
                                  "label": "\u63D0\u4EA4",
                                  "onEvent": {
                                    "click": {
                                      "actions": [
                                        {
                                          "actionType": "submit",
                                          "componentId": "u:9b2e553d5478"
                                        }
                                      ]
                                    }
                                  },
                                  "level": "primary"
                                }
                              ],
                              "feat": "Edit",
                              "dsType": "api",
                              "labelAlign": "top",
                              "title": "\u8868\u5355",
                              "mode": "flex",
                              "resetAfterSubmit": true
                            }
                          ],
                          "actionType": "dialog",
                          "id": "u:29d5a77c0f2c",
                          "actions": [
                            {
                              "type": "button",
                              "actionType": "cancel",
                              "label": "\u53D6\u6D88",
                              "id": "u:d0cf002a387b"
                            },
                            {
                              "type": "button",
                              "actionType": "confirm",
                              "label": "\u786E\u5B9A",
                              "primary": true,
                              "id": "u:12996e5bfdd5",
                              "disabledOnAction": false
                            }
                          ],
                          "showCloseButton": true,
                          "closeOnOutside": false,
                          "closeOnEsc": false,
                          "showErrorMsg": true,
                          "showLoading": true,
                          "draggable": false
                        },
                        "id": "u:e50dce599cc5",
                        "disabledOnAction": false
                      },
                      {
                        "label": "\u67E5\u770B",
                        "type": "button",
                        "actionType": "dialog",
                        "level": "link",
                        "editorSetting": {
                          "behavior": "view"
                        },
                        "dialog": {
                          "type": "dialog",
                          "title": "\u67E5\u770B\u8BE6\u60C5",
                          "body": [
                            {
                              "type": "form",
                              "initApi": "",
                              "body": [
                                {
                                  "name": "Id",
                                  "label": "ID:",
                                  "row": 0,
                                  "type": "static",
                                  "id": "u:3480310f8314",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "Account",
                                  "label": "\u8D26\u6237:",
                                  "row": 1,
                                  "type": "static",
                                  "id": "u:e48ae8f7b8d8",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "Username",
                                  "label": "\u540D\u79F0:",
                                  "row": 2,
                                  "type": "static",
                                  "id": "u:fe3e88b2519a",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "Role",
                                  "label": "\u89D2\u8272:",
                                  "row": 3,
                                  "type": "static",
                                  "id": "u:c82aa5e24ae0",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "UpdatedTime",
                                  "label": "\u66F4\u65B0\u65F6\u95F4:",
                                  "row": 4,
                                  "type": "static",
                                  "id": "u:269b226e9f2a",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "IsActive",
                                  "label": "\u6FC0\u6D3B:",
                                  "row": 5,
                                  "type": "static",
                                  "id": "u:38e7fd4a05bb",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "Status",
                                  "label": "\u72B6\u6001:",
                                  "row": 6,
                                  "type": "static",
                                  "id": "u:fb67e41f8d06",
                                  "mode": "horizontal"
                                },
                                {
                                  "name": "CreatedTime",
                                  "label": "\u521B\u5EFA\u65F6\u95F4:",
                                  "row": 7,
                                  "type": "static",
                                  "id": "u:d8ec2fd215a8",
                                  "mode": "horizontal"
                                }
                              ],
                              "id": "u:c2f9c0b34ead",
                              "actions": [
                                {
                                  "type": "button",
                                  "label": "\u53D6\u6D88",
                                  "onEvent": {
                                    "click": {
                                      "actions": [
                                        {
                                          "actionType": "cancel",
                                          "componentId": "u:704a44f6ee5d"
                                        }
                                      ]
                                    }
                                  },
                                  "level": "default"
                                },
                                {
                                  "type": "button",
                                  "label": "\u63D0\u4EA4",
                                  "onEvent": {
                                    "click": {
                                      "actions": [
                                        {
                                          "actionType": "submit",
                                          "componentId": "u:704a44f6ee5d"
                                        }
                                      ]
                                    }
                                  },
                                  "level": "primary"
                                }
                              ],
                              "feat": "View",
                              "dsType": "api",
                              "labelAlign": "top",
                              "title": "\u8868\u5355",
                              "mode": "flex",
                              "static": true
                            }
                          ],
                          "actionType": "dialog",
                          "id": "u:dbdd44966fa2",
                          "actions": [
                            {
                              "type": "button",
                              "actionType": "cancel",
                              "label": "\u53D6\u6D88",
                              "id": "u:45788f2b46e2"
                            },
                            {
                              "type": "button",
                              "actionType": "confirm",
                              "label": "\u786E\u5B9A",
                              "primary": true,
                              "id": "u:8936a38edf0a",
                              "disabledOnAction": false
                            }
                          ],
                          "showCloseButton": true,
                          "closeOnOutside": false,
                          "closeOnEsc": false,
                          "showErrorMsg": true,
                          "showLoading": true,
                          "draggable": false,
                          "withDefaultData": true,
                          "dataMapSwitch": true
                        },
                        "id": "u:92151e339260"
                      },
                      {
                        "type": "button",
                        "label": "\u5220\u9664",
                        "actionType": "ajax",
                        "level": "link",
                        "className": "text-danger",
                        "confirmText": "\u786E\u5B9A\u8981\u5220\u9664\uFF1F",
                        "api": {
                          "method": "post",
                          "url": "fun://UsersDelete",
                          "messages": {},
                          "requestAdaptor": "",
                          "adaptor": "return response;"
                        },
                        "editorSetting": {
                          "behavior": "delete"
                        },
                        "id": "u:3b402083858d",
                        "disabledOnAction": false
                      }
                    ],
                    "id": "u:edd1360e3b50"
                  }
                ],
                "filter": null
              }
            ],
            "id": "u:4f2310fce69e",
            "dsType": "api",
            "data": {
              "zuangtai": "[\u0022\u672A\u767B\u5F55\u0022,\u0022\u5DF2\u767B\u9646\u0022,\u0022\u505C\u7528\u0022]"
            }
          },
          {
            "type": "service",
            "body": [
              {
                "id": "u:21db58a02eb5",
                "type": "form",
                "title": "\u8868\u5355",
                "mode": "flex",
                "labelAlign": "top",
                "dsType": "api",
                "body": [
                  {
                    "type": "editor",
                    "label": "\u4EE3\u7801\u7F16\u8F91\u5668",
                    "name": "editor1",
                    "row": 0,
                    "id": "u:1fa030f4772d",
                    "language": "json"
                  },
                  {
                    "type": "editor",
                    "label": "\u4EE3\u7801\u7F16\u8F91\u5668",
                    "name": "editor2",
                    "row": 1,
                    "id": "u:a771690f42a4",
                    "language": "json"
                  },
                  {
                    "type": "tpl",
                    "tpl": "${editor1}",
                    "inline": true,
                    "wrapperComponent": "",
                    "row": 2,
                    "id": "u:4cdb651026e1"
                  },
                  {
                    "type": "button",
                    "label": "\u6309\u94AE",
                    "onEvent": {
                      "click": {
                        "actions": [
                          {
                            "ignoreError": false,
                            "outputVar": "responseResult",
                            "actionType": "ajax",
                            "options": {},
                            "api": {
                              "url": "/Amis/route/Get",
                              "method": "get",
                              "requestAdaptor": "",
                              "adaptor": "console.info(\u0022\u4FE1\u606F\u0022, response);\r\nreturn {\r\n  status: 0,\r\n  msg: \u0022\u706B\u6740\u8BB0\u5F97\u54C8\u0022,\r\n  data: {\r\n    editor1: { editor1: response.data.pages }\r\n  }\r\n};",
                              "messages": {}
                            }
                          },
                          {
                            "componentId": "u:21db58a02eb5",
                            "ignoreError": false,
                            "actionType": "setValue",
                            "args": {
                              "value": "${editor1}"
                            }
                          }
                        ]
                      }
                    },
                    "row": 3,
                    "id": "u:64b5a05002ca",
                    "disabledOnAction": false
                  }
                ],
                "actions": [
                  {
                    "type": "button",
                    "label": "\u63D0\u4EA4",
                    "onEvent": {
                      "click": {
                        "actions": [
                          {
                            "actionType": "submit",
                            "componentId": "u:21db58a02eb5"
                          }
                        ]
                      }
                    },
                    "level": "primary",
                    "id": "u:bebd05d1f93c"
                  }
                ],
                "resetAfterSubmit": true,
                "debug": true,
                "feat": "Insert",
                "data": {
                  "editor1": "123456"
                }
              }
            ],
            "id": "u:9fca10253d4e",
            "dsType": "api"
          },
          {
            "type": "grid",
            "columns": [
              {
                "body": [],
                "id": "u:adcc03ac81e4"
              },
              {
                "body": [
                  {
                    "type": "tag",
                    "label": "\u7528\u6237\u540D\u79F0",
                    "color": "#30bf13",
                    "id": "u:4f6030279da9",
                    "displayMode": "normal"
                  }
                ],
                "id": "u:6ffea24ee0e1",
                "md": "auto",
                "valign": "middle"
              },
              {
                "body": [
                  {
                    "type": "button",
                    "label": "\u9000\u51FA",
                    "onEvent": {
                      "click": {
                        "actions": []
                      }
                    },
                    "id": "u:03b86c84e908",
                    "disabledOnAction": false
                  }
                ],
                "id": "u:674acd3a23ec",
                "valign": "bottom",
                "md": "auto"
              }
            ],
            "id": "u:1178f5f6f3f6"
          }
        ],
        "id": "u:738f953bb3ee",
        "asideResizor": false,
        "pullRefresh": {
          "disabled": true
        },
        "regions": [
          "body"
        ],
        "definitions": {}
      }
    }
  ],
  "theme": "cxd",
  "asideFixed": true,
  "asideFolded": false,
  "offScreen": false,
  "addPageIsOpen": false,
  "preview": false,
  "isMobile": false,
  "schema": {
    "type": "page",
    "title": "\u6A21\u5757\u7BA1\u7406",
    "body": [
      {
        "type": "button",
        "label": "\u6309\u94AE",
        "onEvent": {
          "click": {
            "actions": []
          }
        },
        "id": "u:0b56012dfbf2"
      }
    ],
    "id": "u:58601b9a2ff6",
    "asideResizor": false,
    "pullRefresh": {
      "disabled": true
    },
    "regions": [
      "body"
    ],
    "data": {
      "cpu": 8,
      "ta": "wwwwww"
    }
  }
}