feat: [BPM 工作流] Simple 模型新增跳过表达式

This commit is contained in:
jason
2025-08-05 22:58:11 +08:00
parent 8e4ea3ca44
commit 849f2becd8
5 changed files with 32 additions and 6 deletions

View File

@@ -359,7 +359,8 @@ async function saveConfig() {
currentNode.value.signEnable = configForm.value.signEnable;
// 审批意见
currentNode.value.reasonRequire = configForm.value.reasonRequire;
// 跳过表达式
currentNode.value.skipExpression = configForm.value.skipExpression;
currentNode.value.showText = getShowText();
drawerApi.close();
return true;
@@ -443,7 +444,8 @@ function showUserTaskNodeConfig(node: SimpleFlowNode) {
configForm.value.signEnable = node?.signEnable ?? false;
// 7. 审批意见
configForm.value.reasonRequire = node?.reasonRequire ?? false;
// 8. 跳过表达式
configForm.value.skipExpression = node?.skipExpression ?? '';
drawerApi.open();
}
@@ -850,7 +852,7 @@ onMounted(() => {
label="流程表达式"
name="expression"
>
<Textarea v-model:value="configForm.expression" clearable />
<Textarea v-model:value="configForm.expression" allow-clear />
</FormItem>
<!-- 多人审批/办理 方式 -->
<FormItem :label="`多人${nodeTypeName}方式`" name="approveMethod">
@@ -1117,6 +1119,16 @@ onMounted(() => {
/>
</FormItem>
</div>
<div>
<Divider content-position="left">跳过表达式</Divider>
<FormItem prop="skipExpression">
<Textarea
v-model:value="configForm.skipExpression"
allow-clear
:rows="2"
/>
</FormItem>
</div>
</Form>
</div>
</TabPane>

View File

@@ -602,6 +602,8 @@ export interface SimpleFlowNode {
signEnable?: boolean;
// 审批意见
reasonRequire?: boolean;
// 跳过表达式
skipExpression?: string;
// 触发器设置
triggerSetting?: TriggerSetting;
// 子流程

View File

@@ -214,6 +214,7 @@ export type UserTaskFormType = {
returnNodeId?: string;
roleIds?: number[]; // 角色
signEnable: boolean;
skipExpression?: string; // 跳过表达式
taskAssignListener?: {
body: HttpRequestParam[];
header: HttpRequestParam[];