From 5ce98a1e7fe1689791ea73d76b99daa733feb5ac Mon Sep 17 00:00:00 2001 From: "DESKTOP-932OMT8\\REN" Date: Tue, 27 May 2025 13:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20word?= =?UTF-8?q?=E5=87=BA=E9=A2=98=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=8D=8A=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wps/word/index.ts | 13 + src/utils/dict.ts | 1 + src/views/exam/student/StudentForm.vue | 6 +- src/views/exam/teacher/TeacherForm.vue | 8 +- src/views/paper/question/WpsWordForm.vue | 682 ++++++++++++++++++ src/views/paper/question/index.vue | 7 + src/views/system/role/index.vue | 4 +- src/views/system/tenant/TenantForm.vue | 24 +- src/views/system/tenant/index.vue | 20 +- .../tenantPackage/TenantPackageForm.vue | 8 +- src/views/system/tenantPackage/index.vue | 8 +- src/views/wps/pptx/PptxForm.vue | 4 +- src/views/wps/word/WordForm.vue | 18 +- src/views/wps/word/index.vue | 5 + 14 files changed, 764 insertions(+), 44 deletions(-) create mode 100644 src/views/paper/question/WpsWordForm.vue diff --git a/src/api/wps/word/index.ts b/src/api/wps/word/index.ts index 44e3ef0..a9f869f 100644 --- a/src/api/wps/word/index.ts +++ b/src/api/wps/word/index.ts @@ -16,6 +16,11 @@ export const getSimpleWordList = async (): Promise => { return await request.get({ url: '/wps/word/simple-list' }) } +// 查询Word节点列表(小类) +export const getWordInfos = async (params: any) => { + return await request.get({ url: '/wps/word/listInfo', params }) +} + // 查询Word节点列表 export const getWordPage = async (params: PageParam) => { return await request.get({ url: '/wps/word/list', params }) @@ -40,3 +45,11 @@ export const updateWord = async (params: WordVO) => { export const deleteWord = async (id: number) => { return await request.delete({ url: '/wps/word/delete?id=' + id }) } +// 获取Word考点(大类) +export const getWordInfo = async (path: String) => { + return await request.get({ url: '/tool/wps/runWpsWord?path=' + path }) +} +// 获取Word考点() +export const getWordListInfos = async (data: any) => { + return await request.post({ url: '/tool/wps/runWpsWordInfo' , data }) +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 7968ab5..426bc7c 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -115,6 +115,7 @@ export enum DICT_TYPE { WPS_WORD = "wps_word", WORD_BELONG_TO = "word_belong_to", + WORD_ISBOO = "word_isboo", WPS_PPTX = "wps_pptx", PPTX_BELONG_TO = "pptx_belong_to", QUESTION_AUDIT="question_audit", diff --git a/src/views/exam/student/StudentForm.vue b/src/views/exam/student/StudentForm.vue index 60c67db..17861ee 100644 --- a/src/views/exam/student/StudentForm.vue +++ b/src/views/exam/student/StudentForm.vue @@ -9,8 +9,8 @@ > - - + + @@ -144,7 +144,7 @@ const formData = ref({ }) const formRules = reactive({ username: [{ required: true, message: '用户名称不能为空', trigger: 'blur' }], - nickname: [{ required: true, message: '用户昵称不能为空', trigger: 'blur' }], + nickname: [{ required: true, message: '用户姓名不能为空', trigger: 'blur' }], password: [{ required: true, message: '用户密码不能为空', trigger: 'blur' }], className: [{ required: true, message: '班级不能为空', trigger: 'blur' }] }) diff --git a/src/views/exam/teacher/TeacherForm.vue b/src/views/exam/teacher/TeacherForm.vue index a5cd2c9..22404ba 100644 --- a/src/views/exam/teacher/TeacherForm.vue +++ b/src/views/exam/teacher/TeacherForm.vue @@ -9,8 +9,8 @@ > - - + + @@ -162,8 +162,8 @@ const formData = ref({ specialtyIds: [] }) const formRules = reactive({ - username: [{ required: true, message: '教师名称不能为空', trigger: 'blur' }], - nickname: [{ required: true, message: '教师昵称不能为空', trigger: 'blur' }], + username: [{ required: true, message: '教师账号不能为空', trigger: 'blur' }], + nickname: [{ required: true, message: '教师姓名不能为空', trigger: 'blur' }], password: [{ required: true, message: '教师密码不能为空', trigger: 'blur' }], mobile: [ { diff --git a/src/views/paper/question/WpsWordForm.vue b/src/views/paper/question/WpsWordForm.vue new file mode 100644 index 0000000..d47e03b --- /dev/null +++ b/src/views/paper/question/WpsWordForm.vue @@ -0,0 +1,682 @@ + + + \ No newline at end of file diff --git a/src/views/paper/question/index.vue b/src/views/paper/question/index.vue index 4e6c194..eb7d227 100644 --- a/src/views/paper/question/index.vue +++ b/src/views/paper/question/index.vue @@ -337,6 +337,8 @@ + +