diff --git a/src/api/company.js b/src/api/company.js
index e8b30f430..2b4a12d1d 100644
--- a/src/api/company.js
+++ b/src/api/company.js
@@ -227,21 +227,6 @@ export function createStudent(orgId, data) {
data
});
}
-/** 获取班级关联课程 */
-export function getClassAssociatedLessons(orgId) {
- return request({
- url: `/api/company/orgLesson/${orgId}/list`,
- method: 'get'
- });
-}
-/** 关联课程班级 */
-export function setClassAssociatedLessons(orgId, data) {
- return request({
- url: `/api/company/orgLesson/${orgId}/update`,
- method: 'put',
- data
- });
-}
/** 创建修改 规则 */
export function createRule(data) {
return request({
@@ -309,21 +294,6 @@ export function getCanApplyToList(ruleId) {
method: 'get'
});
}
-/** 给班级安排考试 */
-export function applyExamToClass(clsId, data) {
- return request({
- url: `/api/company/orgExam/${clsId}`,
- method: 'post',
- data
- });
-}
-/** 查询班级下的考试 */
-export function getExamListInClass(clsId) {
- return request({
- url: `api/company/orgExam/${clsId}/list`,
- method: 'get'
- });
-}
/** 查询组织树结构 */
export function getOrgTreeById(orgId) {
return request({
diff --git a/src/layout/components/Logout.vue b/src/layout/components/Logout.vue
index 5b467e642..2b5f1f568 100644
--- a/src/layout/components/Logout.vue
+++ b/src/layout/components/Logout.vue
@@ -43,7 +43,7 @@ export default {
return this.$store.state.user.companyAdmin;
},
isSameProject() {
- return this.$store.state.user.companyProject === (getSessionStorage('project').toUpperCase());
+ return this.$store.state.user.companyProjectList.includes(getSessionStorage('project').toUpperCase());
}
},
mounted() {
diff --git a/src/router/index.js b/src/router/index.js
index 43de14188..3e20d3ed1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -143,7 +143,6 @@ const PreTheoryImport = () => import('@/views/competitionManage/bankList/preImpo
const PlanScheduleWicket = () => import('@/views/newMap/displayNew/demon/planSchedule');
const MessageBoard = () => import('@/views/messageBoard/index');
const BoardManage = () => import('@/views/messageBoard/manage');
-const DraftLessonManage = () => import('@/views/teach/draftLessonManage');
const OrganizationManage = () => import('@/views/organization/index');
const OrgClassManage = () => import('@/views/organization/classManage/index');
const OrgDraftLessonManage = () => import('@/views/organization/draftLessonManage/index');
@@ -704,11 +703,6 @@ export const asyncRouter = [
component: TeachDetail,
hidden: true
},
- { // 草稿课程
- path: 'draftTeach/:subSystem',
- component: DraftLessonManage,
- hidden: true
- },
{ // 运行图设计
path: 'runPlan/:mapId',
component: PlanMonitorDetail,
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 773e9303c..954e29f5f 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -20,7 +20,7 @@ const user = {
companyId: '',
companyAdmin: false,
companyName: '',
- companyProject: '',
+ companyProjectList: [],
baseUrl:''
},
@@ -61,8 +61,8 @@ const user = {
SET_COMPANYNAME: (state, companyName) => {
state.companyName = companyName;
},
- SET_COMPANYPROJECT: (state, companyProject) => {
- state.companyProject = companyProject;
+ SET_COMPANYPROJECTLIST: (state, companyProjectList) => {
+ state.companyProjectList = companyProjectList;
},
CLEAR_AUTO_PARAMS: () => {
Cookies.remove('UserDesignName');
@@ -139,7 +139,7 @@ const user = {
commit('SET_COMPANYID', user.companyId);
commit('SET_COMPANYADMIN', user.companyAdmin);
commit('SET_COMPANYNAME', user.companyName);
- commit('SET_COMPANYPROJECT', user.projectCode);
+ commit('SET_COMPANYPROJECTLIST', user.projectCodes);
resolve(user);
}).catch(error => {
reject(error);
diff --git a/src/views/lesson/lessoncategory/edit/lesson/publish.vue b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
index 4d9954fb3..65cb2322e 100644
--- a/src/views/lesson/lessoncategory/edit/lesson/publish.vue
+++ b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
@@ -12,16 +12,6 @@
-
-
-
-
-