ITSM

运维管理系统


自定义页面保存或更新

简要描述
  • 二开平台自定义页面保存或更新
请求URL
  • http://192.168.2.107:8080/ops/dataviewdev/dashboard/save
请求方式
  • POST
参数
调用示例
{
    "dashboard": {
        "name": "1111",
        "classificationId": "",
        "programId": "6be449ee8bf94741858321f3a38a4b25",
        "id": "106102a4c07f416e9d67b2504c0c0ed1",
        "fileDirName": "test",
    },
    "resourceNames": [
        "index.html"
    ],
    "resourceContents": [
        "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n  <meta charset=\"UTF-8\">\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n  <title id=\"pageTitle\"></title>\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"../../RenderDataView/modules/antd/antd.min.css\" />\n  <style type=\"text/css\">\n  .dg-dashboard{\n    position: absolute;\n    left: 0px;\n    right: 0px;\n    top: 0px;\n    bottom: 0px;\n  }\n  .dg-chart{\n    display: inline-block;\n    width: 100%;\n    height: 100%;\n    padding-top:20px;\n    box-sizing: border-box;\n  }\n  </style>\n</head>\n\n<body>\n  <div id=\"kanbanContainer\">\n    \n  </div>\n  <script src=\"../../RenderDataView/modules/jquery/jquery-3.4.1.min.js\"></script>\n  <script src=\"../../RenderDataView/modules/vue/vue.min.js\"></script>\n  <script src=\"../../RenderDataView/modules/vueGridLayout/vue-grid-layout.umd.min.js\"></script>\n  <script src=\"../../RenderDataView/modules/antd/moment.js\"></script>\n  <script src=\"../../RenderDataView/modules/antd/antd.min.js\"></script>\n  <script src=\"../../RenderDataView/modules/echarts/echarts.min.js\"></script>\n  <script type=\"module\" src=\"../main.js\"></script>\n</body>\n\n</html>"
    ]
}
返回示例
{
    "errorCode": 0,
    "message": "成功",
    "time": "2022-02-16 15:17:55",
    "responseBody": "106102a4c07f416e9d67b2504c0c0ed1"
}
返回参数说明
参数名 类型 说明
errorCode int 状态码
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML