身份编辑表单
开发中
GET
/system/role/update/form/{id}
身份管理
{
"status": 200,
"message": "success",
"data": {
"rule": [
{
"type": "input",
"field": "role_name",
"value": "",
"title": "身份名称",
"props": {
"type": "text",
"placeholder": "请输入身份名称"
},
"validate": [
{
"message": "请输入身份名称",
"required": true,
"type": "string",
"trigger": "change"
}
]
},
{
"type": "tree",
"field": "roles",
"value": [],
"title": "权限",
"props": {
"type": "checked",
"data": [
{
"id": 13,
"title": "商城配置",
"children": [
{
"id": 16,
"title": "二级",
"children": [
{
"id": 17,
"title": "三级",
"children": []
}
]
},
{
"id": 20,
"title": "测试",
"children": []
},
{
"id": 21,
"title": "123123",
"children": []
},
{
"id": 24,
"title": "45",
"children": []
},
{
"id": 25,
"title": "8",
"children": []
}
]
},
{
"id": 14,
"title": "系统配置",
"children": [
{
"id": 15,
"title": "配置分类",
"children": []
}
]
}
]
}
},
{
"type": "switch",
"field": "status",
"value": 0,
"title": "是否开启",
"props": {
"activeValue": 1,
"inactiveValue": 0
}
}
],
"action": "/admin/system/menu/create.html",
"method": "POST",
"title": "添加菜单",
"config": {}
}
}
请求参数
Path 参数
id
string
id
Header 参数
x-token
string
可选
默认值:
{{x-token}}
示例代码
返回响应
修改于 2022-12-29 08:57:41