fix: data not append if key not exists
This commit is contained in:
parent
c9da7ed59f
commit
61501dba8d
1 changed files with 7 additions and 8 deletions
|
|
@ -262,14 +262,12 @@ const responsiblePersonList = computed(() => {
|
||||||
curr.productService.service?.workflow?.step.forEach((v) => {
|
curr.productService.service?.workflow?.step.forEach((v) => {
|
||||||
const key = v.order.toString();
|
const key = v.order.toString();
|
||||||
|
|
||||||
if (!acc[key]) {
|
if (!acc[key]) acc[key] = [];
|
||||||
acc[key] = [];
|
|
||||||
} else {
|
|
||||||
v.responsiblePerson.forEach((lhs) => {
|
v.responsiblePerson.forEach((lhs) => {
|
||||||
if (acc[v.order].find((rhs) => rhs.id === lhs.userId)) return;
|
if (acc[v.order].find((rhs) => rhs.id === lhs.userId)) return;
|
||||||
acc[v.order].push(lhs.user);
|
acc[v.order].push(lhs.user);
|
||||||
});
|
});
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return acc;
|
return acc;
|
||||||
|
|
@ -612,6 +610,7 @@ function isInstallmentPaySuccess(installmentNo: number) {
|
||||||
<ProductExpansion
|
<ProductExpansion
|
||||||
:cancel="data.requestDataStatus === RequestDataStatus.Canceled"
|
:cancel="data.requestDataStatus === RequestDataStatus.Canceled"
|
||||||
:readonly="data.requestDataStatus === RequestDataStatus.Canceled"
|
:readonly="data.requestDataStatus === RequestDataStatus.Canceled"
|
||||||
|
:order-able="value._formExpansion"
|
||||||
:installment-info="getInstallmentInfo()"
|
:installment-info="getInstallmentInfo()"
|
||||||
:pay-success="
|
:pay-success="
|
||||||
isInstallmentPaySuccess(value.productService.installmentNo)
|
isInstallmentPaySuccess(value.productService.installmentNo)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue