refactor: handle submit work properties
This commit is contained in:
parent
e902bcce8d
commit
925ed7dd9e
2 changed files with 39 additions and 90 deletions
|
|
@ -69,11 +69,13 @@ const typeOption = [
|
|||
];
|
||||
|
||||
function submit() {
|
||||
console.log(tempStep.value);
|
||||
workflowId.value = tempWorkflowId.value;
|
||||
dataStep.value = JSON.parse(JSON.stringify(tempStep.value));
|
||||
model.value = false;
|
||||
|
||||
if (props.selectFlow && currWorkflow.value) {
|
||||
console.log(JSON.parse(JSON.stringify(currWorkflow.value)));
|
||||
emit('submit', currWorkflow.value);
|
||||
}
|
||||
}
|
||||
|
|
@ -276,7 +278,7 @@ watch(
|
|||
if (props.selectFlow && a !== b && a) {
|
||||
const ret = await getWorkflowTemplate(a);
|
||||
if (ret) {
|
||||
currWorkflow.value = ret;
|
||||
currWorkflow.value = JSON.parse(JSON.stringify(ret));
|
||||
tempStep.value =
|
||||
ret.step?.length > 0
|
||||
? ret.step.map((s) => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue