fix: 获取流程接口变更

pull/624/head
Lesan 2024-12-19 09:54:35 +08:00
parent f89564f81c
commit f57910b32a
3 changed files with 20 additions and 5 deletions

View File

@ -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
})
}

View File

@ -577,3 +577,17 @@ export enum ProcessVariableEnum {
*/
START_USER_ID = 'PROCESS_START_USER_ID'
}
/**
*
*/
export enum ProcessTypeEnum {
/**
*
*/
MAIN = 1,
/**
*
*/
CHILD = 2
}

View File

@ -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>