fix: 开站网元安装信息保存触发操作不一致
This commit is contained in:
@@ -396,10 +396,6 @@ function fnStepPrev() {
|
|||||||
|
|
||||||
/**下一步操作 先全部集体发过去请求新增 */
|
/**下一步操作 先全部集体发过去请求新增 */
|
||||||
function fnStepNext(stepName: 'NeInfoConfigPara5G') {
|
function fnStepNext(stepName: 'NeInfoConfigPara5G') {
|
||||||
let promises = tabState.panes.map((item: any) => {
|
|
||||||
return item.id ? updateNeInfo(item) : addNeInfo(item);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (stepName === 'NeInfoConfigPara5G') {
|
if (stepName === 'NeInfoConfigPara5G') {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
@@ -408,9 +404,13 @@ function fnStepNext(stepName: 'NeInfoConfigPara5G') {
|
|||||||
loading: tabState.confirmLoading,
|
loading: tabState.confirmLoading,
|
||||||
},
|
},
|
||||||
onOk() {
|
onOk() {
|
||||||
// 使用 Promise.allSettled 等待所有 Promise 完成
|
|
||||||
tabState.confirmLoading = true;
|
tabState.confirmLoading = true;
|
||||||
Promise.allSettled(promises).finally(() => {
|
// 使用 Promise.allSettled 等待所有 Promise 完成
|
||||||
|
Promise.allSettled(
|
||||||
|
tabState.panes.map((item: any) =>
|
||||||
|
item.id ? updateNeInfo(item) : addNeInfo(item)
|
||||||
|
)
|
||||||
|
).finally(() => {
|
||||||
tabState.confirmLoading = false;
|
tabState.confirmLoading = false;
|
||||||
fnToStepName('NeInfoConfigPara5G');
|
fnToStepName('NeInfoConfigPara5G');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user