- 公共功能
- 登录注册
- 工作区
- 邀请成员
- 通讯录(用户、部门、角色)
- 应用包
- 应用分组
- 应用
- 工作台
- 应用设置(表单引擎,流程引擎,拓展设置,应用发布)
- 应用展现层
- 公式
- 个人中心
- 企业管理
- 开放平台
- 官方网站
- 子管理员
- 报表
- 门户
- 购买相关
- OCR
- 代码生成
- 数据导入
- 流程测试
- 考勤
- 农业大屏
- 应用模板商城
- 应用包上线配置
- study
- 站内信
- sand测试流程测试模板
- 测试接口
- 响水大屏
- tplus
- 协办
- 费用管控
- 首页相关内容
- pm
- 水产养殖
- 应用商城
- 联系我们
- 图零后台管理
- 知识库
- doris相关
- Ai后台管理
- CRM二
- 自建应用设置
- EHR二期
- APP应用测试
- 未命名接口GET
- 数据上报GET
保存门户配置
开发中
PUT
/dash/save
暂无描述
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
id
integer
宫格内组件id
components
array [object {7}]
组件配置
type
integer
可选
position
object
组件位置和尺寸
chartConfig
object
报表设置
filterConfig
object
筛选配置
gridConfig
object
宫格设置
linkConfig
object
链接设置
textConfig
object
文本设置
示例
{
"id": 302,
"components": [
{
"type": 1,
"position": {
"pc": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
},
"mobile": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
}
},
"chartConfig": {
"appId": 249,
"chartId": 1,
"chartName": "测试图表",
"chartType": 1,
"dataSourceType": 1,
"remark": "备注内容",
"remarkStatus": false
},
"filterConfig": {
"filters": [
{
"groupConfig": [
{
"judgeType": 1,
"judgeValue": [
{
"id": 1,
"value": "123",
"otherInfo": ""
}
],
"condition": [
{
"chartId": 1,
"chartName": "测试报表",
"fid": "123123",
"field": "单行文本",
"typeId": 1
}
],
"itemId": "1",
"itemName": "筛选1"
}
],
"groupId": "1",
"groupName": "筛选组"
}
]
},
"gridConfig": {
"showTitle": true,
"gridId": "123",
"gridTitle": "宫格",
"items": [
{
"id": "123",
"gridId": "3455",
"type": 1,
"customTitleStatus": true,
"customTitle": "组件1",
"icon": "123.png",
"jumpMode": 1,
"appId": 1,
"dashId": 1,
"gatherId": 1,
"jumpType": 1,
"link": "http://www.baidu.com",
"title": "百度一下"
}
]
},
"linkConfig": {
"url": "http://www.baidu.com"
},
"textConfig": {
"text": "<p>0123123</p>"
}
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.tolink.cloud/dash/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 302,
"components": [
{
"type": 1,
"position": {
"pc": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
},
"mobile": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
}
},
"chartConfig": {
"appId": 249,
"chartId": 1,
"chartName": "测试图表",
"chartType": 1,
"dataSourceType": 1,
"remark": "备注内容",
"remarkStatus": false
},
"filterConfig": {
"filters": [
{
"groupConfig": [
{
"judgeType": 1,
"judgeValue": [
{
"id": 1,
"value": "123",
"otherInfo": ""
}
],
"condition": [
{
"chartId": 1,
"chartName": "测试报表",
"fid": "123123",
"field": "单行文本",
"typeId": 1
}
],
"itemId": "1",
"itemName": "筛选1"
}
],
"groupId": "1",
"groupName": "筛选组"
}
]
},
"gridConfig": {
"showTitle": true,
"gridId": "123",
"gridTitle": "宫格",
"items": [
{
"id": "123",
"gridId": "3455",
"type": 1,
"customTitleStatus": true,
"customTitle": "组件1",
"icon": "123.png",
"jumpMode": 1,
"appId": 1,
"dashId": 1,
"gatherId": 1,
"jumpType": 1,
"link": "http://www.baidu.com",
"title": "百度一下"
}
]
},
"linkConfig": {
"url": "http://www.baidu.com"
},
"textConfig": {
"text": "<p>0123123</p>"
}
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
示例:-
data
object
返回数据
components
array [object {7}]
组件配置
msg
string
返回文字描述
示例
{
"code": 0,
"data": {
"components": [
{
"type": 1,
"position": {
"mobile": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
},
"pc": {
"cols": 6,
"rows": 12,
"x": 0,
"y": 0
}
},
"chartConfig": {
"appId": 249,
"chartId": 1,
"chartName": "测试图表",
"chartType": 1,
"dataSourceType": 1
},
"filterConfig": {
"filters": [
{
"groupConfig": [
{
"judgeType": 1,
"judgeValue": [
{
"id": 1,
"value": "123",
"otherInfo": ""
}
],
"condition": [
{
"chartId": 1,
"chartName": "测试报表",
"fid": "123123",
"field": "单行文本",
"typeId": 1
}
],
"itemId": "1",
"itemName": "筛选1"
}
],
"groupId": "1",
"groupName": "筛选组"
}
]
},
"gridConfig": {
"showTitle": true,
"gridId": "123",
"gridTitle": "宫格",
"items": [
{
"id": "123",
"customTitleStatus": true,
"customTitle": "组件1",
"icon": "123.png",
"jumpMode": 1,
"appId": 1,
"dashId": 1,
"gatherId": 1,
"link": "http://www.baidu.com",
"title": "百度一下",
"type": 1
}
]
},
"linkConfig": {
"url": "http://www.baidu.com"
},
"textConfig": {
"text": "<p>0123123</p>"
}
}
]
},
"msg": "success"
}
🟢200错误
修改于 2023-06-08 08:07:04