fix: package properties flow not current when change
This commit is contained in:
parent
b87178e0b5
commit
60f93a16e0
2 changed files with 14 additions and 10 deletions
|
|
@ -22,6 +22,7 @@ const optionStore = useOptionStore();
|
|||
const props = defineProps<{
|
||||
stepIndex?: number;
|
||||
|
||||
onEdit?: boolean;
|
||||
selectFlow?: boolean;
|
||||
}>();
|
||||
|
||||
|
|
@ -267,18 +268,11 @@ function assignTemp() {
|
|||
tempWorkflowId.value = workflowId.value;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => model.value,
|
||||
() => {
|
||||
if (model.value) {
|
||||
assignTemp();
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => tempWorkflowId.value,
|
||||
async (a, b) => {
|
||||
if (props.onEdit && workflowId.value === a) return;
|
||||
|
||||
if (props.selectFlow && a !== b && a) {
|
||||
const ret = await getWorkflowTemplate(a);
|
||||
if (ret) {
|
||||
|
|
@ -294,6 +288,15 @@ watch(
|
|||
}
|
||||
},
|
||||
);
|
||||
|
||||
watch(
|
||||
() => model.value,
|
||||
() => {
|
||||
if (model.value) {
|
||||
assignTemp();
|
||||
}
|
||||
},
|
||||
);
|
||||
</script>
|
||||
<template>
|
||||
<DialogForm
|
||||
|
|
|
|||
|
|
@ -4131,7 +4131,8 @@ watch(
|
|||
<!-- service properties, work properties -->
|
||||
<DialogProperties
|
||||
v-if="workItems[currentWorkIndex]"
|
||||
selectFlow
|
||||
select-flow
|
||||
:on-edit="dialogServiceEdit"
|
||||
v-model:data-step="workItems[currentWorkIndex].attributes.workflowStep"
|
||||
v-model:workflow-id="formDataProductService.attributes.workflowId"
|
||||
v-model="propertiesDialog"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue