🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] ## 职务列表 ~~~[api] post:/office/list <<< success <<< error ~~~ ## 职位添加 ~~~[api] post:/office/add *string:title=默认值#名称 <<< success <<< error ~~~ ## 职位修改 ~~~[api] post:/office/edit *string:id=默认值#ID *string:title=默认值#名称 <<< success <<< error ~~~ ## 职位详情 ~~~[api] post:/office/get *string:id=默认值#ID <<< success <<< error ~~~ ## 职位删除 ~~~[api] post:/office/del *string:id=默认值#ID <<< success <<< error ~~~ ## 职位权限列表 ~~~[api] post:/office/competence *string:id=默认值#职位ID <<< success { "code": 0, "info": "成功", "data": [{ "title": "公共权限", "child": [{ "id": 1, "state": 0, "title": "基础设置", "sort": 0, "type": 0, "about": null, "child": [{ "id": 4, "state": 0, "title": "门店管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 5, "state": 0, "title": "员工管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 6, "state": 0, "title": "职务管理", "sort": 0, "type": 1, "about": null, "checked": false }, { "id": 7, "state": 0, "title": "商品管理", "sort": 0, "type": 1, "about": null, "checked": false }] }, { "id": 2, "state": 0, "title": "会员管理", "sort": 0, "type": 0, "about": null, "child": [{ "id": 8, "state": 0, "title": "标签管理", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 9, "state": 0, "title": "积分管理", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 10, "state": 0, "title": "会员等级", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 11, "state": 0, "title": "生日提醒", "sort": 0, "type": 2, "about": null, "checked": false }, { "id": 12, "state": 0, "title": "客服经理", "sort": 0, "type": 2, "about": null, "checked": false }] }] }, { "title": "门店权限", "child": [{ "id": 13, "state": 1, "title": "会员发展统计", "sort": 0, "type": 3, "about": null, "checked": false }, { "id": 14, "state": 1, "title": "会员统计", "sort": 0, "type": 3, "about": null, "checked": true }, { "id": 15, "state": 1, "title": "销售统计", "sort": 0, "type": 3, "about": null, "checked": false }], "shop": 2 //1全部门店 2是所属门店 }] } <<< error ~~~ ## 职位权限提交 ~~~[api] post:/office/competenceedit *int:id=默认值#职位ID *int:shop=默认值#门店权限 1是所属门店 0是全部门店 *array:com_id=默认值#权限数组 name#说明文字 <<< success <<< error ~~~