2025-05-14 17:23:36 +08:00
|
|
|
|
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<PptxVO[]> => {
|
|
|
|
|
return await request.get({ url: '/wps/pptx/simple-list' })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询Pptx节点列表
|
|
|
|
|
export const getPptxPage = async (params: PageParam) => {
|
|
|
|
|
return await request.get({ url: '/wps/pptx/list', params })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询Pptx节点详情
|
|
|
|
|
export const getPptx = async (id: number) => {
|
|
|
|
|
return await request.get({ url: '/wps/pptx/get?id=' + id })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增Pptx节点
|
|
|
|
|
export const createPptx = async (data: PptxVO) => {
|
|
|
|
|
return await request.post({ url: '/wps/pptx/create', data: data })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改Pptx节点
|
|
|
|
|
export const updatePptx = async (params: PptxVO) => {
|
|
|
|
|
return await request.put({ url: '/wps/pptx/update', data: params })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除Pptx节点
|
|
|
|
|
export const deletePptx = async (id: number) => {
|
|
|
|
|
return await request.delete({ url: '/wps/pptx/delete?id=' + id })
|
|
|
|
|
}
|
2025-05-29 15:39:50 +08:00
|
|
|
|
// 获取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 })
|
|
|
|
|
}
|
|
|
|
|
// 获取Pptx考点()
|
|
|
|
|
export const getPptxListInfos = async (data: any) => {
|
|
|
|
|
return await request.post({ url: '/tool/wps/runWpsPptxInfo' , data })
|
|
|
|
|
}
|