32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import request from '@/config/axios'
|
|
import type { ReportManageDTO, QueryParams, SaveParams, PageResponse } from './types'
|
|
|
|
// 查询报表管理列表
|
|
export const getReportManagePage = (params: QueryParams) => {
|
|
return request.get<PageResponse<ReportManageDTO>>({ url: '/submit/reportManage/page', params })
|
|
}
|
|
|
|
// 查询报表管理详情
|
|
export const getReportManageDetail = (id: string) => {
|
|
return request.get<ReportManageDTO>({ url: `/submit/reportManage/${id}` })
|
|
}
|
|
|
|
// 创建报表管理
|
|
export const createReportManage = (data: SaveParams) => {
|
|
return request.post({ url: '/submit/reportManage/create', data })
|
|
}
|
|
|
|
// 更新报表管理
|
|
export const updateReportManage = (data: SaveParams) => {
|
|
return request.put({ url: '/submit/reportManage/update', data })
|
|
}
|
|
|
|
// 删除报表管理
|
|
export const deleteReportManage = (id: string) => {
|
|
return request.delete({ url: `/submit/reportManage/delete/${id}` })
|
|
}
|
|
|
|
// 根据类型查询报表管理列表
|
|
export const getReportManageListByType = (type: string) => {
|
|
return request.get<ReportManageDTO[]>({ url: '/submit/reportManage/list-by-type', params: { type } })
|
|
} |