diff --git a/ruoyi-ui/src/api/workflow/finished.js b/ruoyi-ui/src/api/workflow/finished.js index 6dd14ade..cae82088 100644 --- a/ruoyi-ui/src/api/workflow/finished.js +++ b/ruoyi-ui/src/api/workflow/finished.js @@ -34,46 +34,3 @@ export function deployStart(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 - }) -} diff --git a/ruoyi-ui/src/api/workflow/process.js b/ruoyi-ui/src/api/workflow/process.js index 67721ae2..7296372d 100644 --- a/ruoyi-ui/src/api/workflow/process.js +++ b/ruoyi-ui/src/api/workflow/process.js @@ -53,45 +53,10 @@ export function deployStart(deployId) { }) } -// 查询流程定义详细 -export function getDeployment(id) { +// 删除流程实例 +export function delProcess(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, + url: '/workflow/instance/delete/?instanceId=' + id, method: 'delete' }) } - -// 导出流程定义 -export function exportDeployment(query) { - return request({ - url: '/system/deployment/export', - method: 'get', - params: query - }) -} diff --git a/ruoyi-ui/src/api/workflow/todo.js b/ruoyi-ui/src/api/workflow/todo.js index b33ce2fb..c1f85cfc 100644 --- a/ruoyi-ui/src/api/workflow/todo.js +++ b/ruoyi-ui/src/api/workflow/todo.js @@ -70,46 +70,3 @@ export function deployStart(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 - }) -} diff --git a/ruoyi-ui/src/views/workflow/task/process/index.vue b/ruoyi-ui/src/views/workflow/task/process/index.vue index c7285d4a..a2b04455 100644 --- a/ruoyi-ui/src/views/workflow/task/process/index.vue +++ b/ruoyi-ui/src/views/workflow/task/process/index.vue @@ -155,13 +155,11 @@