diff --git a/src/views/system/role/RolePermissionModal.vue b/src/views/system/role/RolePermissionModal.vue index d40b508f..97d83cbf 100644 --- a/src/views/system/role/RolePermissionModal.vue +++ b/src/views/system/role/RolePermissionModal.vue @@ -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([]) @@ -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) })