diff --git a/src/api/indexOvervoew.js b/src/api/indexOvervoew.js index 9508ea7e..1d4353c8 100644 --- a/src/api/indexOvervoew.js +++ b/src/api/indexOvervoew.js @@ -8,7 +8,7 @@ export const boeuExamPageList = (obj) => http.post('/boeu/exam/pageList', obj) //概览页面案例列表请求接口 export const boeuCasePageList = (obj) => http.post('/boeu/case/pageList', obj) // 请求组织接口 -export const userGetUserOrg = (obj) => https.post('/user/getUserOrg', obj) +export const userGetUserOrg = (obj) => http.post('/org/getUserOrg', obj) // 请求所属组织接口 export const userInfo = (obj) => https.post('/user/info', obj) // 课程列表接口 diff --git a/src/views/report/Learningpathmap.vue b/src/views/report/Learningpathmap.vue index 434ec082..2a494b57 100644 --- a/src/views/report/Learningpathmap.vue +++ b/src/views/report/Learningpathmap.vue @@ -133,6 +133,7 @@ import downLoad from "../../utils/downLoad"; import Cookies from "vue-cookies"; import axios from "axios"; import dayjs from "dayjs"; +import store from '@/store'; export default { name: "LearningPathMap", setup() { @@ -171,7 +172,11 @@ export default { } //请求组织接口 const getOrgList = async () => { - const res = await api.userGetUserOrg({}); + let params = { + roleList: store.userInfo.roleList, + userId: store.userInfo.userId + } + const res = await api.userGetUserOrg({params}); if (res) { state.option = res.data?.result; state.orgId = state.option[0]?.organizationId;