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() +// })