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 @@ /> + + + + + + + + + +