New file |
| | |
| | | |
| | | import request from '@/utils/request' |
| | | |
| | | export const getTypeList = (params) => { |
| | | return request({ |
| | | url: '/flowable_type/list', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | |
| | | export const getTypeTree = (params) => { |
| | | return request({ |
| | | url: '/flowable_type/tree_select', |
| | | method: 'get', |
| | | params: params |
| | | }) |
| | | } |
| | | |
| | | export const addType = (data) => { |
| | | return request({ |
| | | url: '/flowable_type', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | export const updateType = (data) => { |
| | | return request({ |
| | | url: '/flowable_type', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | |
| | | export function delType(typeId) { |
| | | return request({ |
| | | url: '/flowable_type/' + typeId, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | |