Files
pengcheng-exam-teacher/src/api/wps/xlsx/index.ts
2025-08-13 09:02:55 +08:00

46 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 })
}
export const getXlsxInfo = async (path: String) => {
return await request.get({ url: '/tool/wps/runWpsXlsx?path=' + path })
}