diff --git a/QMPlusVuePage/src/api/authority.js b/QMPlusVuePage/src/api/authority.js index fa3b6538d8a52cb5e80a365261b39137858790db..f900f602602cf1a5499bc16f4b84be360e0ae276 100644 --- a/QMPlusVuePage/src/api/authority.js +++ b/QMPlusVuePage/src/api/authority.js @@ -44,4 +44,19 @@ export const createAuthority = (data) => { method: 'post', data }) +} + +// @Summary 设置角色资源权限 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body sysModel.SysAuthority true "设置角色资源权限" +// @Success 200 {string} string "{"success":true,"data":{},"msg":"设置成功"}" +// @Router /authority/setDataAuthority [post] +export const setDataAuthority = (data) => { + return service({ + url: "/authority/setDataAuthority", + method: 'post', + data + }) } \ No newline at end of file diff --git a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue index 9909a24e2e15f975fefdb069bec07130ba7021e8..a778da02f489d981d89437a089018bd8c08ddafe 100644 --- a/QMPlusVuePage/src/view/superAdmin/authority/authority.vue +++ b/QMPlusVuePage/src/view/superAdmin/authority/authority.vue @@ -49,6 +49,9 @@ + + + @@ -65,6 +68,7 @@ import { import Menus from '@/view/superAdmin/authority/components/menus' import Apis from '@/view/superAdmin/authority/components/apis' +import Datas from '@/view/superAdmin/authority/components/datas' import infoList from '@/components/mixins/infoList' export default { @@ -88,7 +92,8 @@ export default { }, components: { Menus, - Apis + Apis, + Datas }, methods: { opdendrawer(row) { diff --git a/QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue b/QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue index 9aa6a77ccdde322932798aee6465f5781d715db9..e4fe2580af3595ef03facec2cd07ec2d47a27957 100644 --- a/QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue +++ b/QMPlusVuePage/src/view/superAdmin/authority/components/apis.vue @@ -61,14 +61,6 @@ export default { } return apiTree }, - // 关联用户api关系 - async addAuthApi(row) { - const res = await getPolicyPathByAuthorityId({ - authorityId: this.row.authorityId - }) - this.activeUserId = this.row.authorityId - this.apiTreeIds = res.data.paths || [] - }, // 关联关系确定 async authApiEnter() { const checkArr = this.$refs.apiTree.getCheckedKeys(true) diff --git a/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue new file mode 100644 index 0000000000000000000000000000000000000000..d1e8520fc8221d14b37ff39ceea03f4e21c6164e --- /dev/null +++ b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue @@ -0,0 +1,72 @@ + + + \ No newline at end of file