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({
|
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'
|
START_USER_ID = 'PROCESS_START_USER_ID'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程类型枚举
|
||||||
|
*/
|
||||||
|
export enum ProcessTypeEnum {
|
||||||
|
/**
|
||||||
|
* 主流程
|
||||||
|
*/
|
||||||
|
MAIN = 1,
|
||||||
|
/**
|
||||||
|
* 子流程
|
||||||
|
*/
|
||||||
|
CHILD = 2
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue