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.
|
|
|
|
import request from '@/utils/request'
|
|
|
|
|
import qs from 'qs'
|
|
|
|
|
export function flow(isLoading=false) {
|
|
|
|
|
return request({
|
|
|
|
|
method: 'get',
|
|
|
|
|
url: '/api/oa/flow',
|
|
|
|
|
isLoading
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function flowList(params, type) {
|
|
|
|
|
return request({
|
|
|
|
|
method: 'get',
|
|
|
|
|
url: `/api/oa/flow/list/${type}`,
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export function preConfig(custom_model_id,isLoading=false) {
|
|
|
|
|
return request({
|
|
|
|
|
method: 'get',
|
|
|
|
|
url: `/api/oa/flow/create-pre/${custom_model_id}`,
|
|
|
|
|
isLoading
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
})
|
|
|
|
|
}
|