refactor: handle status
This commit is contained in:
parent
fa9b59680f
commit
ed6a0cee3d
6 changed files with 23 additions and 15 deletions
|
|
@ -1118,6 +1118,7 @@ async function submitService(notClose = false) {
|
|||
const res = await createService(
|
||||
{
|
||||
...formDataProductService.value,
|
||||
|
||||
workflowId: currWorkflow.value?.id || '',
|
||||
},
|
||||
onCreateImageList.value,
|
||||
|
|
@ -1197,7 +1198,11 @@ async function submitGroup() {
|
|||
await editProductGroup(currentIdGroupTree.value, formDataGroup.value);
|
||||
else await editProductGroup(currentIdGroup.value, formDataGroup.value);
|
||||
} else {
|
||||
const res = await createProductGroup(formDataGroup.value);
|
||||
const res = await createProductGroup({
|
||||
...formDataGroup.value,
|
||||
status:
|
||||
currentStatusGroupType.value === 'CREATED' ? undefined : 'INACTIVE',
|
||||
});
|
||||
|
||||
if (res) {
|
||||
allStat.value[0].count = allStat.value[0].count + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue