Merge branch 'master' of http://192.168.1.22:3000/frontend/admin-sjzx
# Conflicts: # src/views/pqs/task/myTask/index.vue
This commit is contained in:
@@ -17,7 +17,7 @@ export function updateTemplateActive(data) {
|
||||
}
|
||||
|
||||
//获取报表模板 //部门树查询
|
||||
export function getTemplateList(data) {
|
||||
export function getTemplateList(data:any) {
|
||||
return createAxios({
|
||||
url: '/harmonic-boot/customReport/getTemplateList',
|
||||
// url:'/api3/harmonic-boot/customReport/getTemplateList',
|
||||
|
||||
154
src/api/task/definition.ts
Normal file
154
src/api/task/definition.ts
Normal file
@@ -0,0 +1,154 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 流程节点数据
|
||||
export function flowXmlAndNode(query) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/task/flowXmlAndNode',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 查询流程定义列表
|
||||
export function listDefinition(query) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/definition/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function definitionStart(procDefId, data) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/definition/start/' + procDefId,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取流程变量
|
||||
export function getProcessVariables(taskId) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/task/processVariables/' + taskId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 激活/挂起流程
|
||||
export function updateState(params) {
|
||||
return request({
|
||||
url: '/flowable/definition/updateState',
|
||||
method: 'put',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
// 指定流程办理人员列表
|
||||
export function userList(query) {
|
||||
return request({
|
||||
url: '/flowable/definition/userList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 指定流程办理组列表
|
||||
export function roleList(query) {
|
||||
return request({
|
||||
url: '/flowable/definition/roleList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 指定流程表达式
|
||||
export function expList(query) {
|
||||
return request({
|
||||
url: '/flowable/definition/expList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 读取xml文件
|
||||
export function readXml(deployId) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/definition/readXml',
|
||||
method: 'get',
|
||||
params: deployId
|
||||
})
|
||||
}
|
||||
|
||||
// 读取image文件
|
||||
export function readImage(deployId) {
|
||||
return request({
|
||||
url: '/flowable/definition/readImage/' + deployId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取流程执行节点
|
||||
export function getFlowViewer(procInsId, executionId) {
|
||||
return request({
|
||||
url: '/flowable/task/flowViewer/' + procInsId + '/' + executionId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 保存xml文件
|
||||
export function saveXml(data) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/definition/save',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(deployId) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/definition/delete',
|
||||
method: 'post',
|
||||
data: deployId
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function assFormWithDeploy(data) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/definition/assFormWithDeploy',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
81
src/api/task/finished.ts
Normal file
81
src/api/task/finished.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 查询已办任务列表
|
||||
export function finishedList(query) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/task/finishedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 任务流转记录
|
||||
export function flowRecord(query) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/task/flowRecord',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 撤回任务
|
||||
export function revokeProcess(data) {
|
||||
return request({
|
||||
url: '/flowable/task/revokeProcess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(data) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/instance/delete',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
106
src/api/task/process.ts
Normal file
106
src/api/task/process.ts
Normal file
@@ -0,0 +1,106 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 我的发起的流程
|
||||
export function myProcessList(query) {
|
||||
return request({
|
||||
url: '/process-boot/flowable/task/myProcess',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function flowFormData(query) {
|
||||
return request({
|
||||
url: '/flowable/task/flowFormData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 取消申请
|
||||
export function stopProcess(data) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/task/stopProcess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/flowable/task/reject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
133
src/api/task/todo.ts
Normal file
133
src/api/task/todo.ts
Normal file
@@ -0,0 +1,133 @@
|
||||
import request from '@/utils/request'
|
||||
import da from "element-ui/src/locale/lang/da";
|
||||
|
||||
// 查询待办任务列表
|
||||
export function todoList(query) {
|
||||
return request({
|
||||
url: 'process-boot/flowable/task/todoList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 完成任务
|
||||
export function complete(data) {
|
||||
return request({
|
||||
url: '/flowable/task/complete',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 委派任务
|
||||
export function delegate(data) {
|
||||
return request({
|
||||
url: '/flowable/task/delegate',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 退回任务
|
||||
export function returnTask(data) {
|
||||
return request({
|
||||
url: '/flowable/task/return',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 驳回任务
|
||||
export function rejectTask(data) {
|
||||
return request({
|
||||
url: '/flowable/task/reject',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 可退回任务列表
|
||||
export function returnList(data) {
|
||||
return request({
|
||||
url: '/flowable/task/returnList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNode(data) {
|
||||
return request({
|
||||
url: '/flowable/task/nextFlowNode',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 下一节点
|
||||
export function getNextFlowNodeByStart(data) {
|
||||
return request({
|
||||
url: '/flowable/task/nextFlowNodeByStart',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 部署流程实例
|
||||
export function deployStart(deployId) {
|
||||
return request({
|
||||
url: '/flowable/process/startFlow/' + deployId,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 查询流程定义详细
|
||||
export function getDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增流程定义
|
||||
export function addDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改流程定义
|
||||
export function updateDeployment(data) {
|
||||
return request({
|
||||
url: '/system/deployment',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除流程定义
|
||||
export function delDeployment(id) {
|
||||
return request({
|
||||
url: '/system/deployment/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出流程定义
|
||||
export function exportDeployment(query) {
|
||||
return request({
|
||||
url: '/system/deployment/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 流程节点表单
|
||||
export function flowTaskForm(query) {
|
||||
return request({
|
||||
url: '/flowable/task/flowTaskForm',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user