【新增】 WPS相关提交
This commit is contained in:
@@ -2,54 +2,52 @@ 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' })
|
||||
return await request.get({ url: '/exam/pptx/simple-list' })
|
||||
}
|
||||
|
||||
// 查询Pptx节点列表
|
||||
export const getPptxPage = async (params: PageParam) => {
|
||||
return await request.get({ url: '/wps/pptx/list', params })
|
||||
return await request.get({ url: '/exam/pptx/list', params })
|
||||
}
|
||||
|
||||
// 查询Pptx节点详情
|
||||
export const getPptx = async (id: number) => {
|
||||
return await request.get({ url: '/wps/pptx/get?id=' + id })
|
||||
return await request.get({ url: '/exam/pptx/get?id=' + id })
|
||||
}
|
||||
|
||||
// 新增Pptx节点
|
||||
export const createPptx = async (data: PptxVO) => {
|
||||
return await request.post({ url: '/wps/pptx/create', data: data })
|
||||
return await request.post({ url: '/exam/pptx/create', data: data })
|
||||
}
|
||||
|
||||
// 修改Pptx节点
|
||||
export const updatePptx = async (params: PptxVO) => {
|
||||
return await request.put({ url: '/wps/pptx/update', data: params })
|
||||
return await request.put({ url: '/exam/pptx/update', data: params })
|
||||
}
|
||||
|
||||
// 删除Pptx节点
|
||||
export const deletePptx = async (id: number) => {
|
||||
return await request.delete({ url: '/wps/pptx/delete?id=' + id })
|
||||
return await request.delete({ url: '/exam/pptx/delete?id=' + id })
|
||||
}
|
||||
// 获取Word考点(大类)
|
||||
// // 获取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 })
|
||||
// 查询Word节点列表(小类) 根据title查询出来下面所有的数据
|
||||
export const getPptxInfos = async (title: string) => {
|
||||
console.log(title)
|
||||
return await request.get({ url: '/exam/pptx/getByNameList?title=' + title })
|
||||
}
|
||||
// 获取Pptx考点()
|
||||
// // 获取Pptx考点()
|
||||
export const getPptxListInfos = async (data: any) => {
|
||||
return await request.post({ url: '/tool/wps/runWpsPptxInfo' , data })
|
||||
return await request.post({ url: '/tool/wps/runTestpptx' , data })
|
||||
}
|
||||
|
Reference in New Issue
Block a user