【新增】试卷参数是否删除文件,docx4j验证word

This commit is contained in:
dlaren
2025-07-21 10:35:45 +08:00
committed by 陆光LG
parent d18f83e9a4
commit 4c8284ff23
11 changed files with 1416 additions and 877 deletions

View File

@@ -1,61 +1,57 @@
import request from '@/config/axios'
export interface WordVO {
export interface DocxVO {
id?: number
nodeName: string
parentId: number
status: number
sort: number
toChinese: string
nodeFunction: string
createTime: Date
}
// 查询Word节点(精简)列表
export const getSimpleWordList = async (): Promise<WordVO[]> => {
return await request.get({ url: '/wps/word/simple-list' })
// 查询Docx节点(精简)列表
export const getSimpleDocxList = async (): Promise<DocxVO[]> => {
return await request.get({ url: '/exam/docx/simple-list' })
}
// 查询Word节点列表(小类)
export const getWordInfos = async (params: any) => {
return await request.get({ url: '/wps/word/listInfo', params })
// 查询Docx节点列表
export const getDocxPage = async (params: PageParam) => {
return await request.get({ url: '/exam/docx/list', params })
}
// 查询Word节点列表
export const getWordPage = async (params: PageParam) => {
return await request.get({ url: '/wps/word/list', params })
// 查询Docx节点详情
export const getDocx = async (id: number) => {
return await request.get({ url: '/exam/docx/get?id=' + id })
}
// 查询Word节点详情
export const getWord = async (id: number) => {
return await request.get({ url: '/wps/word/get?id=' + id })
// 新增Docx节点
export const createDocx = async (data: DocxVO) => {
return await request.post({ url: '/exam/docx/create', data: data })
}
// 新增Word节点
export const createWord = async (data: WordVO) => {
return await request.post({ url: '/wps/word/create', data: data })
// 修改Docx节点
export const updateDocx = async (params: DocxVO) => {
return await request.put({ url: '/exam/docx/update', data: params })
}
// 修改Word节点
export const updateWord = async (params: WordVO) => {
return await request.put({ url: '/wps/word/update', data: params })
// 删除Docx节点
export const deleteDocx = async (id: number) => {
return await request.delete({ url: '/exam/docx/delete?id=' + id })
}
// 删除Word节点
export const deleteWord = async (id: number) => {
return await request.delete({ url: '/wps/word/delete?id=' + id })
}
// 获取Word考点大类
export const getWordInfo = async (path: String) => {
return await request.get({ url: '/tool/wps/runWpsWord?path=' + path })
}
// 获取Word考点
export const getWordListInfos = async (data: any) => {
return await request.post({ url: '/tool/wps/runWpsWordInfo' , data })
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
export const getDocxInfos = async (title: string) => {
console.log(title)
return await request.get({ url: '/exam/docx/getByNameList?title=' + title })
}
// 2025-07-04 word统一获取考点
export const getDocxMaster = async (path: String) => {
return await request.get({ url: '/tool/wps/docxMaster?path=' + path })
return await request.get({ url: '/auto/wps/docxMaster?path=' + path })
}
// 上传文件
export const getDocxDataInfo = (data: any) => {
return request.upload({ url: '/auto/wps/docxDataInfo', data })
}