feat: 新增需求
This commit is contained in:
@@ -1,4 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getDesForm(modelId,data) {
|
||||
return request({
|
||||
url: `/admin-api/MobileMenu/desform/${modelId}`,
|
||||
method: 'POST',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取表单id
|
||||
export function getProcessBusinessInfo(id) {
|
||||
return request({
|
||||
url: `/admin-api/MobileProcess/getProcessBusinessInfo?processInstanceId=${id}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取流程表单
|
||||
export function getdbformlist(dbFormId) {
|
||||
return request({
|
||||
url: `/admin-api/bpm/process-definition/dbformlist?dbFormId=${dbFormId}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
// 获取审批节点
|
||||
export function getAssignList(id) {
|
||||
return request({
|
||||
url: `/admin-api/bpm/task-assign-rule/list?processDefinitionId=${id}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 发起流程
|
||||
export function getListCreate(data,id) {
|
||||
return request({
|
||||
url: `/admin-api/MobileMenu/addMobileProcessLog/${id}`,
|
||||
method: 'POST',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取审批记录数据
|
||||
export function getByProcess(id) {
|
||||
return request({
|
||||
url: `/admin-api/bpm/task/list-by-process-instance-id?processInstanceId=${id}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取列表表单配置JSON
|
||||
export function getConfigData(modelId, menuId) {
|
||||
return request({
|
||||
@@ -25,10 +78,33 @@ export function getModelList(modelId, data, options) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取数据列表
|
||||
export function getModelDataList(id, data, options) {
|
||||
return request({
|
||||
url: `/admin-api/MobileMenu/list/${id}`,
|
||||
method: 'POST',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 获取申请单位下拉选项
|
||||
export function getDbfromList(id, data={}, options) {
|
||||
return request({
|
||||
url: `/admin-api/jeelowcode/dbform-data/list/${id}`,
|
||||
method: 'POST',
|
||||
data,
|
||||
options: {
|
||||
load: false
|
||||
}
|
||||
})
|
||||
}
|
||||
// 添加数据
|
||||
export function createModel(modelId, data) {
|
||||
return request({
|
||||
url: `/api/visualdev/OnlineDev/${modelId}?menuId=${data.menuId}`,
|
||||
url: `/admin-api/MobileMenu/addMobileOperateLog/${modelId}`,
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
@@ -42,10 +118,10 @@ export function updateModel(modelId, data) {
|
||||
})
|
||||
}
|
||||
// 获取数据信息
|
||||
export function getModelInfo(modelId, id, menuId) {
|
||||
export function getModelInfo(modelId, id) {
|
||||
return request({
|
||||
url: `/api/visualdev/OnlineDev/${modelId}/${id}?menuId=${menuId}`,
|
||||
method: 'GET'
|
||||
url: `/admin-api/jeelowcode/dbform-data/detail/${modelId}/${id}`,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
// 删除数据
|
||||
|
||||
Reference in New Issue
Block a user