自定义页面保存或更新
<h5>简要描述</h5>
<ul>
<li>二开平台自定义页面保存或更新</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://192.168.2.107:8080/ops/dataviewdev/dashboard/save</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<h5>调用示例</h5>
<pre><code>{
"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>"
]
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
"errorCode": 0,
"message": "成功",
"time": "2022-02-16 15:17:55",
"responseBody": "106102a4c07f416e9d67b2504c0c0ed1"
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">errorCode</td>
<td style="text-align: left;">int</td>
<td>状态码</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>