From 07892b4d22c461dc72e050811f7d084f93ce9117 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 7 Mar 2024 09:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 ++ .env.prod | 2 ++ .env.release | 2 ++ src/components/BreadCrumb.vue | 10 ++++++ src/components/NavLeft.vue | 44 +++++++++++++++++++++-- src/store/index.js | 2 ++ src/views/evaluation/evaluationUpload.vue | 15 ++++++++ 7 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 src/views/evaluation/evaluationUpload.vue diff --git a/.env b/.env index 409b9fb6..0e44dad6 100644 --- a/.env +++ b/.env @@ -45,5 +45,7 @@ VUE_APP_H5=//u-pre.boe.com/student-h5 VUE_APP_AVATAR_PATH=/upload/ # 旧版管理员界面 VUE_APP_OLD_MANAGE=//u-pre.boe.com/resource/index.html +# 测评管理界面 +VUE_APP_EVA_MANAGE=//u-pre.boe.com/quiz/index.html # 批量面授报名模板 VUE_APP_FACE_STUDENT_TEMPLATE=批量面授报名模版-1673963663229.xlsx \ No newline at end of file diff --git a/.env.prod b/.env.prod index 6d9bc76a..7e8fe59a 100644 --- a/.env.prod +++ b/.env.prod @@ -34,5 +34,7 @@ VUE_APP_FILE_PATH=/upload/boe/file/ VUE_APP_AVATAR_PATH=/upload/ # 旧版管理员界面 VUE_APP_OLD_MANAGE=//u.boe.com/resource/index.html +# 测评管理界面 +VUE_APP_EVA_MANAGE=//u.boe.com/quiz/index.html # 批量面授报名模板 VUE_APP_FACE_STUDENT_TEMPLATE=/file/批量面授报名模版-1679595925822.xlsx \ No newline at end of file diff --git a/.env.release b/.env.release index a38aecf3..4b339986 100644 --- a/.env.release +++ b/.env.release @@ -26,5 +26,7 @@ VUE_APP_H5=//u.boe.com/student-h5-release VUE_APP_AVATAR_PATH=/upload/ # 旧版管理员界面 VUE_APP_OLD_MANAGE=//u-pre.boe.com/resource/index.html +# 测评管理界面 +VUE_APP_EVA_MANAGE=//u-pre.boe.com/quiz/index.html # 批量面授报名模板 VUE_APP_FACE_STUDENT_TEMPLATE=批量面授报名模版-1673963663229.xlsx \ No newline at end of file diff --git a/src/components/BreadCrumb.vue b/src/components/BreadCrumb.vue index 5d0f2c03..165cea59 100644 --- a/src/components/BreadCrumb.vue +++ b/src/components/BreadCrumb.vue @@ -538,6 +538,16 @@ }, ]; } + if (n.indexOf("/evaluationupload") !== -1 || n.indexOf("/EvaluationUpload") !== -1) { + state.list = [ + { + name: "测评", + }, + { + name: '测评上传' + } + ]; + } if (n.indexOf("/download") !== -1 || n.indexOf("/download") !== -1) { state.list = [ { diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue index 54e8d251..d6d03caf 100644 --- a/src/components/NavLeft.vue +++ b/src/components/NavLeft.vue @@ -422,6 +422,35 @@ 问答管理 + + + + + + 测评上传 + + + + 测评管理 + +
问答 + + 测评 + 旧版 @@ -698,7 +730,8 @@ export default { "sub19", "sub20", "sub21", - "sub22" + "sub22", + "sub23", ], openKeys: localStorage.getItem("openKeys") ? JSON.parse(localStorage.getItem("openKeys")) @@ -908,6 +941,12 @@ export default { selectedKeys: "sub14", pagename: "问答管理", }, + { + href: "/evaluationupload", + openKeys: "sub23", + selectedKeys: "sub23-1", + pagename: "测评上传", + }, { href: "/download", openKeys: "sub15", @@ -1009,7 +1048,8 @@ export default { }, ], - oldManage: window.location.protocol + process.env.VUE_APP_OLD_MANAGE + oldManage: window.location.protocol + process.env.VUE_APP_OLD_MANAGE, + evaluationManagement: window.location.protocol + process.env.VUE_APP_EVA_MANAGE }); const onOpenChange = (openKeys) => { diff --git a/src/store/index.js b/src/store/index.js index 637acc6f..ad00bc57 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -67,6 +67,8 @@ export default createStore({ }, SET_PERMISSION(state, permissions) { state.menus = permissions; + state.menus = [...permissions,'/evaluationupload']; + console.log(state.menus,"state.menus"); } }, diff --git a/src/views/evaluation/evaluationUpload.vue b/src/views/evaluation/evaluationUpload.vue new file mode 100644 index 00000000..5cf97fa9 --- /dev/null +++ b/src/views/evaluation/evaluationUpload.vue @@ -0,0 +1,15 @@ + + + + + \ No newline at end of file