角色管理调整

zth
张同海 4 days ago
parent 33e36dd927
commit 669de4169e

@ -44,6 +44,7 @@
import { PopConfirmButton } from '/@/components/Button'
// import { queryTreeListForRole, queryRolePermission, saveRolePermission } from '../role.api';
import { getPermissionTree, getRolePermission, updateRolePermission } from '/@/api/system/role'
import { getClientPermissionTreeList } from '/@/views/baseinfo/clientflowtemplate/api'
// const emit = defineEmits(['register']);
//
const treeData = ref<TreeItem[]>([])
@ -64,8 +65,10 @@
setModalProps({ confirmLoading: false, loading: true })
roleId.value = data.record.id
//
const res = await getPermissionTree()
treeData.value = res.data.treeData
const res = await getClientPermissionTreeList()
treeData.value = res.data
// const res = await getPermissionTree()
// treeData.value = res.data.treeData
allTreeKeys.value = res.data.ids
//
const permResult = await getRolePermission({ id: unref(roleId) })

Loading…
Cancel
Save