From 280f875e99a418c65493e66b9baae6c62688b7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9D=A8?= <666> Date: Tue, 12 Nov 2024 17:32:52 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=9A=E4=BD=9C=E4=B8=9A=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dbug=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/router/index.js | 6 + src/renderer/src/views/classManage/index.vue | 4 +- .../src/views/job-management/Header/index.vue | 27 ++++ .../src/views/job-management/Left/index.vue | 108 +++++++++++++ .../src/views/job-management/Right/index.vue | 84 ++++++++++ .../job-management/components/button.vue | 148 ++++++++++++++++++ .../components/customSelect.vue | 114 ++++++++++++++ .../src/views/job-management/index.vue | 31 ++++ src/renderer/src/views/model/index.vue | 1 + src/renderer/src/views/profile/userInfo.vue | 13 +- 10 files changed, 531 insertions(+), 5 deletions(-) create mode 100644 src/renderer/src/views/job-management/Header/index.vue create mode 100644 src/renderer/src/views/job-management/Left/index.vue create mode 100644 src/renderer/src/views/job-management/Right/index.vue create mode 100644 src/renderer/src/views/job-management/components/button.vue create mode 100644 src/renderer/src/views/job-management/components/customSelect.vue create mode 100644 src/renderer/src/views/job-management/index.vue 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() + } }) -- 2.44.0.windows.1