diff --git a/AES-front/README.md b/AES-front/README.md index 76d78d2..280e500 100644 --- a/AES-front/README.md +++ b/AES-front/README.md @@ -27,8 +27,7 @@ Node 安装 18 及以上 ```shell pnpm dev - ``` - + ### Build and Release ```shell diff --git a/AES-front/src/api/admin.js b/AES-front/src/api/admin.js index 5fdba37..a8a4acd 100644 --- a/AES-front/src/api/admin.js +++ b/AES-front/src/api/admin.js @@ -80,4 +80,10 @@ export default { deleteScoringRubric:(data)=>request.post('/problem/deleteScoringRubric',data), deleteScoringStandard:(data)=>request.post('/problem/deleteScoringStandard',data), findAllProblemByCourseId:(data)=>request.post('/problem/findAllProblemByCourseId',data), + findClassByCourseId:(data)=>request.post('/classes/findClassByCourseId',data), + findProblemById:(data)=>request.post('/problem/findProblemById',data), + postProblem:(data)=>request.post('/problem/postProblem',data), + findScoringStandardByProblemId: (data) => request.post('/problem/findScoringStandardByProblemId', data), + editProblem:(data) => request.post('/problem/editProblem', data), + deleteProblem:(data) => request.post('/problem/deleteProblem', data), } diff --git a/AES-front/src/views/admin/problem/components/ProblemActions2.vue b/AES-front/src/views/admin/problem/components/ProblemActions2.vue index 1151159..b23dbc3 100644 --- a/AES-front/src/views/admin/problem/components/ProblemActions2.vue +++ b/AES-front/src/views/admin/problem/components/ProblemActions2.vue @@ -24,7 +24,7 @@ diff --git a/AES-front/src/views/admin/problem/problem-list.vue b/AES-front/src/views/admin/problem/problem-list.vue index 48fe265..0ba9912 100644 --- a/AES-front/src/views/admin/problem/problem-list.vue +++ b/AES-front/src/views/admin/problem/problem-list.vue @@ -253,7 +253,7 @@ const queryByPage = async (currentPage)=>{ } ); console.log(res.data) - if (userStore.getRole().some((r) => r === 'admin')){ + // if (userStore.getRole().some((r) => r === 'admin')){ // const res1=await api.findAllShoolsInAdminusers() // const list1=res1.data // const transformedDatas=list1.map(item => ({ @@ -265,7 +265,7 @@ const queryByPage = async (currentPage)=>{ // value: 0, // }); // options.value=transformedDatas; - } + // } const {pageNum, pageSize, total, list} = res.data paginationReactive.page = pageNum paginationReactive.pageSize = pageSize diff --git a/AES-front/src/views/admin/problem/problem-post.vue b/AES-front/src/views/admin/problem/problem-post.vue index 092d414..23b2c82 100644 --- a/AES-front/src/views/admin/problem/problem-post.vue +++ b/AES-front/src/views/admin/problem/problem-post.vue @@ -11,66 +11,77 @@ label-width="100px" :show-require-mark="false" > -
- - {{ problemName }} - +
+ + {{problemInfoValue.title}} +
+
+ + + + + + +
+
- 添加对象 + 添加对象 - -
-
- - - - - - -
-
+ path="allow" + style='margin-left: 60px'> + +
+ + +
+ + 发布 + + + 取消 +
- 发布 - - 取消 -
-
+ +
+ + +
@@ -78,52 +89,79 @@ diff --git a/AES-front/src/views/admin/problem/problem-scoring-rubric.vue b/AES-front/src/views/admin/problem/problem-scoring-rubric.vue index 30c9c4a..87bb7d6 100644 --- a/AES-front/src/views/admin/problem/problem-scoring-rubric.vue +++ b/AES-front/src/views/admin/problem/problem-scoring-rubric.vue @@ -83,7 +83,7 @@ const handleDescEditorFocus = once(() => { }) const cancel = ()=>{ tagsStore.removeTag(path.value) - router.push({path: 'problem-scoring-standard',query:{courseId:courseId}}) + // router.push({path: 'problem-scoring-standard',query:{courseId:courseId}}) } const submit =async ()=>{ if(problemInfoValue.value.lowerLimit!==''&&problemInfoValue.value.upperLimit!==''&&problemInfoValue.value.description!==''){ @@ -93,10 +93,10 @@ const submit =async ()=>{ }) $message.success("添加评分细则成功") tagsStore.removeTag(path.value) - await router.push({name: 'AdminProblemScoringStandard',query:{courseId:courseId}}) + // await router.push({name: 'AdminProblemScoringStandard',query:{courseId:courseId}}) } catch (err) { tagsStore.removeTag(path.value) - await router.push({name: 'AdminProblemScoringStandard',query:{courseId:courseId}}) + // await router.push({name: 'AdminProblemScoringStandard',query:{courseId:courseId}}) } }else { $message.error("评分细则不能为空") diff --git a/AES-front/src/views/admin/problem/problem-scoring-standard.vue b/AES-front/src/views/admin/problem/problem-scoring-standard.vue index bc4ec00..7b1a174 100644 --- a/AES-front/src/views/admin/problem/problem-scoring-standard.vue +++ b/AES-front/src/views/admin/problem/problem-scoring-standard.vue @@ -73,8 +73,8 @@ const problemInfoRef = ref(null) const cancel = async () => { await api.deleteScoringRubric({}) tagsStore.removeTag(path.value) - await router.push({name: - 'AdminProblemAdd',query:{courseId:courseId}}) + // await router.push({name: + // 'AdminProblemAdd',query:{courseId:courseId}}) } const onAdd = ()=>{ router.push({name: @@ -88,15 +88,15 @@ const submit =async ()=>{ }) $message.success("添加评分标准成功") tagsStore.removeTag(path.value) - await router.push({name: - 'AdminProblemAdd', query: { - courseId: courseId - }}) + // await router.push({name: + // 'AdminProblemAdd', query: { + // courseId: courseId + // }}) } catch (err) { tagsStore.removeTag(path.value) - await router.push({name: 'AdminProblemAdd', query: { - courseId: courseId - }}) + // await router.push({name: 'AdminProblemAdd', query: { + // courseId: courseId + // }}) } }else { $message.error("维度或权重不能为空") diff --git a/AES-front/src/views/admin/problem/problem-store.vue b/AES-front/src/views/admin/problem/problem-store.vue index 785ac23..ff57af2 100644 --- a/AES-front/src/views/admin/problem/problem-store.vue +++ b/AES-front/src/views/admin/problem/problem-store.vue @@ -52,15 +52,10 @@