update 修复固定值未在xml显示问题

This commit is contained in:
LiuHao 2024-02-21 10:43:05 +08:00
parent 2129f76923
commit 3de82fe3c2
2 changed files with 9 additions and 1 deletions

View File

@ -65,7 +65,7 @@
</el-select>
</el-form-item>
<el-form-item v-if="formData.allocationType === AllocationTypeEnum.USER" label="分配人员">
<el-input v-model="assignee.userName">
<el-input v-model="formData.fixedAssignee" @change="fixedAssigneeChange">
<template #append>
<el-button icon="Search" size="small" type="primary" @click="proxy.$modal.msgWarning('开发中。。。。。。')" />
</template>
@ -354,6 +354,9 @@ const skipExpressionChange = (newVal) => {
const priorityChange = (newVal) => {
updateProperties({ 'flowable:priority': newVal });
};
const fixedAssigneeChange = (newVal) => {
updateProperties({ 'flowable:assignee': newVal && newVal.length > 0 ? newVal : undefined });
};
const multiInstanceTypeChange = (newVal) => {
if (newVal !== MultiInstanceTypeEnum.NONE) {
let loopCharacteristics = props.element.businessObject.get('loopCharacteristics');
@ -432,6 +435,10 @@ onBeforeMount(() => {
formData.value.completionCondition = loopCharacteristics.completionCondition?.body || '';
formData.value.multiInstanceType = loopCharacteristics.isSequential ? MultiInstanceTypeEnum.SERIAL : MultiInstanceTypeEnum.PARALLEL;
}
if (formData.value.assignee) {
formData.value.fixedAssignee = formData.value.assignee;
}
});
const formRules = ref<ElFormRules>({

View File

@ -43,6 +43,7 @@ declare module 'bpmnDesign' {
exclude?: boolean;
class?: string;
dueDate?: string;
fixedAssignee?: string;
candidateUsers?: string;
assignee?: string;