【修改】 word出题页面

This commit is contained in:
dlaren
2025-07-29 19:56:47 +08:00
committed by 陆光LG
parent d56d084a4f
commit cdeed046cb
4 changed files with 99 additions and 190 deletions

View File

@@ -1,6 +1,6 @@
import request from '@/config/axios'
export interface DocxVO {
export interface WordVO {
id?: number
parentId: number
status: number
@@ -9,49 +9,53 @@ export interface DocxVO {
}
// 查询Docx节点精简)列表
export const getSimpleDocxList = async (): Promise<DocxVO[]> => {
export const getSimpleWordList = async (): Promise<WordVO[]> => {
return await request.get({ url: '/exam/docx/simple-list' })
}
// 查询Docx节点列表
export const getDocxPage = async (params: PageParam) => {
export const getWordPage = async (params: PageParam) => {
return await request.get({ url: '/exam/docx/list', params })
}
// 查询Docx节点详情
export const getDocx = async (id: number) => {
export const getWord = async (id: number) => {
return await request.get({ url: '/exam/docx/get?id=' + id })
}
// 新增Docx节点
export const createDocx = async (data: DocxVO) => {
export const createWord = async (data: WordVO) => {
return await request.post({ url: '/exam/docx/create', data: data })
}
// 修改Docx节点
export const updateDocx = async (params: DocxVO) => {
export const updateWord = async (params: WordVO) => {
return await request.put({ url: '/exam/docx/update', data: params })
}
// 删除Docx节点
export const deleteDocx = async (id: number) => {
export const deleteWord = async (id: number) => {
return await request.delete({ url: '/exam/docx/delete?id=' + id })
}
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
export const getDocxInfos = async (title: string) => {
export const getDocxByNameList = 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) => {
export const getWordMaster = async (path: String) => {
return await request.get({ url: '/auto/wps/docxMaster?path=' + path })
}
// 上传文件
export const getDocxDataInfo = (data: any) => {
export const getWordDataInfo = (data: any) => {
return request.upload({ url: '/auto/wps/docxDataInfo', data })
}
export const getdocxMaster = (data: any) => {
return request.upload({ url: '/auto/wps/docxMaster', data })
}