diff --git a/QMPlusVuePage/src/api/authority.js b/QMPlusVuePage/src/api/authority.js
index fa3b6538d..f900f6026 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 9909a24e2..a778da02f 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 9aa6a77cc..e4fe2580a 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 000000000..d1e8520fc
--- /dev/null
+++ b/QMPlusVuePage/src/view/superAdmin/authority/components/datas.vue
@@ -0,0 +1,72 @@
+
+
+
+ 确 定
+
+
+ {{item.authorityName}}
+
+
+
+
+
\ No newline at end of file