【新增】 xlsx相关页面
This commit is contained in:
@@ -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 })
|
||||
|
@@ -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<XlsxVO[]> => {
|
||||
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 })
|
||||
}
|
||||
// 查询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 })
|
||||
}
|
||||
|
Reference in New Issue
Block a user