You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
913 B

1 year ago
import request from '@/utils/request'
1 year ago
import qs from 'qs'
1 year ago
export function flow(isLoading=false) {
return request({
method: 'get',
url: '/api/oa/flow',
isLoading
})
}
1 year ago
export function flowList(params, type) {
return request({
method: 'get',
url: `/api/oa/flow/list/${type}`,
params
})
}
1 year ago
export function preConfig(custom_model_id,isLoading=false) {
return request({
method: 'get',
url: `/api/oa/flow/create-pre/${custom_model_id}`,
isLoading
})
}
1 year ago
export function create(data,custom_model_id) {
return request({
method: 'post',
url: `/api/oa/flow/create/${custom_model_id}`,
data: qs.stringify(data, { arrayFormat: 'brackets' }),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
})
}
export function deal(data,flow_id) {
return request({
method: 'post',
url: `/api/oa/flow/deal/${flow_id}`,
data
})
}