update 修复固定值未在xml显示问题
This commit is contained in:
parent
2129f76923
commit
3de82fe3c2
@ -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>({
|
||||
|
1
src/types/bpmn/panel.d.ts
vendored
1
src/types/bpmn/panel.d.ts
vendored
@ -43,6 +43,7 @@ declare module 'bpmnDesign' {
|
||||
exclude?: boolean;
|
||||
class?: string;
|
||||
dueDate?: string;
|
||||
fixedAssignee?: string;
|
||||
|
||||
candidateUsers?: string;
|
||||
assignee?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user