This commit is contained in:
BOE\10867418
2023-08-17 15:16:01 +08:00
parent 46c4b4305e
commit cfc1f3ab77
2 changed files with 7 additions and 2 deletions

View File

@@ -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 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) export const userInfo = (obj) => https.post('/user/info', obj)
// 课程列表接口 // 课程列表接口

View File

@@ -133,6 +133,7 @@ import downLoad from "../../utils/downLoad";
import Cookies from "vue-cookies"; import Cookies from "vue-cookies";
import axios from "axios"; import axios from "axios";
import dayjs from "dayjs"; import dayjs from "dayjs";
import store from '@/store';
export default { export default {
name: "LearningPathMap", name: "LearningPathMap",
setup() { setup() {
@@ -171,7 +172,11 @@ export default {
} }
//请求组织接口 //请求组织接口
const getOrgList = async () => { 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) { if (res) {
state.option = res.data?.result; state.option = res.data?.result;
state.orgId = state.option[0]?.organizationId; state.orgId = state.option[0]?.organizationId;