From a91ef2cbd28e807c31f9647937cdd0289128e4ca Mon Sep 17 00:00:00 2001 From: "YOHO\\20373" <2037305722@qq.com> Date: Mon, 19 May 2025 22:05:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E7=82=B9=E5=89=8D=E7=AB=AF=EF=BC=8C=E8=AF=95=E9=A2=98?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=8C=89=E9=92=AE=EF=BC=8C=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/paper/question/index.ts | 6 +- src/api/points/index.js | 44 ++++ .../exam/points/components/SpecialtyForm.vue | 175 +++++++++++++++ src/views/exam/points/index.vue | 205 ++++++++++++++++++ src/views/exam/student/StudentForm.vue | 9 + src/views/paper/question/UserImportForm.vue | 14 +- src/views/paper/question/index.vue | 11 + 7 files changed, 456 insertions(+), 8 deletions(-) create mode 100644 src/api/points/index.js create mode 100644 src/views/exam/points/components/SpecialtyForm.vue create mode 100644 src/views/exam/points/index.vue diff --git a/src/api/paper/question/index.ts b/src/api/paper/question/index.ts index 4094493..33cb1fa 100644 --- a/src/api/paper/question/index.ts +++ b/src/api/paper/question/index.ts @@ -106,4 +106,8 @@ export const noauditQue = (ids: string[]) => { url: '/exam/question/noauditQue', data: ids }) -} \ No newline at end of file +} +// 下载用户导入模板 +export const importQueTemplate = () => { + return request.download({ url: '/exam/question/get-import-template' }) +} diff --git a/src/api/points/index.js b/src/api/points/index.js new file mode 100644 index 0000000..96d3708 --- /dev/null +++ b/src/api/points/index.js @@ -0,0 +1,44 @@ +import request from '@/config/axios' +/** + * 查询知识点列表 + */ +export async function listPoints(params) { + + return request.get({ url: '/exam/points/list', params }) +} + + + +/** + * 查询知识点详细 + */ +export async function getPoints(spId) { + + return await request.get({ url: '/exam/points/' + spId }) +} + +/** + * 新增知识点 + */ + +// 新增试题 +export function addPoints(data) { + return request.post({url: '/exam/points', data}); +} + + +/** + * 修改知识点 + */ + +export function updatePoints(data) { + return request.put({url: '/exam/points', data}); +} + +/** + * 删除知识点 + */ + +export const delPoints = (spId) => { + return request.delete({ url: '/exam/points/' + spId }) +} \ No newline at end of file diff --git a/src/views/exam/points/components/SpecialtyForm.vue b/src/views/exam/points/components/SpecialtyForm.vue new file mode 100644 index 0000000..229c5e7 --- /dev/null +++ b/src/views/exam/points/components/SpecialtyForm.vue @@ -0,0 +1,175 @@ + + diff --git a/src/views/exam/points/index.vue b/src/views/exam/points/index.vue new file mode 100644 index 0000000..6b35c1d --- /dev/null +++ b/src/views/exam/points/index.vue @@ -0,0 +1,205 @@ + + diff --git a/src/views/exam/student/StudentForm.vue b/src/views/exam/student/StudentForm.vue index e8b21d3..60c67db 100644 --- a/src/views/exam/student/StudentForm.vue +++ b/src/views/exam/student/StudentForm.vue @@ -74,6 +74,14 @@ /> + + + + + + + + @@ -123,6 +131,7 @@ const formData = ref({ className: '', mobile: '', email: '', + sfz:'', id: undefined, username: '', password: '', diff --git a/src/views/paper/question/UserImportForm.vue b/src/views/paper/question/UserImportForm.vue index 87eaea9..83a3e70 100644 --- a/src/views/paper/question/UserImportForm.vue +++ b/src/views/paper/question/UserImportForm.vue @@ -1,5 +1,5 @@