Merge remote-tracking branch 'yudao/feature/bpm' into feature/bpm-子流程

This commit is contained in:
Lesan 2025-02-25 08:33:58 +08:00
commit dc577fc0f6
5 changed files with 16 additions and 5 deletions

View File

@ -756,6 +756,7 @@ export enum TriggerTypeEnum {
* HTTP
*/
HTTP_REQUEST = 1,
// TODO @jason要不把 FORM_UPDATE、FORM_DELETE 调整从 10、11 这样?
/**
*
*/
@ -764,6 +765,7 @@ export enum TriggerTypeEnum {
*
*/
FORM_DELETE = 3,
// TODO @jason1HTTP_CALLBACK 这个枚举值然后相关注释朝着“HTTP 回调”走2枚举值改成 2
/**
* HTTP
*/
@ -795,7 +797,7 @@ export type FormTriggerSetting = {
// 条件组
conditionGroups?: ConditionGroup
// 更新表单字段配置
updateFormFields?: Record<string, any>,
updateFormFields?: Record<string, any>
// 删除表单字段配置
deleteFields?: string[]
}

View File

@ -103,6 +103,7 @@
<Icon icon="ep:plus" class="mr-5px" />添加一行
</el-button>
</el-form-item>
<!-- TODO @lesanasyncsourcetarget 几个字段会告警 -->
<el-form-item
v-if="configForm.async === false"
label="子→主变量传递"
@ -159,6 +160,7 @@
<Icon icon="ep:plus" class="mr-5px" />添加一行
</el-button>
</el-form-item>
<!-- TODO @lesanstartUserTypestartUserEmptyType 要不走写下枚举类 -->
<el-form-item label="子流程发起人" prop="startUserType">
<el-radio-group v-model="configForm.startUserType">
<el-radio :value="1">同主流程发起人</el-radio>
@ -332,6 +334,7 @@ const saveConfig = async () => {
if (!formRef) return false
const valid = await formRef.value.validate()
if (!valid) return false
// TODO @lesan option
const childInfo = childProcessOptions.value.find(
(option) => option.key === configForm.value.calledProcessDefinitionKey
)
@ -375,6 +378,7 @@ const saveConfig = async () => {
return true
}
//
// TODO @lesaninVariablesoutVariables
const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
nodeName.value = node.name
if (node.childProcessSetting) {
@ -417,6 +421,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => {
defineExpose({ openDrawer, showChildProcessNodeConfig }) //
// TODO @lesan arr cursor quick fix
const addVariable = (arr) => {
arr.push({
source: '',

View File

@ -36,6 +36,7 @@
</el-select>
</el-form-item>
<!-- HTTP 请求触发器 -->
<!-- TODO @jason可以考虑用 [].include 更简洁 -->
<div
v-if="
(configForm.type === TriggerTypeEnum.HTTP_REQUEST ||
@ -408,7 +409,8 @@ const changeTriggerType = () => {
if (configForm.value.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST) {
configForm.value.httpRequestSetting =
originalSetting?.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST && originalSetting.httpRequestSetting
originalSetting?.type === TriggerTypeEnum.ASYNC_HTTP_REQUEST &&
originalSetting.httpRequestSetting
? originalSetting.httpRequestSetting
: {
url: '',

View File

@ -66,6 +66,7 @@ import { SimpleFlowNode, NodeType, NODE_DEFAULT_TEXT } from '../consts'
import NodeHandler from '../NodeHandler.vue'
import { useNodeName2, useWatchNode, useTaskStatusClass } from '../node'
import ChildProcessNodeConfig from '../nodes-config/ChildProcessNodeConfig.vue'
defineOptions({
name: 'ChildProcessNode'
})
@ -86,6 +87,7 @@ const currentNode = useWatchNode(props)
//
const { showInput, blurEvent, clickTitle } = useNodeName2(currentNode, NodeType.CHILD_PROCESS_NODE)
const nodeSetting = ref()
//
const openNodeConfig = () => {
if (readonly) {

View File

@ -157,7 +157,7 @@ const initProcessInfo = async (row: any, formVariables?: any) => {
}
/** 预测流程节点会因为输入的参数值而产生新的预测结果值,所以需重新预测一次 */
// TODO @
// TODO @ @lesan
// watch(
// detailForm.value,
// (newValue) => {