| | |
| | | <script setup> |
| | | import { ref } from 'vue' |
| | | import { grant, grantTree, getRole } from '@/api/system/role' |
| | | import { saveOperationLog } from '@ztzf/apis' |
| | | import { useRoute } from 'vue-router' |
| | | |
| | | const visible = ref(false) |
| | | const roleId = ref('') |
| | |
| | | const droneControl = ref(null) |
| | | |
| | | const emit = defineEmits(['success']) |
| | | const route = useRoute() |
| | | |
| | | function resetState() { |
| | | menuGrantList.value = [] |
| | |
| | | [], |
| | | [] |
| | | ).then(() => { |
| | | saveOperationLog({ |
| | | requestUri: route.path, |
| | | title: `${route.name || '角色管理'}-权限设置`, |
| | | type: 1, |
| | | }) |
| | | visible.value = false |
| | | emit('success') |
| | | }) |