From 43f566205cca238cd04103998ba771e7602234f3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-932OMT8\\REN" Date: Thu, 29 May 2025 15:39:50 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20?= =?UTF-8?q?=E5=87=BA=E9=A2=98=E9=A1=B5=E9=9D=A2PPTX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wps/pptx/index.ts | 13 + src/utils/dict.ts | 4 + src/views/paper/question/WpsPptxForm.vue | 719 +++++++++++++++++++++++ src/views/paper/question/WpsWordForm.vue | 6 +- src/views/wps/pptx/PptxForm.vue | 31 +- src/views/wps/pptx/index.vue | 14 +- src/views/wps/word/WordForm.vue | 1 - 7 files changed, 778 insertions(+), 10 deletions(-) create mode 100644 src/views/paper/question/WpsPptxForm.vue diff --git a/src/api/wps/pptx/index.ts b/src/api/wps/pptx/index.ts index 03f5829..b1ecc2a 100644 --- a/src/api/wps/pptx/index.ts +++ b/src/api/wps/pptx/index.ts @@ -40,3 +40,16 @@ export const updatePptx = async (params: PptxVO) => { export const deletePptx = async (id: number) => { return await request.delete({ url: '/wps/pptx/delete?id=' + id }) } +// 获取Word考点(大类) +export const getPptxInfo = async (path: String) => { + return await request.get({ url: '/tool/wps/runWpsPptx?path=' + path }) +} + +// 查询Word节点列表(小类) +export const getPptxInfos = async (params: any) => { + return await request.get({ url: '/wps/pptx/listInfo', params }) +} +// 获取Pptx考点() +export const getPptxListInfos = async (data: any) => { + return await request.post({ url: '/tool/wps/runWpsPptxInfo' , data }) +} diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 426bc7c..8962e82 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -116,8 +116,12 @@ 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", + PPTX_ISBOO = "pptx_isboo", + PPTX_TITLE_TYPE ="pptx_title_type", + QUESTION_AUDIT="question_audit", QUESTION_SOURCE="question_source", TASK_TYPE="task_type",//试卷任务模式 diff --git a/src/views/paper/question/WpsPptxForm.vue b/src/views/paper/question/WpsPptxForm.vue new file mode 100644 index 0000000..005e14e --- /dev/null +++ b/src/views/paper/question/WpsPptxForm.vue @@ -0,0 +1,719 @@ + + + \ No newline at end of file diff --git a/src/views/paper/question/WpsWordForm.vue b/src/views/paper/question/WpsWordForm.vue index 564d8dc..9d80c9d 100644 --- a/src/views/paper/question/WpsWordForm.vue +++ b/src/views/paper/question/WpsWordForm.vue @@ -377,9 +377,9 @@ const handleCheckChange = (data: Tree, checked: boolean, indeterminate: boolean) const addWordInfo = async () => { // http://115.120.213.238:9000/exam/9f7d8f5d7c68cc2bfd03a23c19045efe7ba13a4bebeb833abece146908bcd0c6.docx documentList.value[1].url - // if (documentList.value[2].url == '' || documentList.value[2].url == null) { - // return - // } + if (documentList.value[2].url == '' || documentList.value[2].url == null) { + return + } const res = await WordApi.getWordInfo(documentList.value[2].url) wordPointsList.value = [] wordPointsList.value.push(...handleTree(res)) diff --git a/src/views/wps/pptx/PptxForm.vue b/src/views/wps/pptx/PptxForm.vue index c28eb6d..3c99ce7 100644 --- a/src/views/wps/pptx/PptxForm.vue +++ b/src/views/wps/pptx/PptxForm.vue @@ -15,7 +15,6 @@ check-strictly default-expand-all placeholder="请选择上级Pptx节点" - value-key="deptId" /> @@ -25,7 +24,7 @@ - + @@ -60,6 +59,26 @@ /> + + + + + + + + + +