diff --git a/web/src/api/authority.js b/web/src/api/authority.js index c1463df01b523f602687015f259d129ad7fc74ef..9cc6d862819bab64b6c9269def5e60cfcd001e95 100644 --- a/web/src/api/authority.js +++ b/web/src/api/authority.js @@ -46,6 +46,22 @@ export const createAuthority = (data) => { }) } +// @Tags authority +// @Summary 拷贝角色 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body api.CreateAuthorityPatams true "拷贝角色" +// @Success 200 {string} json "{"success":true,"data":{},"msg":"拷贝成功"}" +// @Router /authority/copyAuthority [post] +export const copyAuthority = (data) => { + return service({ + url: "/authority/copyAuthority", + method: 'post', + data + }) +} + // @Summary 设置角色资源权限 // @Security ApiKeyAuth // @accept application/json diff --git a/web/src/view/superAdmin/authority/authority.vue b/web/src/view/superAdmin/authority/authority.vue index 0905328046fd9952bbce5c90ce0a52d101b0dbd5..fbdfebcf6f97e9ccad7a9dbac32c6ac4b5b7dbb9 100644 --- a/web/src/view/superAdmin/authority/authority.vue +++ b/web/src/view/superAdmin/authority/authority.vue @@ -17,6 +17,7 @@