diff --git a/src/api/wps/pptx/index.ts b/src/api/wps/pptx/index.ts index b1ecc2a..a5dcccd 100644 --- a/src/api/wps/pptx/index.ts +++ b/src/api/wps/pptx/index.ts @@ -2,54 +2,52 @@ import request from '@/config/axios' export interface PptxVO { id?: number - nodeName: string parentId: number status: number sort: number - toChinese: string - nodeFunction: string createTime: Date } // 查询Pptx节点(精简)列表 export const getSimplePptxList = async (): Promise => { - return await request.get({ url: '/wps/pptx/simple-list' }) + return await request.get({ url: '/exam/pptx/simple-list' }) } // 查询Pptx节点列表 export const getPptxPage = async (params: PageParam) => { - return await request.get({ url: '/wps/pptx/list', params }) + return await request.get({ url: '/exam/pptx/list', params }) } // 查询Pptx节点详情 export const getPptx = async (id: number) => { - return await request.get({ url: '/wps/pptx/get?id=' + id }) + return await request.get({ url: '/exam/pptx/get?id=' + id }) } // 新增Pptx节点 export const createPptx = async (data: PptxVO) => { - return await request.post({ url: '/wps/pptx/create', data: data }) + return await request.post({ url: '/exam/pptx/create', data: data }) } // 修改Pptx节点 export const updatePptx = async (params: PptxVO) => { - return await request.put({ url: '/wps/pptx/update', data: params }) + return await request.put({ url: '/exam/pptx/update', data: params }) } // 删除Pptx节点 export const deletePptx = async (id: number) => { - return await request.delete({ url: '/wps/pptx/delete?id=' + id }) + return await request.delete({ url: '/exam/pptx/delete?id=' + id }) } -// 获取Word考点(大类) +// // 获取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 }) +// 查询Word节点列表(小类) 根据title查询出来下面所有的数据 +export const getPptxInfos = async (title: string) => { + console.log(title) + return await request.get({ url: '/exam/pptx/getByNameList?title=' + title }) } -// 获取Pptx考点() +// // 获取Pptx考点() export const getPptxListInfos = async (data: any) => { - return await request.post({ url: '/tool/wps/runWpsPptxInfo' , data }) + return await request.post({ url: '/tool/wps/runTestpptx' , data }) } diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 9e51930..49513ff 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -117,10 +117,12 @@ export enum DICT_TYPE { 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", + PPTX_ISTEXT = "pptx_isText", + PPTX_ISPARAMETER = "pptx_isParameter", + PPTX_ISTRUE = "pptx_isTrue", + PPTX_TITLETYPE = "pptx_titleType", + PPTX_DATATYPE = "pptx_dataType", + WPS_UNIT ="wps_unit", diff --git a/src/views/paper/question/WpsPptxForm.vue b/src/views/paper/question/WpsPptxForm.vue index 08aa857..8b1c79f 100644 --- a/src/views/paper/question/WpsPptxForm.vue +++ b/src/views/paper/question/WpsPptxForm.vue @@ -18,7 +18,11 @@ - + @@ -30,11 +34,7 @@ - + - - + +