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({ 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' START_USER_ID = 'PROCESS_START_USER_ID'
} }
/**
*
*/
export enum ProcessTypeEnum {
/**
*
*/
MAIN = 1,
/**
*
*/
CHILD = 2
}

View File

@ -98,13 +98,14 @@
</el-drawer> </el-drawer>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { getChildProcessSimpleList } from '@/api/bpm/definition' import { getProcessListByProcessType } from '@/api/bpm/definition'
import { import {
SimpleFlowNode, SimpleFlowNode,
NodeType, NodeType,
APPROVE_METHODS, APPROVE_METHODS,
ApproveMethodType, ApproveMethodType,
CandidateStrategy CandidateStrategy,
ProcessTypeEnum
} from '../consts' } from '../consts'
import { useWatchNode, useDrawer, useNodeName } from '../node' import { useWatchNode, useDrawer, useNodeName } from '../node'
defineOptions({ defineOptions({
@ -193,7 +194,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
defineExpose({ openDrawer, showChildProcessNodeConfig }) // defineExpose({ openDrawer, showChildProcessNodeConfig }) //
onMounted(async () => { onMounted(async () => {
childProcessOptions.value = await getChildProcessSimpleList() childProcessOptions.value = await getProcessListByProcessType(ProcessTypeEnum.CHILD)
}) })
</script> </script>