|
|
|
@ -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(() => { |
|
|
|
|