From ea8112e563afd6a690021fb70427e62bd413e625 Mon Sep 17 00:00:00 2001 From: dlaren Date: Sun, 10 Aug 2025 02:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=20xlsx?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wps/pptx/index.ts | 2 +- src/api/wps/xlsx/index.ts | 32 +- .../{WpsExcelForm.vue => WpsXlsxForm.vue} | 287 ++++++------------ src/views/paper/question/index.vue | 4 +- src/views/wps/xlsx/XlsxForm.vue | 74 ++--- src/views/wps/xlsx/index.vue | 53 +--- 6 files changed, 158 insertions(+), 294 deletions(-) rename src/views/paper/question/{WpsExcelForm.vue => WpsXlsxForm.vue} (81%) diff --git a/src/api/wps/pptx/index.ts b/src/api/wps/pptx/index.ts index 25ed19e..315d34d 100644 --- a/src/api/wps/pptx/index.ts +++ b/src/api/wps/pptx/index.ts @@ -38,7 +38,7 @@ export const deletePptx = async (id: number) => { return await request.delete({ url: '/exam/pptx/delete?id=' + id }) } -// 查询Word节点列表(小类) 根据title查询出来下面所有的数据 +// 查询Pptx节点列表(小类) 根据title查询出来下面所有的数据 export const getSlideByNameList = async (title: string) => { console.log(title) return await request.get({ url: '/exam/pptx/getByNameList?title=' + title }) diff --git a/src/api/wps/xlsx/index.ts b/src/api/wps/xlsx/index.ts index 164ae49..b14ec55 100644 --- a/src/api/wps/xlsx/index.ts +++ b/src/api/wps/xlsx/index.ts @@ -2,45 +2,53 @@ import request from '@/config/axios' export interface XlsxVO { id?: number - nodeName: string parentId: number status: number sort: number - toChinese: string - nodeFunction: string createTime: Date } // 查询Xlsx节点(精简)列表 export const getSimpleXlsxList = async (): Promise => { - return await request.get({ url: '/wps/xlsx/simple-list' }) + return await request.get({ url: '/exam/xlsx/simple-list' }) } // 查询Xlsx节点列表 export const getXlsxPage = async (params: PageParam) => { - return await request.get({ url: '/wps/xlsx/list', params }) + return await request.get({ url: '/exam/xlsx/list', params }) } // 查询Xlsx节点详情 export const getXlsx = async (id: number) => { - return await request.get({ url: '/wps/xlsx/get?id=' + id }) + return await request.get({ url: '/exam/xlsx/get?id=' + id }) } // 新增Xlsx节点 export const createXlsx = async (data: XlsxVO) => { - return await request.post({ url: '/wps/xlsx/create', data: data }) + return await request.post({ url: '/exam/xlsx/create', data: data }) } // 修改Xlsx节点 export const updateXlsx = async (params: XlsxVO) => { - return await request.put({ url: '/wps/xlsx/update', data: params }) + return await request.put({ url: '/exam/xlsx/update', data: params }) } // 删除Xlsx节点 export const deleteXlsx = async (id: number) => { - return await request.delete({ url: '/wps/xlsx/delete?id=' + id }) + return await request.delete({ url: '/exam/xlsx/delete?id=' + id }) } -export const getXlsxInfo = async (path: String) => { - return await request.get({ url: '/tool/wps/runWpsXlsx?path=' + path }) -} \ No newline at end of file +// 查询Xlsx节点列表(小类) 根据title查询出来下面所有的数据 +export const getSlideByNameList = async (title: string) => { + console.log(title) + return await request.get({ url: '/exam/xlsx/getByNameList?title=' + title }) +} + +// 上传文件 +export const getXlsxDataInfo = (data: any) => { + return request.upload({ url: '/auto/wps/xlsxDataInfo', data }) +} +// 获取考点 +export const getXlsxMaster = (data: any) => { + return request.upload({ url: '/auto/wps/xlsxMaster', data }) +} diff --git a/src/views/paper/question/WpsExcelForm.vue b/src/views/paper/question/WpsXlsxForm.vue similarity index 81% rename from src/views/paper/question/WpsExcelForm.vue rename to src/views/paper/question/WpsXlsxForm.vue index 0803b16..b67fb46 100644 --- a/src/views/paper/question/WpsExcelForm.vue +++ b/src/views/paper/question/WpsXlsxForm.vue @@ -126,7 +126,7 @@ @@ -278,25 +278,26 @@ - + + + +
-
+

考点

- - - - - +
-
+

考点详情

- + diff --git a/src/views/wps/xlsx/index.vue b/src/views/wps/xlsx/index.vue index 8067853..95eb5f2 100644 --- a/src/views/wps/xlsx/index.vue +++ b/src/views/wps/xlsx/index.vue @@ -8,33 +8,7 @@ :inline="true" label-width="110px" > - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - + + + + + +