Browse Source

测试菜单

pre-production
pref_mail@163.com 1 year ago
parent
commit
6494cd84cc
  1. 8
      src/views/authority/role.vue

8
src/views/authority/role.vue

@ -107,6 +107,7 @@ import {
} from '@/api/system/role';
import { mapGetters } from 'vuex';
import website from '@/config/website';
import { set } from 'nprogress';
export default {
data() {
@ -265,8 +266,13 @@ export default {
});
},
submit() {
const menuList = this.$refs.treeMenu.getCheckedKeys();
var menuList = this.$refs.treeMenu.getCheckedKeys();
const appMenuList = this.$refs.treeAppMenu.getCheckedKeys();
const halfCheckedKey = this.$refs.treeMenu.getHalfCheckedKeys();
menuList =[...new Set([...menuList,...halfCheckedKey])];
const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
grant(this.idsArray, menuList, dataScopeList, apiScopeList, appMenuList).then(() => {

Loading…
Cancel
Save