diff --git a/ruoyi-ui/src/api/flowable/definition.js b/ruoyi-ui/src/api/flowable/definition.js index b2803464..a926ef5d 100644 --- a/ruoyi-ui/src/api/flowable/definition.js +++ b/ruoyi-ui/src/api/flowable/definition.js @@ -9,6 +9,15 @@ export function listDefinition(query) { }) } +// 查询流程定义我的角色相关列表 +export function myDefinitionList(query) { + return request({ + url: '/flowable/definition/myList', + method: 'get', + params: query + }) +} + // 部署流程实例 export function definitionStart(procDefId, data) { return request({ diff --git a/ruoyi-ui/src/api/publics.js b/ruoyi-ui/src/api/publics.js index 950a4afa..d6817158 100644 --- a/ruoyi-ui/src/api/publics.js +++ b/ruoyi-ui/src/api/publics.js @@ -22,12 +22,19 @@ const getZgsDeptList = () => { }) } // 获取项目 -const getMyProjectList = () => { +const getProjectList = () => { return request({ url: '/publics/projectList', method: 'get' }) } +// 获取和我相关的项目信息 +const getMyProjectList = () => { + return request({ + url: '/publics/findMyProjectList', + method: 'get' + }) +} // 获取人员 const getUserList = (data) => { return request({ @@ -65,6 +72,7 @@ export default{ getMyDeptList, getDeptTree, getZgsDeptList, + getProjectList, getMyProjectList, getUserList, queryUnitList, diff --git a/ruoyi-ui/src/components/flow/Role/index.vue b/ruoyi-ui/src/components/flow/Role/index.vue index 3c7ffd1d..faae55ef 100644 --- a/ruoyi-ui/src/components/flow/Role/index.vue +++ b/ruoyi-ui/src/components/flow/Role/index.vue @@ -1,6 +1,12 @@