fix: 获取流程接口变更
parent
f89564f81c
commit
f57910b32a
|
|
@ -21,8 +21,8 @@ export const getProcessDefinitionList = async (params) => {
|
|||
})
|
||||
}
|
||||
|
||||
export const getChildProcessSimpleList = async () => {
|
||||
export const getProcessListByProcessType = async (processType) => {
|
||||
return await request.get({
|
||||
url: '/bpm/process-definition/child-process/list-all-simple'
|
||||
url: '/bpm/process-definition/list-all-simple?processType=' + processType
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -577,3 +577,17 @@ export enum ProcessVariableEnum {
|
|||
*/
|
||||
START_USER_ID = 'PROCESS_START_USER_ID'
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程类型枚举
|
||||
*/
|
||||
export enum ProcessTypeEnum {
|
||||
/**
|
||||
* 主流程
|
||||
*/
|
||||
MAIN = 1,
|
||||
/**
|
||||
* 子流程
|
||||
*/
|
||||
CHILD = 2
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,13 +98,14 @@
|
|||
</el-drawer>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { getChildProcessSimpleList } from '@/api/bpm/definition'
|
||||
import { getProcessListByProcessType } from '@/api/bpm/definition'
|
||||
import {
|
||||
SimpleFlowNode,
|
||||
NodeType,
|
||||
APPROVE_METHODS,
|
||||
ApproveMethodType,
|
||||
CandidateStrategy
|
||||
CandidateStrategy,
|
||||
ProcessTypeEnum
|
||||
} from '../consts'
|
||||
import { useWatchNode, useDrawer, useNodeName } from '../node'
|
||||
defineOptions({
|
||||
|
|
@ -193,7 +194,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
|
|||
defineExpose({ openDrawer, showChildProcessNodeConfig }) // 暴露方法给父组件
|
||||
|
||||
onMounted(async () => {
|
||||
childProcessOptions.value = await getChildProcessSimpleList()
|
||||
childProcessOptions.value = await getProcessListByProcessType(ProcessTypeEnum.CHILD)
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue