From 06f5d5f65c93bcc664d6e7f3aaf1b2be2c6a3494 Mon Sep 17 00:00:00 2001 From: dlaren Date: Fri, 8 Aug 2025 14:55:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E8=AF=95=E9=A2=98=E5=AE=A1=E6=A0=B8=EF=BC=8C=E8=AF=95=E9=A2=98?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E3=80=81=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/paper/question/index.ts | 7 ++- src/views/paper/question/index.vue | 88 +++++++++++++++++++++++------- 2 files changed, 73 insertions(+), 22 deletions(-) diff --git a/src/api/paper/question/index.ts b/src/api/paper/question/index.ts index 5882c94..a59da4b 100644 --- a/src/api/paper/question/index.ts +++ b/src/api/paper/question/index.ts @@ -26,7 +26,10 @@ export const getQuestionAuditList = (params: QuestionQueryVO) => { export async function auditQuestion(data) { - return await request.post({ url: '/rabbitmq/send' ,data }) + return await request.post({ url: '/rabbitmq/sendAudio' ,data }) +} +export async function auditQuestionTrue(data) { + return await request.post({ url: '/exam/question/auditQuestion' ,data }) } export async function rabbitmqConnect() { return await request.post({ url: '/rabbitmq/connect' }) @@ -170,4 +173,4 @@ export const setPsPoint = (data) => { export const getPsPointByQuId = (id) => { return request.get({ url: `/exam/getPoints/getPsPointById/${id}` }) -} \ No newline at end of file +} diff --git a/src/views/paper/question/index.vue b/src/views/paper/question/index.vue index e8927f5..67fc44b 100644 --- a/src/views/paper/question/index.vue +++ b/src/views/paper/question/index.vue @@ -113,9 +113,12 @@ - + 推送审核试题 + + 审核试题 + --> - + + + @@ -253,26 +268,23 @@ :inline="true" label-width="68px" > - + - 搜索 - 重置 - - - + + - From ea8112e563afd6a690021fb70427e62bd413e625 Mon Sep 17 00:00:00 2001 From: dlaren Date: Sun, 10 Aug 2025 02:22:41 +0800 Subject: [PATCH 2/2] =?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" > - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - + + + + + +