mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
73 lines
1.5 KiB
HTTP
73 lines
1.5 KiB
HTTP
### 创建新的表单字段配置 parentId 非必填
|
||
POST {{baseUrl}}/form/field-dict/createOrUpdate
|
||
Content-Type: application/json
|
||
Token: {{token}}
|
||
|
||
{
|
||
"name": "lizhw1",
|
||
"code": "lizhw2",
|
||
"sortOrder": 1,
|
||
"configType": "contactUnit",
|
||
"status": 1,
|
||
"otherFields": {
|
||
"unitTypeId": 28,
|
||
"unitTypeTitle": "冒烟测试1"
|
||
}
|
||
}
|
||
|
||
### 更新表单字段配置信息
|
||
POST {{baseUrl}}/form/field-dict/createOrUpdate
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"parentId": 4,
|
||
"configType": "contactUnit",
|
||
"name": "contactUnit名称",
|
||
"code": "123",
|
||
"sortOrder": 2,
|
||
"status": 1,
|
||
"otherFields": {}
|
||
}
|
||
|
||
### 根据ID获取表单字段配置,parentId 参数非必填
|
||
GET {{baseUrl}}/form/field-dict/getList?configType=contactUnit
|
||
Token: {{token}}
|
||
|
||
|
||
### 更新表单字段配置排序
|
||
POST {{baseUrl}}/form/field-dict/update-status?id=1&status=1
|
||
Token: {{token}}
|
||
|
||
### 删除表单字段配置,软删除
|
||
POST {{baseUrl}}/form/field-dict/delete?id=1
|
||
Token: {{token}}
|
||
|
||
|
||
### form/field-dict/page
|
||
GET {{baseUrl}}/form/field-dict/page?currentPage=0&numPerPage=10&configType=contactUnit&queryStr=2
|
||
Token: {{token}}
|
||
|
||
|
||
### /formService/field-dict/dict
|
||
POST {{baseUrl}}form/field-dict/dict
|
||
Content-Type: application/json
|
||
|
||
["contactUnit"]
|
||
|
||
### 根据ID获取表单字段配置
|
||
POST {{baseUrl}}/formService/field-dict/get
|
||
Content-Type: application/json
|
||
Token: {{token}}
|
||
|
||
{
|
||
"contactUnit": {
|
||
"tree": true,
|
||
"parentId": null,
|
||
"level": null
|
||
},
|
||
"unitContact": {
|
||
"tree": false,
|
||
"parentId": null,
|
||
"level": 1
|
||
}
|
||
} |