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<{
|
const props = defineProps<{
|
||||||
stepIndex?: number;
|
stepIndex?: number;
|
||||||
|
|
||||||
|
onEdit?: boolean;
|
||||||
selectFlow?: boolean;
|
selectFlow?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
|
@ -267,18 +268,11 @@ function assignTemp() {
|
||||||
tempWorkflowId.value = workflowId.value;
|
tempWorkflowId.value = workflowId.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
|
||||||
() => model.value,
|
|
||||||
() => {
|
|
||||||
if (model.value) {
|
|
||||||
assignTemp();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => tempWorkflowId.value,
|
() => tempWorkflowId.value,
|
||||||
async (a, b) => {
|
async (a, b) => {
|
||||||
|
if (props.onEdit && workflowId.value === a) return;
|
||||||
|
|
||||||
if (props.selectFlow && a !== b && a) {
|
if (props.selectFlow && a !== b && a) {
|
||||||
const ret = await getWorkflowTemplate(a);
|
const ret = await getWorkflowTemplate(a);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
@ -294,6 +288,15 @@ watch(
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => model.value,
|
||||||
|
() => {
|
||||||
|
if (model.value) {
|
||||||
|
assignTemp();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<DialogForm
|
<DialogForm
|
||||||
|
|
|
||||||
|
|
@ -4131,7 +4131,8 @@ watch(
|
||||||
<!-- service properties, work properties -->
|
<!-- service properties, work properties -->
|
||||||
<DialogProperties
|
<DialogProperties
|
||||||
v-if="workItems[currentWorkIndex]"
|
v-if="workItems[currentWorkIndex]"
|
||||||
selectFlow
|
select-flow
|
||||||
|
:on-edit="dialogServiceEdit"
|
||||||
v-model:data-step="workItems[currentWorkIndex].attributes.workflowStep"
|
v-model:data-step="workItems[currentWorkIndex].attributes.workflowStep"
|
||||||
v-model:workflow-id="formDataProductService.attributes.workflowId"
|
v-model:workflow-id="formDataProductService.attributes.workflowId"
|
||||||
v-model="propertiesDialog"
|
v-model="propertiesDialog"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue