作者:管理员  历史版本:1  最后编辑:龚清  更新时间:2024-11-20 15:41

根据流程定义标识复制表单权限

简述:

  • 根据流程定义标识复制表单权限

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:
名称 类型 是否必须 默认值 备注 其他信息
bpmFormPermissionVo body 流程表单权限对象

请求参数示例:

{
  "newFlowKey": "Process_0i4ijlf",
  "oldFlowKey": "Process_0ffwb2k"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": null
}

返回参数说明:

名称 类型 备注
data Void

获取表单权限信息

简述:

  • 获取表单权限信息

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

FormRightsPo 对象信息

名称 类型 是否必须 默认值 备注
id String 主键
formKey String 表单KEY
code String 字段ID
name String 字段名
permission String 权限
type String 权限类型
rightsType String 表单权限范围
flowKey String 流程定义KEY
nodeId String 节点ID
parentFlowKey String 父流程定义KEY

请求参数示例:

{
    "formKey": "ugyu",
    "flowKey": null,
    "nodeId": null,
    "parentflowKey": null,
    "isInst": false,
    "rightsScope": "form",
    "rightsType": "form"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": {
        "table": [
            {
                "label": "ugyu",
                "name": "qjsqbd",
                "isMain": "Y",
                "fields": [
                    {
                        "name": "id",
                        "code": "qjsqbd",
                        "field_type": "hidden",
                        "label": "主键",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "xingMing",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "姓名",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "buMen",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "部门",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "leiBie",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "类别",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "shiYou",
                        "code": "qjsqbd",
                        "field_type": "textarea",
                        "label": "事由",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "qiShiShiJian",
                        "code": "qjsqbd",
                        "field_type": "datePicker",
                        "label": "起始时间",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "jieShuRiQi",
                        "code": "qjsqbd",
                        "field_type": "datePicker",
                        "label": "结束日期",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "tianShu",
                        "code": "qjsqbd",
                        "field_type": "number",
                        "label": "天数",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "zhiWuDaiLiRen",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "职务代理人",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "zhiShuZhuGuan",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "直属主管",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "buMenJingLi",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "部门经理",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    },
                    {
                        "name": "zongJingLi",
                        "code": "qjsqbd",
                        "field_type": "text",
                        "label": "总经理",
                        "read": [
                            {
                                "type": "all"
                            }
                        ],
                        "edit": [
                            {
                                "type": "all"
                            }
                        ],
                        "required": [
                            {
                                "type": "none",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ],
                        "hide": [
                            {
                                "type": "all",
                                "rightsId": "",
                                "rightsName": ""
                            }
                        ]
                    }
                ]
            }
        ],
        "opinion": []
    }
}

返回参数说明:

名称 类型 备注
data Map<String, List< JSONObject >>

根据权限对象获取表单权限

简述:

  • 根据权限对象获取表单权限

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

FormPermissionVo 对象信息

名称 类型 是否必须 默认值 备注
userId String
formKey String
rightsScope RightsScope
rightsScopeStr String
rightsMap Map<String, String>

RightsScope 对象信息

名称 类型 是否必须 默认值 备注
key String
label String

请求参数示例:

{
  "formKey": "ugyu",
  "rightsMap": {
    "flowKey": "",
    "nodeId": "",
    "parentFlowKey": "null"
  },
  "rightsScopeStr": "form",
  "userId": "1"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": "{\"tables\":{},\"opinions\":{},\"fields\":{\"buMenJingLi\":\"b\",\"qiShiShiJian\":\"b\",\"zongJingLi\":\"b\",\"leiBie\":\"b\",\"zhiWuDaiLiRen\":\"b\",\"zhiShuZhuGuan\":\"b\",\"tianShu\":\"b\",\"buMen\":\"b\",\"id\":\"b\",\"shiYou\":\"b\",\"jieShuRiQi\":\"b\",\"xingMing\":\"b\"}}"
}

返回参数说明:

名称 类型 备注
data String

查询

简述:

  • 根据传入id查询,并返回表单权限信息

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:
名称 类型 是否必须 默认值 备注 其他信息
flowKey string 流程定义key
formKey string 表单key
rightsScope string form 权限类型
  • Body:

暂无

请求参数示例:

http://192.168.3.230:15100/ibps/business/v3/form/rights/getPermissionByUserId?flowKey=&formKey=&rightsScope=form

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": "{\"tables\":{},\"opinions\":{},\"fields\":{\"buMenJingLi\":\"e\",\"qiShiShiJian\":\"e\",\"zongJingLi\":\"e\",\"leiBie\":\"e\",\"zhiWuDaiLiRen\":\"e\",\"zhiShuZhuGuan\":\"e\",\"tianShu\":\"e\",\"buMen\":\"e\",\"id\":\"e\",\"shiYou\":\"e\",\"jieShuRiQi\":\"e\",\"xingMing\":\"e\"}}"
}

返回参数说明:

名称 类型 备注
data String

根据流程定义标识删除表单权限

简述:

  • 根据流程定义标识删除表单权限

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:
名称 类型 是否必须 默认值 备注 其他信息
flowKey string 流程定义key
  • Body:

暂无

请求参数示例:

http://192.168.3.230:15100/ibps/business/v3/form/rights/removeByFlowKey?flowKey=test

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": null
}

返回参数说明:

名称 类型 备注
data Void

重置流程表单权限

简述:

  • 重置流程表单权限

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

PermissionVo 对象信息

名称 类型 是否必须 默认值 备注
primaryPermission String 原始权限数据,json数组
permission String 权限数据,json数组

请求参数示例:

{
    "permission": "{\"field_type\":\"text\",\"label\":\"姓名\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]}"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": null
}

返回参数说明:

名称 类型 备注
data Void

初始化表单权限设置

简述:

  • 初始化表单权限设置

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

FormRightsPo 对象信息

名称 类型 是否必须 默认值 备注
id String 主键
formKey String 表单KEY
code String 字段ID
name String 字段名
permission String 权限
type String 权限类型
rightsType String 表单权限范围
flowKey String 流程定义KEY
nodeId String 节点ID
parentFlowKey String 父流程定义KEY

请求参数示例:

{
    "formKey": "ugyu",
    "flowKey": null,
    "nodeId": null,
    "parentflowKey": null,
    "isInst": false,
    "rightsScope": "form",
    "rightsType": "form"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "重置表单权限设置成功!",
    "cause": "",
    "variables": {
        "id": null
    },
    "data": null
}

返回参数说明:

名称 类型 备注
data Void

保存流程表单权限

简述:

  • 保存流程表单权限

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

PermissionVo 对象信息

名称 类型 是否必须 默认值 备注
primaryPermission String 原始权限数据,json数组
permission String 权限数据,json数组

请求参数示例:

{
    "permission": "{\"field_type\":\"text\",\"label\":\"姓名\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]}"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "",
    "cause": "",
    "variables": {},
    "data": null
}

返回参数说明:

名称 类型 备注
data Void

保存表单权限信息

简述:

  • 保存表单权限信息

请求URL:

请求方式:

  • POST

请求参数:

  • Headers:
名称 类型 是否必须 默认值 备注 其他信息
X-Authorization-access_token String 系统令牌
  • Query:

暂无

  • Body:

FormRightsPo 对象信息

名称 类型 是否必须 默认值 备注
id String 主键
formKey String 表单KEY
code String 字段ID
name String 字段名
permission String 权限
type String 权限类型
rightsType String 表单权限范围
flowKey String 流程定义KEY
nodeId String 节点ID
parentFlowKey String 父流程定义KEY

请求参数示例:

{
    "permission": "{\"field\":[{\"name\":\"id\",\"code\":\"qjsqbd\",\"field_type\":\"hidden\",\"label\":\"主键\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"xingMing\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"姓名\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"buMen\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"部门\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"leiBie\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"类别\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"shiYou\",\"code\":\"qjsqbd\",\"field_type\":\"textarea\",\"label\":\"事由\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"qiShiShiJian\",\"code\":\"qjsqbd\",\"field_type\":\"datePicker\",\"label\":\"起始时间\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"jieShuRiQi\",\"code\":\"qjsqbd\",\"field_type\":\"datePicker\",\"label\":\"结束日期\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"tianShu\",\"code\":\"qjsqbd\",\"field_type\":\"number\",\"label\":\"天数\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"zhiWuDaiLiRen\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"职务代理人\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"zhiShuZhuGuan\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"直属主管\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"buMenJingLi\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"部门经理\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]},{\"name\":\"zongJingLi\",\"code\":\"qjsqbd\",\"field_type\":\"text\",\"label\":\"总经理\",\"read\":[{\"type\":\"all\"}],\"edit\":[{\"type\":\"all\"}],\"required\":[{\"type\":\"all\",\"rightsId\":\"\",\"rightsName\":\"\"}],\"hide\":[{\"type\":\"none\"}]}],\"subfield\":[],\"table\":[],\"button\":[],\"opinion\":[]}",
    "formKey": "ugyu",
    "flowKey": "",
    "nodeId": "",
    "parentflowKey": "",
    "rightsType": "form",
    "isInst": false,
    "rightsScope": "form"
}

返回示例:

{
    "state": 200,
    "request": null,
    "message": "保存表单权限设置成功!",
    "cause": "",
    "variables": {},
    "data": null
}

返回参数说明:

名称 类型 备注
data Void