diff --git a/.env b/.env index e0801577..823663f7 100644 --- a/.env +++ b/.env @@ -23,6 +23,8 @@ VUE_APP_COURSE_STUDY=//u-pre.boe.com/pc/course/studyindex?id= # 导入学员模板 VUE_APP_UP_LOAD_STUDENT_TEMPLATE=导入学员模版-1673963663229.xlsx +# 外部考试导入成绩模板 +VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE=导入成绩模版-1673963663229.xlsx #在线 VITE_BOE_ONLINE_CLASS_URL=//u-pre.boe.com/pc/course/studyindex?id= @@ -31,4 +33,4 @@ VITE_BOE_CASS_DETAIL_URL=//u-pre.boe.com/pc/case/detail?id= #考试 VITE_BOE_EXAM_DETAIL_URL=//u-pre.boe.com/pc/exam/test?id= #h5的基本url -VUE_APP_H5=//u-pre.boe.com/mobile/student-h5 \ No newline at end of file +VUE_APP_H5=//u-pre.boe.com/mobile/student-h5 diff --git a/.env.boe b/.env.boe index 51519fda..639a7f31 100644 --- a/.env.boe +++ b/.env.boe @@ -8,6 +8,8 @@ VUE_APP_BOE_API_URL=//u-pre.boe.com # 导入学员模板 VUE_APP_UP_LOAD_STUDENT_TEMPLATE=导入学员模版-1673963663229.xlsx +# 外部考试导入成绩模板 +VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE=导入成绩模版-1673963663229.xlsx #在线 VITE_BOE_ONLINE_CLASS_URL=//u-pre.boe.com/pc/course/studyindex?id= VITE_BOE_CASS_DETAIL_URL=//u-pre.boe.com/pc/case/detail?id= diff --git a/.env.prod b/.env.prod index a8dc80ee..1ef2f91f 100644 --- a/.env.prod +++ b/.env.prod @@ -14,6 +14,9 @@ VUE_APP_IFRAME_STUDENT_URL=//u.boe.com/pc/loading VUE_APP_COURSE_STUDY=//u.boe.com/pc/course/studyindex?id= VUE_APP_UP_LOAD_STUDENT_TEMPLATE=导入学员模版-1673963663229.xlsx +# 外部考试导入成绩模板 +VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE=导入成绩模版-1673963663229.xlsx + VITE_BOE_ONLINE_CLASS_URL=//u.boe.com/pc/course/studyindex?id= VITE_BOE_CASS_DETAIL_URL=//u.boe.com/pc/case/detail?id= VITE_BOE_EXAM_DETAIL_URL=//u.boe.com/pc/exam/test?id= \ No newline at end of file diff --git a/.env.release b/.env.release index b61246c6..b0c1b3aa 100644 --- a/.env.release +++ b/.env.release @@ -14,6 +14,8 @@ VUE_APP_IFRAME_STUDENT_URL=//u.boe.com/pc-release/loading VUE_APP_COURSE_STUDY=//u.boe.com/pc-release/course/studyindex?id= VUE_APP_UP_LOAD_STUDENT_TEMPLATE=导入学员模版-1673963663229.xlsx +# 外部考试导入成绩模板 +VUE_APP_UP_LOAD_STUDENT_SCORE_TEMPLATE=导入成绩模版-1673963663229.xlsx VITE_BOE_ONLINE_CLASS_URL=//u.boe.com/pc-release/course/studyindex?id= VITE_BOE_CASS_DETAIL_URL=//u.boe.com/pc-release/case/detail?id= VITE_BOE_EXAM_DETAIL_URL=//u.boe.com/pc-release/exam/test?id= \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 5ae4044b..7fd4f129 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,6 +28,8 @@ import BreadCrumb from "@/components/BreadCrumb"; import zhCN from "ant-design-vue/es/locale/zh_CN"; import * as api1 from "@/api/index1"; import * as api2 from "@/api/index"; +import {boeRequest} from "@/api/request"; +import {USER_PERMISSION} from "@/api/ThirdApi"; const store = useStore(); const isLogin = ref(false); @@ -60,6 +62,7 @@ function init() { initDict("projectPic"); initDict("sysType"); getMemberInfo(); + getUserPermission(); } function unloadHandler() { @@ -102,6 +105,12 @@ async function initDict(key, localStory = false) { store.commit("SET_DICT", {key, data: list}); } +function getUserPermission(){ + boeRequest(USER_PERMISSION,{permissionType:'PAGE'}).then(res=>{ + store.commit("SET_PERMISSION", res.result.flatMap(t=>t?.permissionPageList.map(s=>s.url))); + }) +} + const getDictList = (param) => api1.getDictTree({setCode: param,}).then((res) => res.data.data);