From 4ee3589ed0a0aed18f82d947937b5f6f9016e0dd Mon Sep 17 00:00:00 2001 From: zlm133588 <13996255+zlm133588@user.noreply.gitee.com> Date: Mon, 31 Mar 2025 18:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=88=97=E8=A1=A8=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E7=BD=AE=E5=AE=8C=E6=88=90=EF=BC=8C?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=8F=90=E4=BA=A4=E6=83=85=E5=86=B5=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AES-front/src/api/admin.js | 3 + .../admin/problem/components/RubricList.vue | 5 +- .../admin/problem/problem-edit-setup.vue | 173 ++++++++++------- .../src/views/admin/problem/problem-list.vue | 27 +-- .../views/admin/problem/problem-student.vue | 174 ++++++------------ .../problem/controller/ProblemController.java | 45 ++++- .../aes/problem/dao/PostProblemDaoI.java | 7 + .../example/aes/problem/dao/ProblemDaoI.java | 7 - .../aes/problem/dao/SubmitReportDaoI.java | 13 ++ .../problem/dao/impl/PostProblemDaoImpl.java | 31 ++++ .../aes/problem/dao/impl/ProblemDaoImpl.java | 57 +++--- .../problem/dao/impl/SubmitReportDaoImpl.java | 108 +++++++++++ .../aes/problem/model/PMPostProblem.java | 2 + .../aes/problem/model/PMStudentSubmit.java | 24 +++ .../service/Impl/ProblemServiceImpl.java | 152 ++++++++++++++- .../aes/problem/service/ProblemServiceI.java | 8 +- .../user/controller/ClassesController.java | 1 - .../com/example/aes/user/dao/ClassesDaoI.java | 3 +- .../aes/user/dao/impl/ClassesDaoImpl.java | 8 +- .../example/aes/user/model/Classstudents.java | 58 +----- .../aes/user/service/ClassesServiceI.java | 1 - .../user/service/impl/ClassesServiceImpl.java | 2 - 22 files changed, 598 insertions(+), 311 deletions(-) create mode 100644 AES/src/main/java/com/example/aes/problem/dao/SubmitReportDaoI.java create mode 100644 AES/src/main/java/com/example/aes/problem/dao/impl/SubmitReportDaoImpl.java create mode 100644 AES/src/main/java/com/example/aes/problem/model/PMStudentSubmit.java diff --git a/AES-front/src/api/admin.js b/AES-front/src/api/admin.js index 862891e..92a8400 100644 --- a/AES-front/src/api/admin.js +++ b/AES-front/src/api/admin.js @@ -87,4 +87,7 @@ export default { editProblem:(data) => request.post('/problem/editProblem', data), deleteProblem:(data) => request.post('/problem/deleteProblem', data), findAllProblemByCourseIdAndClassId:(data)=>request.post('/problem/findAllProblemByCourseIdAndClassId',data), + findPostProblem:(data)=>request.post('/problem/findPostProblem',data), + updateSetup:(data)=>request.post('/problem/updateSetup',data), + findStudentSubmit:(data)=>request.post('/problem/findStudentSubmit',data), } diff --git a/AES-front/src/views/admin/problem/components/RubricList.vue b/AES-front/src/views/admin/problem/components/RubricList.vue index 9dcd8bf..59706b0 100644 --- a/AES-front/src/views/admin/problem/components/RubricList.vue +++ b/AES-front/src/views/admin/problem/components/RubricList.vue @@ -37,6 +37,8 @@ import { useRoute, useRouter } from 'vue-router' const rules=ref(null) const userStore = useUserStore() const router = useRouter() +const route = useRoute() +const {problemId, history } = route.query const ProblemInfoRef = ref(null) const loading = ref(true) const ScoringRubricList = @@ -66,7 +68,7 @@ let columns = [ } ] -const queryByPage = async (currentPage)=>{ +const queryByPage = async ()=>{ loading.value = true; try { const res = await @@ -113,6 +115,7 @@ const onChangePage = (page) => { } } onMounted(()=>{ + path.value = router.currentRoute.value.fullPath queryByPage() }) watch(route, () => { diff --git a/AES-front/src/views/admin/problem/problem-edit-setup.vue b/AES-front/src/views/admin/problem/problem-edit-setup.vue index 687aa43..2e8dce8 100644 --- a/AES-front/src/views/admin/problem/problem-edit-setup.vue +++ b/AES-front/src/views/admin/problem/problem-edit-setup.vue @@ -5,104 +5,127 @@ -
- - {{ problemName }} - - - - - - - - - -
- - - - - - -
-
- - - -
- + + + + + +
+ + + + + + +
+
+ + + + + + + + + + +
+ + +
+ 确定 + @click="updateSetup" + >确定 - + 取消 - -
- -
+ size="small" @click="cancel" style='margin-left: + 20px'>取消 + +
+
+
+
+ + +
+
diff --git a/AES-front/src/views/admin/problem/problem-list.vue b/AES-front/src/views/admin/problem/problem-list.vue index 50b69f0..637e1da 100644 --- a/AES-front/src/views/admin/problem/problem-list.vue +++ b/AES-front/src/views/admin/problem/problem-list.vue @@ -10,7 +10,6 @@ :label-width="60" >
-
-
@@ -245,18 +243,19 @@ const onAssistantProblem = async (problemid)=>{ await router.push({name: 'AdminProblemAssistant', params: {clId: id}}) } const onEditProblem = async (problemid)=>{ - // const {id} = problemid - const id=1 + const {id} = problemid await router.push({name: 'AdminProblemEditSetup', - params: {clId: id}}) + query: + {classId:ProblemInfoValue.value.classId,problemId: + id}}) } const onReviewProblem = async (problemid)=>{ - // const {id} = problemid - const id=1 + const {id} = problemid await router.push({name: 'AdminProblemStudent', - params: {clId: id}}) + query: + {classId:ProblemInfoValue.value.classId,problemId:id}}) } // const search=async ()=>{ // // ProblemInfoRef.value?.validate(async (errors) => { @@ -330,15 +329,9 @@ const onChangePage = (page) => { onMounted(()=>{ queryByPage(paginationReactive.page) }) -watch( - ()=>router.currentRoute.value.fullPath, - ()=>{ - if - (router.currentRoute.value.fullPath==='/admin/problem/problem-list') { - queryByPage(paginationReactive.page) - } - } -) +// watch(route, () => { +// filterData() +// })