imm-element-ui 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -601,6 +601,25 @@ class AmComponent {
|
|
|
601
601
|
this.isLoading.set(false);
|
|
602
602
|
}));
|
|
603
603
|
}
|
|
604
|
+
dealSubmit(prm) {
|
|
605
|
+
if (prm) {
|
|
606
|
+
this.webDealCustom(prm).subscribe();
|
|
607
|
+
}
|
|
608
|
+
else {
|
|
609
|
+
this.webDealCustom(this.dealPrm).subscribe();
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
webDealSubmit(param) {
|
|
613
|
+
this.isLoading.set(true);
|
|
614
|
+
return this.http.post(apiPath + "dealSubmit", param)
|
|
615
|
+
.pipe(map((response) => {
|
|
616
|
+
this.dealPrm = { data: response, ...this.dealPrm };
|
|
617
|
+
return response;
|
|
618
|
+
}), finalize(() => {
|
|
619
|
+
// 无论请求成功与否,都将加载中状态设置为 false
|
|
620
|
+
this.isLoading.set(false);
|
|
621
|
+
}));
|
|
622
|
+
}
|
|
604
623
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AmComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
605
624
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AmComponent, isStandalone: true, selector: "app-am", providers: [MessageService, ConfirmationService], ngImport: i0, template: '', isInline: true }); }
|
|
606
625
|
}
|
|
@@ -8617,12 +8636,12 @@ class PageFormComponent extends AmComponent {
|
|
|
8617
8636
|
};
|
|
8618
8637
|
if (!deleteFunc) {
|
|
8619
8638
|
this.web_remove(prm).subscribe((res) => {
|
|
8620
|
-
this.getDetail();
|
|
8639
|
+
typeof this.formDetail() == 'function' ? this.formDetail()(this.id) : this.getDetail();
|
|
8621
8640
|
});
|
|
8622
8641
|
}
|
|
8623
8642
|
else {
|
|
8624
8643
|
deleteFunc().subscribe(() => {
|
|
8625
|
-
this.getDetail();
|
|
8644
|
+
typeof this.formDetail() == 'function' ? this.formDetail()(this.id) : this.getDetail();
|
|
8626
8645
|
});
|
|
8627
8646
|
}
|
|
8628
8647
|
}
|
|
@@ -8698,12 +8717,6 @@ class PageFormComponent extends AmComponent {
|
|
|
8698
8717
|
}
|
|
8699
8718
|
getDetail() {
|
|
8700
8719
|
this.web_get(this.getPrm).subscribe((res) => {
|
|
8701
|
-
this.gridList().forEach((value) => {
|
|
8702
|
-
if (value.type == 'grid' && !this.getPrm.data.hasOwnProperty(value.subDataKey)) {
|
|
8703
|
-
this.getPrm.data[value.subDataKey] = [];
|
|
8704
|
-
}
|
|
8705
|
-
});
|
|
8706
|
-
console.log('this.getPrm.data', this.getPrm.data);
|
|
8707
8720
|
this.detailCb(res);
|
|
8708
8721
|
});
|
|
8709
8722
|
}
|
|
@@ -8721,6 +8734,11 @@ class PageFormComponent extends AmComponent {
|
|
|
8721
8734
|
this.subFormModel[v.subDataKey] = res[v.subDataKey][0];
|
|
8722
8735
|
}
|
|
8723
8736
|
});
|
|
8737
|
+
this.gridList().forEach((value) => {
|
|
8738
|
+
if (value.type == 'grid' && !this.getPrm.data.hasOwnProperty(value.subDataKey)) {
|
|
8739
|
+
this.getPrm.data[value.subDataKey] = [];
|
|
8740
|
+
}
|
|
8741
|
+
});
|
|
8724
8742
|
}
|
|
8725
8743
|
setHrefValue() {
|
|
8726
8744
|
this.hrefBtnList().map((item) => {
|