Files
admin-sjzx/src/api/bpm/processExpression/index.ts

48 lines
1.5 KiB
TypeScript
Raw Normal View History

import { requestData, requestDownload } from '@/utils/request'
2024-05-09 14:18:39 +08:00
// BPM 流程表达式 VO
export interface ProcessExpressionVO {
id: number // 编号
name: string // 表达式名字
status: number // 表达式状态
expression: string // 表达式
}
// BPM 流程表达式 API
export const ProcessExpressionApi = {
// 查询BPM 流程表达式分页
getProcessExpressionPage: async (params: any) => {
return await requestData({ url: '/bpm/process-expression/page', method: 'GET', params })
2024-05-09 14:18:39 +08:00
},
// 查询BPM 流程表达式详情
getProcessExpression: async (id: number) => {
return await requestData({ url: '/bpm/process-expression/get?id=' + id, method: 'GET' })
2024-05-09 14:18:39 +08:00
},
// 新增BPM 流程表达式
createProcessExpression: async (data: ProcessExpressionVO) => {
return await requestData({ url: '/bpm/process-expression/create', method: 'POST', data })
2024-05-09 14:18:39 +08:00
},
// 修改BPM 流程表达式
updateProcessExpression: async (data: ProcessExpressionVO) => {
return await requestData({ url: '/bpm/process-expression/update', method: 'PUT', data })
2024-05-09 14:18:39 +08:00
},
// 删除BPM 流程表达式
deleteProcessExpression: async (id: number) => {
return await requestData({ url: '/bpm/process-expression/delete?id=' + id, method: 'DELETE' })
2024-05-09 14:18:39 +08:00
},
// 导出BPM 流程表达式 Excel
exportProcessExpression: async (params) => {
return await requestDownload({
url: '/bpm/process-expression/export-excel',
method: 'GET',
params,
responseType: 'blob'
})
2024-05-09 14:18:39 +08:00
}
}