| | |
| | | bpmnXml: string |
| | | } |
| | | |
| | | export const getModelPage = async (params) => { |
| | | return await request.get({ url: '/bpm/model/page', params }) |
| | | export const getModelList = async (name: string | undefined) => { |
| | | return await request.get({ url: '/bpm/model/list', params: { name } }) |
| | | } |
| | | |
| | | export const getModel = async (id: number) => { |
| | | export const getModel = async (id: string) => { |
| | | return await request.get({ url: '/bpm/model/get?id=' + id }) |
| | | } |
| | | |
| | |
| | | return await request.put({ url: '/bpm/model/update', data: data }) |
| | | } |
| | | |
| | | // 批量修改流程分类的排序 |
| | | export const updateModelSortBatch = async (ids: number[]) => { |
| | | return await request.put({ |
| | | url: `/bpm/model/update-sort-batch`, |
| | | params: { |
| | | ids: ids.join(',') |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const updateModelBpmn = async (data: ModelVO) => { |
| | | return await request.put({ url: '/bpm/model/update-bpmn', data: data }) |
| | | } |
| | | |
| | | // 任务状态修改 |
| | | export const updateModelState = async (id: number, state: number) => { |
| | | const data = { |