Files
pengcheng-exam-teacher/src/api/wps/xlsx/index.ts

46 lines
1.2 KiB
TypeScript
Raw Normal View History

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' })
}
// 查询Xlsx节点列表
export const getXlsxPage = async (params: PageParam) => {
return await request.get({ url: '/wps/xlsx/list', params })
}
// 查询Xlsx节点详情
export const getXlsx = async (id: number) => {
return await request.get({ url: '/wps/xlsx/get?id=' + id })
}
// 新增Xlsx节点
export const createXlsx = async (data: XlsxVO) => {
return await request.post({ url: '/wps/xlsx/create', data: data })
}
// 修改Xlsx节点
export const updateXlsx = async (params: XlsxVO) => {
return await request.put({ url: '/wps/xlsx/update', data: params })
}
// 删除Xlsx节点
export const deleteXlsx = async (id: number) => {
return await request.delete({ url: '/wps/xlsx/delete?id=' + id })
}
2025-06-24 11:12:34 +08:00
export const getXlsxInfo = async (path: String) => {
return await request.get({ url: '/tool/wps/runWpsXlsx?path=' + path })
}