diff --git a/src/api/plugin/workflow/category.js b/src/api/plugin/workflow/category.js index 91dddc7..d980996 100644 --- a/src/api/plugin/workflow/category.js +++ b/src/api/plugin/workflow/category.js @@ -2,6 +2,13 @@ import request from '@/router/axios'; const prefix = '/api/blade-workflow/design/category' +export const tree = () => { + return request({ + url: `${prefix}/tree`, + method: 'get', + }) +} + export const treeList = () => { return request({ url: `${prefix}/allTree`, diff --git a/src/api/plugin/workflow/form.js b/src/api/plugin/workflow/form.js index 06ccc6e..6235f78 100644 --- a/src/api/plugin/workflow/form.js +++ b/src/api/plugin/workflow/form.js @@ -52,4 +52,12 @@ export const listType = (params) => { method: 'get', params }) +} + +export const changeCategory = (row) => { + return request({ + url: `${prefix}/changeCategory`, + method: 'post', + data: row + }) } \ No newline at end of file diff --git a/src/api/plugin/workflow/model.js b/src/api/plugin/workflow/model.js index 79756af..32ef060 100644 --- a/src/api/plugin/workflow/model.js +++ b/src/api/plugin/workflow/model.js @@ -46,4 +46,12 @@ export const deploy = (row) => { method: 'post', data: row }) +} + +export const changeCategory = (row) => { + return request({ + url: `${prefix}/changeCategory`, + method: 'post', + data: row + }) } \ No newline at end of file diff --git a/src/views/plugin/workflow/design/deployment.vue b/src/views/plugin/workflow/design/deployment.vue index 2ef70ef..4571a24 100644 --- a/src/views/plugin/workflow/design/deployment.vue +++ b/src/views/plugin/workflow/design/deployment.vue @@ -1,48 +1,66 @@