fix: bug #182 handle product group delete in tree
This commit is contained in:
parent
62aaf807eb
commit
dec7bf3014
1 changed files with 10 additions and 0 deletions
|
|
@ -1262,6 +1262,11 @@ async function submitService(notClose = false) {
|
||||||
onCreateImageList.value,
|
onCreateImageList.value,
|
||||||
);
|
);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
const group = productGroup.value?.find(
|
||||||
|
(g) => g.id === currentIdGroup.value,
|
||||||
|
);
|
||||||
|
if (group) group.status = 'ACTIVE';
|
||||||
|
|
||||||
allStat.value[1].count = allStat.value[1].count + 1;
|
allStat.value[1].count = allStat.value[1].count + 1;
|
||||||
stat.value[1].count = stat.value[1].count + 1;
|
stat.value[1].count = stat.value[1].count + 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1306,6 +1311,11 @@ async function submitProduct(notClose = false) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
const group = productGroup.value?.find(
|
||||||
|
(g) => g.id === currentIdGroup.value,
|
||||||
|
);
|
||||||
|
if (group) group.status = 'ACTIVE';
|
||||||
|
|
||||||
allStat.value[2].count = allStat.value[2].count + 1;
|
allStat.value[2].count = allStat.value[2].count + 1;
|
||||||
stat.value[2].count = stat.value[2].count + 1;
|
stat.value[2].count = stat.value[2].count + 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue