diff --git a/src/renderer/src/router/index.js b/src/renderer/src/router/index.js index 918838d..9a1a89c 100644 --- a/src/renderer/src/router/index.js +++ b/src/renderer/src/router/index.js @@ -56,6 +56,12 @@ export const constantRoutes = [ name: 'examination-analysis', meta: { title: '考试分析' } }, + { + path: 'management', + component: () => import('@/views/job-management/index.vue'), + name: 'job-management', + meta: { title: '作业管理' } + }, ] }, diff --git a/src/renderer/src/views/classManage/index.vue b/src/renderer/src/views/classManage/index.vue index 331e9cf..da9be1a 100644 --- a/src/renderer/src/views/classManage/index.vue +++ b/src/renderer/src/views/classManage/index.vue @@ -286,7 +286,9 @@ } onMounted(() => { - getClassInfo() + // 没有加入学校之前的处理 + if(userStore.deptId) + getClassInfo() nextTick(() => { viewportHeight.value = getViewportHeight() }) diff --git a/src/renderer/src/views/job-management/Header/index.vue b/src/renderer/src/views/job-management/Header/index.vue new file mode 100644 index 0000000..c4b5483 --- /dev/null +++ b/src/renderer/src/views/job-management/Header/index.vue @@ -0,0 +1,27 @@ + + + \ No newline at end of file diff --git a/src/renderer/src/views/job-management/Left/index.vue b/src/renderer/src/views/job-management/Left/index.vue new file mode 100644 index 0000000..b4032d1 --- /dev/null +++ b/src/renderer/src/views/job-management/Left/index.vue @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/job-management/Right/index.vue b/src/renderer/src/views/job-management/Right/index.vue new file mode 100644 index 0000000..653e84d --- /dev/null +++ b/src/renderer/src/views/job-management/Right/index.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/job-management/components/button.vue b/src/renderer/src/views/job-management/components/button.vue new file mode 100644 index 0000000..c5104d4 --- /dev/null +++ b/src/renderer/src/views/job-management/components/button.vue @@ -0,0 +1,148 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/job-management/components/customSelect.vue b/src/renderer/src/views/job-management/components/customSelect.vue new file mode 100644 index 0000000..6d82c16 --- /dev/null +++ b/src/renderer/src/views/job-management/components/customSelect.vue @@ -0,0 +1,114 @@ + + + + \ No newline at end of file diff --git a/src/renderer/src/views/job-management/index.vue b/src/renderer/src/views/job-management/index.vue new file mode 100644 index 0000000..5237946 --- /dev/null +++ b/src/renderer/src/views/job-management/index.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index cf60b22..fe64262 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -2,6 +2,7 @@
课标研读 + 作业管理
diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue index 6ade321..6216179 100644 --- a/src/renderer/src/views/profile/userInfo.vue +++ b/src/renderer/src/views/profile/userInfo.vue @@ -8,7 +8,7 @@
-
{{ user.deptName }}
+
{{ userStore.DeptInfo.register.schoolName }}
更改学校
@@ -249,8 +249,13 @@ function groupByCondition(arr, condition) { } } onMounted(() => { - getSubject() - getClassInfo() - getTheSection() + console.log(userStore.DeptInfo,'DeptInfo'); + + // 没有加入学校前不能执行以下接口 + if(userStore.user.deptId){ + getSubject() + getClassInfo() + getTheSection() + } })